summaryrefslogtreecommitdiff
path: root/test/pixmap_browser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/pixmap_browser.cxx')
-rw-r--r--test/pixmap_browser.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx
index 4a80f3579..f625e585f 100644
--- a/test/pixmap_browser.cxx
+++ b/test/pixmap_browser.cxx
@@ -23,10 +23,12 @@
#include <FL/Fl_Printer.H>
#include <string.h>
#include <errno.h>
+#include <locale.h> // setlocale()..
#include <FL/Fl_File_Chooser.H>
#include <FL/fl_message.H>
#include <FL/Fl_SVG_File_Surface.H>
#include <FL/Fl_Native_File_Chooser.H>
+
Fl_Box *b;
Fl_Double_Window *w;
Fl_Shared_Image *img;
@@ -124,6 +126,7 @@ int arg(int, char **argv, int &i) {
int main(int argc, char **argv) {
int i = 1;
+ setlocale(LC_ALL, ""); // enable multilanguage errors in file chooser
fl_register_images();
Fl::args(argc,argv,i,arg);