summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-11-20 20:12:02 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-11-29 16:29:54 +0100
commit727bd94560ca9056cdbe40fe2e7923ed008b6eac (patch)
treef0d202b6c72415751445bfd91f29dd96fe3f59d2 /test
parenta0e4a3fd5d028694e9fa74d2de55eb4f3c3f14b0 (diff)
Add commandline conversion for Windows (no-op on other platforms)
- add Fl::args_to_utf8() to convert commandline arguments to UTF-8 This new function closes the gap that previously only Visual Studio applications converted their commandlines to UTF-8. Tested with MinGW, MSYS2/MinGW-w64, and Visual Studio (2019).
Diffstat (limited to 'test')
-rw-r--r--test/pixmap_browser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx
index dca13316e..9478540cd 100644
--- a/test/pixmap_browser.cxx
+++ b/test/pixmap_browser.cxx
@@ -1,7 +1,7 @@
//
// A shared image test program for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2022 by Bill Spitzak and others.
+// Copyright 1998-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -143,7 +143,8 @@ int main(int argc, char **argv) {
setlocale(LC_ALL, ""); // enable multilanguage errors in file chooser
fl_register_images();
- Fl::args(argc,argv,i,arg);
+ Fl::args_to_utf8(argc, argv); // enable multilanguage commandlines on Windows
+ Fl::args(argc, argv, i, arg); // parse commandline
if (animate)
Fl_GIF_Image::animate = true; // create animated shared .GIF images (e.g. file chooser)