[Tilesathome] locale problem on clients - URL broken
Florian Lohoff
flo at rfc822.org
Fri Sep 5 13:15:00 BST 2008
On Thu, Sep 04, 2008 at 10:17:50PM +0200, Christian Ehrlicher wrote:
> Subject: Re: [Tilesathome] locale problem on clients - URL broken
>
> Dirk-Lüder Kreie schrieb:
> >Florian Lohoff schrieb:
> >>Hi,
> >>on ROMA i am seeing requests where the bbox parameters decimal points
> >>are actually ","
> >>
> >>request for bbox -117,114258,-19,739411,-116,938477,-19,628519
> >>
> >>This is not really valid and the client gets an error and no data and
> >>thus will no do any work ...
> >
> >Should be only unstable clients from Germany and other countries where
> >"," is the decimal separator.
> >
> The attached small hotfix fixes the problem for me. Should work until we
> find a global solution :)
>
>
> Christian
> Index: tilesGen.pl
> ===================================================================
> --- tilesGen.pl (revision 10480)
> +++ tilesGen.pl (working copy)
> @@ -810,7 +810,7 @@
> $stdOut);
>
> if ($locale ne "0") {
> - setlocale(LC_ALL, $oldLocale);
> + setlocale(LC_ALL, 'C');
> }
> }
>
IMHO this should be the one and only setlocale call at the beginning of
tileGen.pl - I have no clue why anyone would want tilesGen.pl run with a
user set locale.
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/a95dd19b/attachment.pgp>
More information about the Tilesathome
mailing list