Whoops, needed to remove the other version of getlocale()
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402504
This commit is contained in:
parent
fc4cf4c9fc
commit
fc3b506099
1 changed files with 0 additions and 21 deletions
|
@ -798,27 +798,6 @@ SDL_iconv_close(SDL_iconv_t cd)
|
||||||
|
|
||||||
#endif /* !HAVE_ICONV */
|
#endif /* !HAVE_ICONV */
|
||||||
|
|
||||||
static const char *
|
|
||||||
getlocale()
|
|
||||||
{
|
|
||||||
const char *lang;
|
|
||||||
|
|
||||||
lang = SDL_getenv("LC_ALL");
|
|
||||||
if (!lang) {
|
|
||||||
lang = SDL_getenv("LC_CTYPE");
|
|
||||||
}
|
|
||||||
if (!lang) {
|
|
||||||
lang = SDL_getenv("LC_MESSAGES");
|
|
||||||
}
|
|
||||||
if (!lang) {
|
|
||||||
lang = SDL_getenv("LANG");
|
|
||||||
}
|
|
||||||
if (!lang || SDL_strcmp(lang, "C") == 0) {
|
|
||||||
lang = "ASCII";
|
|
||||||
}
|
|
||||||
return lang;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf,
|
SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf,
|
||||||
size_t inbytesleft)
|
size_t inbytesleft)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue