Reply To: MWEdit

Home Forums Projects MWEdit Reply To: MWEdit

#5257

We’ll get it figured out! It is weird that TCHAR is in winnt.h instead of something more sensible like tchar.h. The latter has support functions but TCHAR itself is elsewhere. Maybe I need to clean up the Windows API as well (not happening! Too much work!)? 😛

Yeah, Unicode will be a tad hairy due to inconsistent support. I remember that with BOSS, it took a ton of trial and error to determine what was Unicode compliant but support has improved immensely since then. The existing code doesn’t use the wide-character versions, either

In the main standard, we have cwctype and cctype for UTF-8. As we know from prior investigation, wchar_t is implementation defined and thus not portable. There doesn’t exist equivalents for UTF-16, I don’t think, but I’ll need to do some more digging to make sure. We’ll also want to check to see what’s supported by the in-game engine for the in-game text.