]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/dots_xcurses.c
ncurses 6.3 - patch 20221105
[ncurses.git] / test / dots_xcurses.c
index d8fe80319307d3c1525a8e6ca45035aa8b7d9299..3ccdea37a06456cb48bed467b172b25e62f97d17 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright 2018-2019,2020 Thomas E. Dickey                                *
+ * Copyright 2018-2020,2022 Thomas E. Dickey                                *
  * Copyright 2017 Free Software Foundation, Inc.                            *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
 /*
  * Author: Thomas E. Dickey
  *
- * $Id: dots_xcurses.c,v 1.23 2020/05/29 23:04:02 tom Exp $
+ * $Id: dots_xcurses.c,v 1.25 2022/04/16 18:27:24 tom Exp $
  *
  * A simple demo of the wide-curses interface used for comparison with termcap.
  */
 #include <test.priv.h>
 
-#if !defined(_WIN32)
+#if !defined(_NC_WINDOWS)
 #include <sys/time.h>
 #endif
 
@@ -193,6 +193,7 @@ main(int argc, char *argv[])
        }
     }
 
+    setlocale(LC_ALL, "");
     srand((unsigned) time(0));
 
     SetupAlarm(r_option);