[ghemical-devel] LC_NUMERIC problem
Michael Banck
mbanck@gmx.net
Fri, 6 Feb 2004 23:55:30 +0100
Hi,
seems there's a problem when LC_NUMERIC is set to a locale which uses
',' as '.' (reproduced with de_DE and cs_CZ.utf8).
This patch (hack?) seems to fix it (at last for me. Radek?):
--- t3main.cpp.orig 2004-02-06 23:53:20.000000000 +0100
+++ t3main.cpp 2004-02-06 23:46:24.000000000 +0100
@@ -694,6 +694,8 @@
int main(int argc, char ** argv)
{
+ (void) gtk_set_locale();
+ (void) setlocale(LC_NUMERIC, "C");
//char **args;
poptContext options_context;
const struct poptOption options_table[] = {
Feel free to tune it to your taste :)
Thanks to Radek for reporting it and pointing out the fix verbatim.
Michael