Astonishing that Cygwin is missing such a major part of the C++ standard. I suggest using #ifndef __CYGWIN__ rather than #ifdef OSG_USE_UTF8_FILENAME as the UTF conversion functions may be useful even if not using UTF-8 filenames.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Luaces Sent: 11 November 2008 13:17 To: 'OpenSceneGraph Submissions' Subject: [osg-submissions] Cygwin and Unicode Hi, recent changes to use unicode filenames broke Cygwin build: http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph&date=2 008-11-11 the reason is that Cygwin doesn't have std::wchar or std::wstring yet. I think that a clean solution is to guard all the code in ConvertUTF and ConvertUTF.cpp with the already existent OSG_USE_UTF8_FILENAME definition, as it is done in the rest of the OSG, therefore that code is only compiled is the user wants. I have attached the modified files. Regards, Alberto ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
