Hi Daniel,

I've just reviewed your changes and feel that use of streams in this
instance is a bit overkill, I've opted for the more lightweight
approach of tweaking the sscan code so that it reads c strings and
then passes these to osg::asciiToFloat() to do the non locale
sensitive conversion.  I've now checked this into the svn/trunk, could
you try this out to check if it works fine for you.

Cheers,
Robert.

On Mon, Jul 6, 2009 at 10:18 AM, Daniel
Trstenjak<[email protected]> wrote:
>
> Hello Robert,
>
> the current implementation of ReaderWriterSTL uses c++ streams for
> writing floats and sccanf for reading floats.
>
> This means, that the writing is independent of the current locale
> and the reading isn't.
>
> So with a german locale the decial separator during writing is a point
> and during reading a comma.
>
> Please apply.
>
>
>
> Greetings,
> Daniel
>
> --
>
>  Daniel Trstenjak         Tel   : +49 (0)7071-9457-264
>  science + computing ag   FAX   : +49 (0)7071-9457-511
>  Hagellocher Weg 73       mailto: [email protected]
>  D-72070 Tübingen         WWW   : http://www.science-computing.de/
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
> Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Michel Lepert
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to