X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_keyok.c;h=eb8433d0680035c83b0b831b224a910a79e021a3;hp=28d90aa18cc2d5440d3f6dfd532ae80611d1675d;hb=4c9f63c460cb7134f142aa65f6866c175ed77605;hpb=f8a52f8d51160dbfdd5449403bb157497f2b39c4 diff --git a/test/demo_keyok.c b/test/demo_keyok.c index 28d90aa1..eb8433d0 100644 --- a/test/demo_keyok.c +++ b/test/demo_keyok.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020 Thomas E. Dickey * + * Copyright 2020,2022 Thomas E. Dickey * * Copyright 2002-2006,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_keyok.c,v 1.7 2020/02/02 23:34:34 tom Exp $ + * $Id: demo_keyok.c,v 1.8 2022/04/16 18:26:57 tom Exp $ * * Demonstrate the keyok() function. * Thomas Dickey - 2002/11/23 @@ -44,6 +44,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) int ch; WINDOW *win; + setlocale(LC_ALL, ""); initscr(); (void) cbreak(); /* take input chars one at a time, no wait for \n */ (void) noecho(); /* don't echo input */