X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_defkey.c;h=7835ee846484f50f4fe02280a919d3bb4ab42ac7;hp=afe102931a68788f87d4cfe51edd0f7ba1eb0139;hb=4c9f63c460cb7134f142aa65f6866c175ed77605;hpb=a28e782d7794ddeec23e7cb212dc455f0d93dc22 diff --git a/test/demo_defkey.c b/test/demo_defkey.c index afe10293..7835ee84 100644 --- a/test/demo_defkey.c +++ b/test/demo_defkey.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2018-2019,2020 Thomas E. Dickey * + * Copyright 2018-2020,2022 Thomas E. Dickey * * Copyright 2002-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_defkey.c,v 1.31 2020/12/26 17:55:13 tom Exp $ + * $Id: demo_defkey.c,v 1.32 2022/04/16 18:26:57 tom Exp $ * * Demonstrate the define_key() function. * Thomas Dickey - 2002/11/23 @@ -224,6 +224,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) unlink(MY_LOGFILE); + setlocale(LC_ALL, ""); initscr(); (void) cbreak(); /* take input chars one at a time, no wait for \n */ (void) noecho(); /* don't echo input */