Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Whoops, needed to remove the other version of getlocale()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 12, 2007
1 parent ead8961 commit 3f8edfe
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/stdlib/SDL_iconv.c
Expand Up @@ -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)
Expand Down

0 comments on commit 3f8edfe

Please sign in to comment.