From: Nick Bowler Date: Mon, 14 Mar 2022 04:33:47 +0000 (-0400) Subject: Call setlocale on startup. X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/3d33a915bbe605b0dc98a28666d9c17ee464e156 Call setlocale on startup. Failing to call this seems to affect the default X11 font selection (wrong encodings, perhaps?) causing some display problems on HP-UX. --- diff --git a/src/motif.c b/src/motif.c index 7396c0b..f9da292 100644 --- a/src/motif.c +++ b/src/motif.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -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; }