[Tilesathome] Inkscape locale issues. what were they?
spaetz
osm at sspaeth.de
Sun Aug 31 09:15:17 BST 2008
On Sun, Aug 31, 2008 at 09:50:13AM +0200, Alfons Andorfer wrote:
> Yes, you are right: LC_NUMERIC is enough.
> The whole locale stuff is only needed because inkscape wants "," as decimal
> "points" in german locale (which is a bug in inkscape IMHO)
OK, thanks for clarifying
> my $old_locale = setlocale(LC_NUMERIC);
> setlocale(LC_NUMERIC, "");
> my $export_area= sprintf("%f:%f:%f:%f", $sx1, $sy1, $sx2, $sy2);
> setlocale(LC_NUMERIC, $old_locale);
Much appreciated, I had suspected it is the export area that was needed but was not sure. I am surprised that printf did not pick up the German locale automatically on German computers but that's a different issue.
spaetz
More information about the Tilesathome
mailing list