]> git.draconx.ca Git - rrace.git/commitdiff
Call setlocale on startup.
authorNick Bowler <nbowler@draconx.ca>
Mon, 14 Mar 2022 04:33:47 +0000 (00:33 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 17 Mar 2022 00:08:51 +0000 (20:08 -0400)
Failing to call this seems to affect the default X11 font selection
(wrong encodings, perhaps?) causing some display problems on HP-UX.

src/motif.c

index 7396c0b7b7fdca7e156b45274b020bde1137443d..f9da2922ef11d2a1ba54c3b305a3698953b492f6 100644 (file)
@@ -19,6 +19,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <locale.h>
 #include <getopt.h>
 
 #include <Xm/XmAll.h>
@@ -274,6 +275,7 @@ static XtAppContext app_initialize(int argc, char **argv)
 
 int main(int argc, char **argv)
 {
+       setlocale(LC_ALL, "");
        XtAppMainLoop(app_initialize(argc, argv));
        return 0;
 }