[Fdo-trac] [fdo-trac] #857: ParseWKT isn't locale-independent
FDO
trac_fdo at osgeo.org
Thu Dec 20 04:50:52 PST 2012
#857: ParseWKT isn't locale-independent
------------------------+---------------------------------------------------
Reporter: male99it | Owner: gregboone
Type: defect | Status: new
Priority: major | Milestone: 3.8.0
Component: FDO API | Version: 3.8.0
Severity: 3 | Keywords: locale-independent
External_id: |
------------------------+---------------------------------------------------
The parse of the WKT string isn't locale-independent.
If the locale isn't english (ex: italian), the conversion from WKT to
Geometry (ex: FdoIGeometry *pGeometry =
pGeometryFactory->CreateGeometry(sWKT)) lose the decimal (only in release
version).
To correct I have replace in method getnumber of files
"Fdo\Unmanaged\Src\Geometry\Parse\LexFgft.cpp" and
"Fdo\Unmanaged\Src\Fdo\Parse\Lex.cpp", the use of function _wtof whit
_wtof_l (_locale_t init to "C")
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/857>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list