[Tilesathome] Inkscape locale issues. what were they?
spaetz
osm at sspaeth.de
Sat Aug 30 19:14:17 BST 2008
Inkscape
1) we set setlocale(LC_ALL to $Config->get("InkscapeLocale"); before each call
2) in the commando line we use $Config->get("i18n") ? "LC_ALL=C " : ""
This gets the redundant redundancy award with a bonus for obfuscation. :-)
Why 2 settings for 1 thing?
This is not just ugly, but as we reset the locale to the old locale (which seems to return German on German computers) after each inkscape call with:
setlocale(LC_ALL, $oldLocale);
This leads us to insert the dreaded comma numbers as boundary coordinates in the .osm file which or/p complains about.
Why did we need to set the locale for inkscape again? I recall some bugs but nothing specifically, and it's not documented in the code (tss, tss, tss).
Do we really need LC_ALL or would some LC_NUMERIC suffice? What works on German boxes, German locales or 'C'?
Let's fix this the right way.
spaetz
More information about the Tilesathome
mailing list