summaryrefslogtreecommitdiff
path: root/FL
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 /FL
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 'FL')
-rw-r--r--FL/Fl.H3
1 files changed, 3 insertions, 0 deletions
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
@{