Ticket #1762 (new defect)
Running mapserver code at different locale may result in unexpected behaviour
| Reported by: | szekerest | Owned by: | sdlime |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | MapServer C Library | Version: | 4.8 |
| Severity: | major | Keywords: | |
| Cc: |
Description
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 however would rewriting the code to be locale independent if it is expected. Fixing this bug may also fix http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1758 Tamas
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

