[Tilesathome] locale problem on clients - URL broken

Florian Lohoff flo at rfc822.org
Fri Sep 5 14:32:10 BST 2008


On Fri, Sep 05, 2008 at 03:11:13PM +0200, spaetz wrote:
> Subject: Re: [Tilesathome] locale problem on clients - URL broken
> 
> On Fri, Sep 05, 2008 at 03:02:13PM +0200, spaetz wrote:
> > Thanks for the patch, but -1 one of small hotfixes.
> 
> Excuse my garbled typing, it's unknown old crappy keyboard :-)
> 
> -1 on small hotfixes, is what I meant :-)

You would need to export the setlocale to the environment on a portable
way otherwise child processes won't get it ...

flo at touch:~$ perl -e '{ use POSIX; setlocale(LC_ALL, "C"); system("locale"); }'
LANG=en_US.UTF-8
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

So one would need to set $ENV{"LC_ALL"}="C"; additionally to present all
processes forked with the new environment.

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/20080905/e1236861/attachment.pgp>


More information about the Tilesathome mailing list