summaryrefslogtreecommitdiff
path: root/test/demo.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-12-15 13:04:57 +0100
committerMatthias Melcher <github@matthiasm.com>2023-12-15 13:04:57 +0100
commit04a5098a58bf6456252d09ee9406ff519cca6ddc (patch)
tree12da92b742d96654d249718a40633eab51e9a442 /test/demo.cxx
parentfdf578d936abacafe2bfb8d08255a5093b1f1ea3 (diff)
#840: Generously adds Fl::args_to_utf8() for MinGW support.
Diffstat (limited to 'test/demo.cxx')
-rw-r--r--test/demo.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index ce9e8fd21..0cb691b85 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -601,6 +601,7 @@ int main(int argc, char **argv) {
// parse commandline
int i = 0;
+ Fl::args_to_utf8(argc, argv); // for MSYS2/MinGW
if (!Fl::args(argc, argv, i) || i < argc-1)
Fl::fatal("Usage: %s <switches> <menufile>\n%s", argv[0], Fl::help);
if (i < argc) {