diff include/SDL_stdinc.h @ 2142:ca80c942e69c

Fixed bug #349 Solaris doesn't support the LATIN1 character set alias. Merged from 1.2 svn revision 3133f
author Sam Lantinga <slouken@libsdl.org>
date Wed, 04 Jul 2007 07:08:16 +0000
parents 0313af081a84
children e906da4414a3
line wrap: on
line diff
--- a/include/SDL_stdinc.h	Tue Jul 03 09:55:29 2007 +0000
+++ b/include/SDL_stdinc.h	Wed Jul 04 07:08:16 2007 +0000
@@ -656,8 +656,8 @@
                                                const char *fromcode,
                                                const char *inbuf,
                                                size_t inbytesleft);
-#define SDL_iconv_utf8_ascii(S)		SDL_iconv_string("ASCII", "UTF-8", S, SDL_strlen(S)+1)
-#define SDL_iconv_utf8_latin1(S)	SDL_iconv_string("LATIN1", "UTF-8", S, SDL_strlen(S)+1)
+#define SDL_iconv_utf8_ascii(S)		SDL_iconv_string("646", "UTF-8", S, SDL_strlen(S)+1)
+#define SDL_iconv_utf8_latin1(S)	SDL_iconv_string("8859-1", "UTF-8", S, SDL_strlen(S)+1)
 #define SDL_iconv_utf8_ucs2(S)		(Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1)
 #define SDL_iconv_utf8_ucs4(S)		(Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1)