Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Whoops, needed to remove the other version of getlocale()

  • Loading branch information
slouken committed Jul 12, 2007
1 parent ead8961 commit 3f8edfef239b910dd24140424642a8cdc28df15c

File 1 of 1 in 3f8edfe

@@ -798,27 +798,6 @@ SDL_iconv_close(SDL_iconv_t cd)

#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 *
SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf,
size_t inbytesleft)

0 comments on commit 3f8edfe

Please sign in to comment.