From 3d33a915bbe605b0dc98a28666d9c17ee464e156 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Mon, 14 Mar 2022 00:33:47 -0400 Subject: [PATCH] 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. --- src/motif.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.43.2