From 7426e762a45eb722f605ed6640a21f569ee585af Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sat, 11 Jul 2020 14:46:34 -0700 Subject: setlocale() added to Fl_File_Chooser demos This change ensures errors in local language. See issue #99 for discussion on why this is needed. --- test/file_chooser.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/file_chooser.cxx') diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 83b75bab9..2d72c7f6b 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -39,6 +39,7 @@ #include #include #include +#include // setlocale().. #define TERMINAL_HEIGHT 120 #define TERMINAL_GREEN "\033[32m" @@ -92,6 +93,7 @@ main(int argc, // I - Number of command-line arguments // Make the file chooser... + setlocale(LC_ALL, ""); // enable multilanguage errors in file chooser Fl::scheme(NULL); Fl_File_Icon::load_system_icons(); -- cgit v1.2.3