]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/demo_altkeys.c
ncurses 6.3 - patch 20220521
[ncurses.git] / test / demo_altkeys.c
index d85bac48bce22e0b3b2e03b96e75628674ac41a7..e968525e6907494f32dd07677dfd8d990c91f10c 100644 (file)
@@ -1,5 +1,6 @@
 /****************************************************************************
- * Copyright (c) 2005-2018,2019 Free Software Foundation, Inc.              *
+ * Copyright 2018-2020,2022 Thomas E. Dickey                                *
+ * Copyright 2005-2016,2017 Free Software Foundation, Inc.                  *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -26,7 +27,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: demo_altkeys.c,v 1.13 2019/08/17 21:49:40 tom Exp $
+ * $Id: demo_altkeys.c,v 1.15 2022/04/16 18:26:57 tom Exp $
  *
  * Demonstrate the define_key() function.
  * Thomas Dickey - 2005/10/22
@@ -81,6 +82,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
 
     unlink(MY_LOGFILE);
 
+    setlocale(LC_ALL, "");
     if (newterm(0, stdout, stdin) == 0) {
        fprintf(stderr, "Cannot initialize terminal\n");
        ExitProgram(EXIT_FAILURE);