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!
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
2 matches
Mail list logo