From 7addffc52f2ac1f6af976b5d633ddcbad49dce46 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Dec 2013 12:12:12 +0100 Subject: hdfsee: Use gtk_disable_setlocale() --- src/hdfsee.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/hdfsee.c b/src/hdfsee.c index 6b4d0bf0..df0bd281 100644 --- a/src/hdfsee.c +++ b/src/hdfsee.c @@ -144,6 +144,13 @@ int main(int argc, char *argv[]) {0, 0, NULL, 0} }; + /* This isn't great, but necessary to make the command-line UI and file + * formats consistent with the other programs, which all use the C + * locale. Better would be to have all the programs call + * setlocale(LC_ALL, "") and use the C locale temporarily when reading + * or writing a stream, reflection file, geometry file etc. */ + gtk_disable_setlocale(); + gtk_init(&argc, &argv); /* Short options */ -- cgit v1.2.3