aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-12-05 12:12:12 +0100
committerThomas White <taw@physics.org>2013-12-05 12:12:12 +0100
commit7addffc52f2ac1f6af976b5d633ddcbad49dce46 (patch)
treeebe2850dd64d10c126bf6c7a76227f4a3a267aff
parentca5db9466bf7da04f61f9bc86463bfdcdc025ecf (diff)
hdfsee: Use gtk_disable_setlocale()
-rw-r--r--src/hdfsee.c7
1 files changed, 7 insertions, 0 deletions
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 */