[#120] gdal, shapelib and proj not robust against LC_NUMERIC locale changes, will affect python2.4

Date:
2006-05-19 08:39
Priority:
4
State:
Closed
Submitted by:
Bernhard Reiter (bernhard)
Assigned to:
Bernhard Reiter (bernhard)
Category:
none
Version:
none
Resolution:
Accepted
Summary:
gdal, shapelib and proj not robust against LC_NUMERIC locale changes, will affect python2.4

Detailed description
See the discussion on thuban-devel:


http://intevation.de/pipermail/thuban-devel/2006-May/001714.html
http://intevation.de/pipermail/thuban-devel/2006-May/001716.html

This will affect Python2.4 with gdal and proj
as Python 2.3 enforced a different LC_NUMERIC.
To solve this problem, I think we should

a) search for and possibly file a bug with GDAL
b) Write a testcase that fails with LC_NUMERIC being set to ",".

c) Unless this is fixed, make sure our gdal and proj calls are always
LC_NUMERIC C.
Message  ↓
Date: 2006-11-19 14:50
Sender: Bernhard Reiter

Proj report:
http://bugzilla.remotesensing.org/show_bug.cgi?id=1360

for GDAL, the problem is known, but not acknowledged:
See http://bugzilla.remotesensing.org/show_bug.cgi?id=869
and FAQ.
Thus reopened 869 and opened a new more general issue:
http://bugzilla.remotesensing.org/show_bug.cgi?id=1361

Date: 2006-11-19 14:16
Sender: Bernhard Reiter

Reported fix for dbflib (part of shapelib) upstream:
http://bugzilla.maptools.org/show_bug.cgi?id=1615

Split out issue for OGR:
http://wald.intevation.org/tracker/index.php?func=detail&aid=197

Missing reports for gdal and proj.

Date: 2006-10-15 23:29
Sender: Bernhard Reiter

Revision 2712 does b) and c) for gdal.
Now we only need to report this to Frank Warmerdam
or the bug trackers of the three projects.

Also need to split out an issue for the new ogr support.

Date: 2006-09-18 00:56
Sender: Bernhard Reiter

For b) a testcase for gdal is still missing.

Meanwhile I have completed the first half of c) proj is fixed in
Revison 2698

Date: 2006-09-17 23:20
Sender: Bernhard Reiter

Revision 2696:
Testcase commited, thus b) completed.

Date: 2006-09-15 08:53
Sender: Bernhard Reiter

I have did the first part of the testcase (step b)):
test/localessupport.py: New. Added a function that can set a locale that uses a decimal comma.

Revision 2694

No attached documents

Field Old Value Date By
status_idOpen2006-11-19 14:51Bernhard Reiter
close_date2006-11-19 14:512006-11-19 14:51Bernhard Reiter
ResolutionNone2006-11-19 14:51Bernhard Reiter
summarygdal and proj not robust against LC_NUMERIC locale changes, will affect python2.42006-10-15 23:29Bernhard Reiter
close_dateNone2006-10-15 23:29Bernhard Reiter
assigned_tonone2006-09-17 23:20Bernhard Reiter