[geos-devel] Delocalizing the WKT writer?

Mateusz Loskot mateusz at loskot.net
Thu Aug 28 17:08:31 EDT 2008


Sean Gillies wrote:
> Mateusz Loskot wrote:
>> Mateusz Loskot wrote:
>>> I'm going to try to review and reafactor WKT classes to base on C++ I/O 
>> I've forgot to add, that I'd suggest to leave current solution, possibly
>> fixed with CPLLocaleC class, until I bring better solution into
>> WKTReader/WKTWriter.
>>
>> Best regards,
> 
> Okay. I'll learn what I can from CPLLocaleC.

Sean, thanks for fixing.
It's simple to use CPLLocaleC class

void foo() // function that is assumed to depend on C locale
{
    CPLLocaleC loc; // set "C" locale

    // ... some operations that should be locale indenendent


} // loc destructor resets locale back to original

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the geos-devel mailing list