On Wed, 16 Jun 2004, Scott A. Colcord wrote:
> I've noticed that all the unicode wchar functions have been #defined back to
> their ASCII parallels. It seems like this would break any attempt to make
> unicode work properly. Is there any reason for it?
>
> src/sc2code/globdata.h:
> #define wsprintf sprintf
> #define wstrlen strlen
> #define wstrcpy strcpy
> #define wstrcat strcat
> #define wstrupr strupr
> #define wstrncpy strncpy
> #define wstricmp stricmp
> #define wstrtoul strtoul
> #define wstrcspn strcspn
At some point at the start of the project, Chris had made a start of
converting the existing code to use unicode, but it appearantly was not
finished yet, and these defines were made to get back to the original
behaviour (globdata.h is not really the place for this though).
When the new resource system gets introduced, that will also take care of
unicode strings. We may end up using UTF8 encoding though instead of UTF16.
Serge
|