#1385 closed defect (fixed)
reading gcs.csv & pcs.csv is not locale invariant
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | OGR_SRS | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | Markus Neteler |
Description (last modified by )
I have to set the locale to "setlocale(LC_ALL, "C");" before doing an "ogrSpatialRef->importFromEPSG(epsg);". This should be documented somewhere.
Even better: make the reading of the corresponding CSV files locale invariant by setting the locale to "C" temporarilly during import...
Change History (8)
comment:2 by , 17 years ago
I have modified ogrspatialreference.cpp's OGRPrintDouble() function to produce C locale style numbers with fixes up most problems building WKT strings. r10720 in trunk. Use CPLAtof() in ogr_fromepsg.cpp since all .csv values are C locale. r10721 in trunk. Still more work needs to be done.
comment:3 by , 17 years ago
Assorted additional locale improvements in : ogr_srs_validate.cpp ogr_srs_proj4.cpp ogr_spatialreference.cpp r10725 still outstanding: proj_strod() use in gdal/port/cpl_conv.cpp (for DMStoDec, etc).
comment:4 by , 17 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 1.5.0 |
Priority: | highest → normal |
Severity: | major → normal |
comment:5 by , 17 years ago
Description: | modified (diff) |
---|
comment:6 by , 17 years ago
Cc: | added |
---|
comment:7 by , 9 years ago
Milestone: | 1.8.1 → 2.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Should be addressed by my recent global pass on locale related issues
Note:
See TracTickets
for help on using tickets.