Mail Archives: geda-user/2014/03/21/05:16:44
Starting a new thread to separate it from the "versioning" discussion.
I had remarked that two checks fail if a decimal comma is used rather
than a decimal point (because LC_NUMERIC is set to - for instance - some
german locale). The discussion referred to some older bugs, some of them
fixed. It looks as if the bug in 20140316 is not a reversion; it looks
like a new bug, but where the problem follows a pattern that is similar
to that of the mentioned bugs.
How about a solution, that does (in src/main.c, right after the call to
setlocale (LC_ALL,""); - it imports the locale from the environment)
call setlocale (LC_NUMERIC,"en_US.UTF-8 )?
That solves the problem once and forever and avoids that similar
problems might pop up with future versions - it does nothing else than
account for the fact that pcb implicitely assumes that the decimal
separator is a dot. This solution also avoids the need to check new
versions against locales with different LC_NUMERIC
I did some checking on the use of LC_NUMERIC in different locales - most
common locales use the comma, en_US and en_UK are the only important
exceptions. So, this is not an isolated problem of some fancy
environments, but a real issue.
- Raw text -