src/core/windows/SDL_windows.h
changeset 7833 b4a9cc7085f2
parent 7660 78204ab75b0f
child 8149 681eb46b8ac4
child 8535 e8ee0708ef5c
--- a/src/core/windows/SDL_windows.h	Thu Oct 17 23:44:30 2013 -0700
+++ b/src/core/windows/SDL_windows.h	Fri Oct 18 00:13:51 2013 -0700
@@ -35,11 +35,9 @@
 #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)
+#define WIN_StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(WCHAR))
+#define WIN_UTF8ToString(S) (WCHAR *)SDL_iconv_string("UTF-16LE", "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))