Hi Robert, 

The problem was found:
ReaderWriterOSG.cpp
107 line - 
std::ifstream fin(fileName.c_str());
  if (fin) //!!!! Condition doesn’t perform!!!
  {
  return readNode(fin, local_opt.get());
  }
  return 0L;

I found that things on Google:
This is not OSG problem, but this is a problem of  Visual Studio 2005 and up


// The "open" method on pre-MSVC8 Ifstream implementations doesn't accept a
// wchar_t* filename, so use _wfopen directly in that case.  For VC8 and
// later, _wfopen has been deprecated in favor of _wfopen_s, which does
// not exist in earlier versions, so let the ifstream open the file itself.


This is a solved problem, but it needs to rewrite amount of all code
 "std::ifstream fin(fileName.c_str());". 
In addition this problem touches not only Russian, but all another languages 
except English.

Can somebody help me? 
Thanks in advance.



28.02.08, 21:58, "GMD GammerMaxyandex.ru" <[EMAIL PROTECTED]>:

> Problem found:
> ReaderWriterOSG.cpp
> 107 line - 
> std::ifstream fin(fileName.c_str());
>             if (fin) //FALSE!!!!
>             {
>                 return readNode(fin, local_opt.get());
>             }
>             return 0L;
> // The "open" method on pre-MSVC8 ifstream implementations doesn't accept a
> // wchar_t* filename, so use _wfopen directly in that case.  For VC8 and
> // later, _wfopen has been deprecated in favor of _wfopen_s, which does
> // not exist in earlier versions, so let the ifstream open the file itself.
> Can somebody help me? 
> Thanks in advance.
> 27.02.08, 18:18, "Robert Osfield" <[EMAIL PROTECTED]>:
> > Hi,
> > On Wed, Feb 27, 2008 at 3:12 PM, GMD GammerMaxyandex.ru
> > <[EMAIL PROTECTED]> wrote:
> > > readNodeFile function couldn't find and read filename with russian 
> > > letters(if filename contains russian letters).
> > >  This promlem is specific for OSG version up 2.0.
> > >  This problem was not exist at 1.x versions.
> > >
> > >  set OSG_NOTIFY_LEVEL=DEBUG
> > >  osgviewer D:/LABs/тепло/lab4/bin/osg/all.osg
> > >  ...
> > >  Opened DynamicLibrary osgPlugins-2.3.2/osgdb_osg.dll
> > >   FindFileInPath(D:/LABs/?????/lab4/bin/osg/all.osg): returning
> > >   D:/LABs/?????/lab4/bin/osg/all.osg
> > >   D:\DEVELOP\OSG\OpenSceneGraph-2.3.2\bin\osgviewer.EXE: No data loaded
> > >
> > >  ....
> > >  !!!!!!
> > >  D:/LABs/?????/lab4/bin/osg/all.osg
> > >          ^^^
> > >  D:/LABs/тепло/lab4/bin/osg/all.osg   !!!!!!!
> > I don't know the source of the problem, and others are only likely to
> > know the issue if they've seen it first hand, and if they had they
> > likely would have reported it.  So.. I'm afraid the one with the best
> > chance of finding the source of this issue is yourself - you have the
> > directories/files in front of you that reproduce the problem, others
> > don't.
> > Might I suggest adding some break points in the the findFileInPath
> > method and stepping through it and see what happens.
> > Robert.
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> --
> Зал славы: все победители конкурсов на Яндекс.Фотках 
> http://fotki.yandex.ru/contests.xml
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
Яндекс.Фотки - легко загрузить с мобильного http://mobile.yandex.ru/fotki/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------- Завершение пересылаемого сообщения --------


--
Яндекс.Почта. Чище не бывает http://mail.yandex.ru/nospam 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to