Proposing to call setlocale( LC_ALL, "C" ) in msSetup()
umberto.nicoletti at GMAIL.COM
Fri Apr 28 08:47:48 EDT 2006
I think the solution is worse than the problem. While it should pose
no problem for mapserver cgi I can easily imagine it wreaking the
havoc in Java mapscript and even C# mapscript.
I am for rewriting the code to be locale sensitive and if possible
will try to help, but cannot make promises as I am on a really tight
schedule to fix another localization bug with Java mapscript
On 4/27/06, Szekeres Tamás <szekeres.tamas at freemail.hu> wrote:
> I had a problem with that mapserver/mapscript is working
> under the locale context of the host process, but the code
> is not ready to operate in all locales so far. For example
> the lexer expects dot as the decimal separator and some of
> the locales use comma and atof will truncate the numbers to
> the integer part causing mystical errors.
> As a quick fix I suggest to call setlocale to the default
> "C" at the msSetup initialization function.
> The best solution would rewriting the code to be locale
> independent if it is expected.
> Because we can have some side effects with this change I am
> calling a vote on it.
> Digitális képből papírkép már 25 Ft-tól! Ingyenes budapesti házhozszállítás! >>>
More information about the mapserver-dev