12 Feb
2009
12 Feb
'09
3:11 a.m.
On Feb 11, 2009, at 4:49 PM, Krzysztof Kosiński wrote:
The real question here is why g_ascii_strtod is used at all, because it should only be used for numbers pulled from datafiles etc. that are not meant for user consumption. For localized numbers, one should use g_strtod or strtod.
And that's the key.
For some uses, Inkscape is operating on SVG numbers which are not localized. For other uses it is operating on user-visible numbers that *are* localized.
So that's why it's used at all.
As to why there's a problem here, it is most likely either a problem of inappropriate copy-n-paste, or of a single bit of code that doesn't realize it needs to operate on both user-input and SVG abstract strings.