[mapguide-internals] MapGuide RFC 18 - Localization

Bruce Dechant bruce.dechant at autodesk.com
Wed Mar 7 14:34:42 EST 2007


MapGuide uses the "C" locale for the LC_NUMERIC category and this will
NOT be changing.


-----Original Message-----
From: mapguide-internals-bounces at lists.osgeo.org
[mailto:mapguide-internals-bounces at lists.osgeo.org] On Behalf Of Frank
Warmerdam (External)
Sent: March 7, 2007 1:36 PM
To: MapGuide Internals Mail List
Subject: Re: [mapguide-internals] MapGuide RFC 18 - Localization

Bill Dhimitri wrote:
> Traian,
> Not sure what you are asking.  Maybe it's something about this:
> I think the idea is to call setlocale with some string.  This will set
> the process-wide locale.  So it affects any methods (process-wide)
> use locale (e.g. printf).  That list of methods is dependent on the
> "category" that is passed in to setlocale (LC_NUMERIC, LC_COLLATE,
> LC_MONETARY, etc.). Maybe the RFC could be clearer on which category
> will be affected.
> It's possible that there is code in the process (maybe FDO code) that
> uses methods that are not affected by setlocale (i.e. methods that
> always yield non-localized results).


I would like to encourage *not* setting LC_NUMERIC as it will often
libraries that mapguide and fdo depend on, such as GDAL and PROJ.  I'm
working on making GDAL safer in the face of odd numeric locales, but at
the very best it will still be dangerous and will break some format
drivers, and services.

PROJ is also distinctly not numeric locale safe, though I will try and
address this too sooner or later.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,

mapguide-internals mailing list
mapguide-internals at lists.osgeo.org

More information about the mapguide-internals mailing list