Whoops, needed to remove the other version of getlocale()
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Jul 2007 07:55:18 +0000
changeset 21839f31740cad2e
parent 2182 cc2597da0840
child 2184 8f8516e79a13
Whoops, needed to remove the other version of getlocale()
src/stdlib/SDL_iconv.c
     1.1 --- a/src/stdlib/SDL_iconv.c	Thu Jul 12 07:52:50 2007 +0000
     1.2 +++ b/src/stdlib/SDL_iconv.c	Thu Jul 12 07:55:18 2007 +0000
     1.3 @@ -798,27 +798,6 @@
     1.4  
     1.5  #endif /* !HAVE_ICONV */
     1.6  
     1.7 -static const char *
     1.8 -getlocale()
     1.9 -{
    1.10 -    const char *lang;
    1.11 -
    1.12 -    lang = SDL_getenv("LC_ALL");
    1.13 -    if (!lang) {
    1.14 -        lang = SDL_getenv("LC_CTYPE");
    1.15 -    }
    1.16 -    if (!lang) {
    1.17 -        lang = SDL_getenv("LC_MESSAGES");
    1.18 -    }
    1.19 -    if (!lang) {
    1.20 -        lang = SDL_getenv("LANG");
    1.21 -    }
    1.22 -    if (!lang || SDL_strcmp(lang, "C") == 0) {
    1.23 -        lang = "ASCII";
    1.24 -    }
    1.25 -    return lang;
    1.26 -}
    1.27 -
    1.28  char *
    1.29  SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf,
    1.30                   size_t inbytesleft)