[osg-users] .8 [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character

2010-07-27 Thread mao li
Hi,

Latest OSG 2.9.8 cannot load files whose name contains Chinese character. It's 
quite inconvenient for Chinese users of OSG. For example, if you try to run 
osgviewer.exe 中文file.osg, it will report error: No data loaded. OSG 2.9.6 
also has this issue. But OSG 2.8.6 works fine.

Thank you!

Cheers,
mao

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30300#30300





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] .8 [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character

2010-07-27 Thread Wang Rui
Hi Mao,

There is no OSG 2.8.6 version. And to make Chinese path and filename
recognizable, just select a suitable locale set with the setlocale()
function, for example:

#include locale.h

int main(int argc, char** argv)
{
setlocale(LC_ALL, .936);  // Chinese
...
}

Cheers,

Wang Rui


2010/7/27 mao li limao...@hotmail.com:
 Hi,

 Latest OSG 2.9.8 cannot load files whose name contains Chinese character. 
 It's quite inconvenient for Chinese users of OSG. For example, if you try to 
 run osgviewer.exe 中文file.osg, it will report error: No data loaded. OSG 
 2.9.6 also has this issue. But OSG 2.8.6 works fine.

 Thank you!

 Cheers,
 mao

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=30300#30300





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org