[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] [bug report] OSG 2.9.8 cannot load files whose name contains Chinese character

2010-07-27 Thread 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
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

2010-07-27 Thread mao li
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