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