Added some FIXMEs for later.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2013 12:43:06 -0400
changeset 766078204ab75b0f
parent 7659 ac4ce59c40e7
child 7661 93dac5ca9cb9
Added some FIXMEs for later.
src/core/windows/SDL_windows.h
     1.1 --- a/src/core/windows/SDL_windows.h	Mon Aug 19 16:29:46 2013 -0300
     1.2 +++ b/src/core/windows/SDL_windows.h	Tue Aug 20 12:43:06 2013 -0400
     1.3 @@ -35,10 +35,13 @@
     1.4  #include <windows.h>
     1.5  
     1.6  /* Routines to convert from UTF8 to native Windows text */
     1.7 +/* !!! FIXME: should we force Unicode at this point? */
     1.8  #if UNICODE
     1.9 +/* !!! FIXME: UCS-2 should be UTF-16 on Windows. */
    1.10  #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UCS-2-INTERNAL", (char *)(S), (SDL_wcslen(S)+1)*sizeof(WCHAR))
    1.11  #define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UCS-2-INTERNAL", "UTF-8", (char *)(S), SDL_strlen(S)+1)
    1.12  #else
    1.13 +/* !!! FIXME: UTF8ToString() can just be a SDL_strdup() here. */
    1.14  #define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "ASCII", (char *)(S), (SDL_strlen(S)+1))
    1.15  #define WIN_UTF8ToString(S) SDL_iconv_string("ASCII", "UTF-8", (char *)(S), SDL_strlen(S)+1)
    1.16  #endif