Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 I make a Unicode support version with OIS 1.0RC1 !!!you see.

open
nobody
None
7
2006-12-11
2006-12-11
lijinjun
No

You jobs(OIS) is very very good!! I use it in my game engine. My game engine is use complite in unicode, but your OIS dosn't support it.
so I modify OIS source code both support Unicode and ANSI ! Can you release an OIS with support Unicode on next version?

I publish my modified OIS(Support Unicode) On the Attach File. You can consider it. thanks!!

Discussion

  • lijinjun
    lijinjun
    2006-12-11

    OIS Source Code With Unicode Support.rar

     
  • Logged In: YES
    user_id=947604
    Originator: NO

    Of course I will consider supporting Unicode. It has also been my plan, I just havn't a lot of experience with this. I'll tak a look at what you submitted. At first glance though, a patch would have been better, but I can likely create a patch based off of the code you sent. I'll put this on the top of my todo list.

    Thanks :)

     
    • priority: 5 --> 7
     
  • lijinjun
    lijinjun
    2006-12-12

    Logged In: YES
    user_id=1665766
    Originator: YES

    oh~I forgot add some code in file OISPrereqs.h
    You maybe add some code in file OISPrereqs.h like this to support the Unicode!

    #include <tchar.h>

    typedef std::basic_string<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR> > _StringBase;

    typedef std::basic_ostringstream<TCHAR, std::char_traits<TCHAR> , std::allocator<TCHAR> > StrStreamType;

    typedef std::basic_istringstream<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR> > IStreamStream;

    typedef _StringBase String;

    typedef std::basic_ifstream<TCHAR, std::char_traits<TCHAR> > IFString;

    typedef std::basic_ios<TCHAR, std::char_traits<TCHAR> > IOS;

    typedef std::basic_ifstream<TCHAR, std::char_traits<TCHAR> > IFStream;

     
  • Logged In: YES
    user_id=1433477
    Originator: NO

    Unfortunately the tchar is using a "typedef wchar_t TCHAR;"

    Hence this will not work with mingw (gcc 3.4.5) without some tweaking: see this ogre forum thread for this issue: http://www.ogre3d.org/phpBB2/viewtopic.php?t=28885

    The next version of mingw (4.2) will resolve this issue. But it will still leave a lot of mingw user in the cold.

    Steven