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). --- FL/Fl.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL') diff --git a/FL/Fl.H b/FL/Fl.H index b52c33c72..3757b65be 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -1398,6 +1398,9 @@ public: static int system(const char *command); + // Convert Windows commandline arguments to UTF-8 (documented in src/Fl.cxx) + static int args_to_utf8(int argc, char ** &argv); + #ifdef FLTK_HAVE_CAIRO /** \defgroup group_cairo Cairo Support Functions and Classes @{ -- cgit v1.2.3