From 727bd94560ca9056cdbe40fe2e7923ed008b6eac Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 20 Nov 2023 20:12:02 +0100 Subject: 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). --- test/pixmap_browser.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') 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) -- cgit v1.2.3