i can think of two solutions for this:
- we replace all calls to scanf, sprintf etc with stl alternatives, as
these are not affected by localisation
Yes, but those functions are slower, I think.
- or we simply check for the right characters - so instead of simply
checking a a stream for '.', we get the decimal seperator from the
current c locale. more info:
http://www.chemie.fu-berlin.de/chemnet/use/info/libc/libc_19.html
This would mean, that you could use german .osg files in germany only
and english osg-files in countrys with . as decimal separator.
I had this problem, too, and I posted on this list (and Robert helped
me), and I simply solved this by changing the locale to uk before everey
save / load.
Of course it would be nice if this would be done "automagically", but
its not essential.
Regards,
Andreas
thank you for your patience and please think about it!
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
Andreas Goebel
Visit http://www.raumgeometrie.de to take a look at
Archimedes Geo3D, a program for dynamic geometry
in three dimensions!
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/