summaryrefslogtreecommitdiff
path: root/test/unittests.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/unittests.cxx
parentfdf578d936abacafe2bfb8d08255a5093b1f1ea3 (diff)
#840: Generously adds Fl::args_to_utf8() for MinGW support.
Diffstat (limited to 'test/unittests.cxx')
-rw-r--r--test/unittests.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unittests.cxx b/test/unittests.cxx
index 12776d670..6ffa24fb3 100644
--- a/test/unittests.cxx
+++ b/test/unittests.cxx
@@ -421,6 +421,7 @@ static int arg(int argc, char** argv, int& i) {
// registered tests to the browser widget.
int main(int argc, char** argv) {
int i;
+ Fl::args_to_utf8(argc, argv); // for MSYS2/MinGW
if ( Fl::args(argc,argv,i,arg) == 0 ) { // unsupported argument found
static const char *msg =
"usage: %s <switches>\n"