Re: [osg-users] [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character
Hi Rui, Sorry, I mean OSG 2.8.2 did not has this issue. If client application needs to set locale for a specific language, then it could become very hard to write language independent application. Say, if I want to make the application run on both Chinese and Japanese locale, I have to write two separated application? What if the file path contains both Chinese and Japanese characters? I am curious why OSG 2.8.2 and previous versions can work well without manually set the locale. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30316#30316 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character
Hi Mao, Making use of unicode characters is also available. Enable the CMake option OSG_USE_UTF8_FILENAME will do that trick. I believe that you are using a 2.8.2 version with this option enabled but not on 2.9.x versions. Please have a look at your CMake configurations. Wang Rui 2010/7/27 mao li limao...@hotmail.com: Hi Rui, Sorry, I mean OSG 2.8.2 did not has this issue. If client application needs to set locale for a specific language, then it could become very hard to write language independent application. Say, if I want to make the application run on both Chinese and Japanese locale, I have to write two separated application? What if the file path contains both Chinese and Japanese characters? I am curious why OSG 2.8.2 and previous versions can work well without manually set the locale. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30316#30316 ___ 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
Re: [osg-users] [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character
Hi Rui, Thanks for your reply. But even when I enabled OSG_USE_UTF8_FILENAME and rebuilt it, it still doesn't work. I double checked the CMake options I used for OSG 2.8.2, and I found OSG_USE_UTF8_FILENAME is not enabled(this is the default value). So I guess this is not a build option issue, but seems a source code bug. Wang Rui wrote: Hi Mao, Making use of unicode characters is also available. Enable the CMake option OSG_USE_UTF8_FILENAME will do that trick. I believe that you are using a 2.8.2 version with this option enabled but not on 2.9.x versions. Please have a look at your CMake configurations. Wang Rui 2010/7/27 mao li : Hi Rui, Sorry, I mean OSG 2.8.2 did not has this issue. If client application needs to set locale for a specific language, then it could become very hard to write language independent application. Say, if I want to make the application run on both Chinese and Japanese locale, I have to write two separated application? What if the file path contains both Chinese and Japanese characters? I am curious why OSG 2.8.2 and previous versions can work well without manually set the locale. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30316#30316 ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum :( :( -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30333#30333 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character
Hi Mao, I tried rolling back to 2.8.2 and see if osgviewer could read Chinese filenames without locale set or unicode configurations. But it simply shouted 'No data load', as I wish. :) I'm just curious if you missed some importatnt information, for example, are you using a modified version of osgviewer? Wang Rui 2010/7/28 mao li limao...@hotmail.com: Hi Rui, Thanks for your reply. But even when I enabled OSG_USE_UTF8_FILENAME and rebuilt it, it still doesn't work. I double checked the CMake options I used for OSG 2.8.2, and I found OSG_USE_UTF8_FILENAME is not enabled(this is the default value). So I guess this is not a build option issue, but seems a source code bug. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org