Ticket #49 (closed defect: fixed)
Reset LC_NUMERIC in pj_init()
| Reported by: | grisxa | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | major | Milestone: | 4.7.0 |
| Component: | Core | Version: | 4.6.1 |
| Keywords: | atof, locale, LC_NUMERIC | Cc: |
Description
As pj_init() calls pj_datum_set() that in turn calls locale-dependent atof() to convert, say, +towgs84 datum parameters, I suggest to reset LC_NUMERIC to "C" in beginning of pj_init() and get back on exit (see patch). There is some more atof() in source tree, so maybe another steps should be taken to make proj.4 really locale-independent. See also http://trac.osgeo.org/proj/wiki/FAQ#DoesPROJ.4workindifferentinternationalnumericlocales
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

