[Tilesathome] Inkscape locale issues. what were they?

Florian Lohoff flo at rfc822.org
Sun Aug 31 09:07:03 BST 2008


On Sat, Aug 30, 2008 at 08:14:17PM +0200, spaetz wrote:
> Subject: [Tilesathome] Inkscape locale issues. what were they?
> 
> 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'?
> 

Typically i would say simple add an LC_ALL=C to the very beginning of
tilesGen and done ... I dont think anybody will be able to debug with inkscape
crashes reported in Malagasy.

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-171-2280134
	Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080831/662fc52f/attachment.pgp>


More information about the Tilesathome mailing list