remove uncommon langinfo code and replace it by more common setlocal. patch by Steven M. Schultz <sms@2BSD.COM>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11403 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-11-06 22:28:55 +00:00
parent 2d3a68bb0c
commit 34fd8afb8a
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@
#ifdef USE_ICONV
#include <locale.h>
#include <langinfo.h>
#include <iconv.h>
#endif
@ -114,7 +113,7 @@ static iconv_t url_conv;
static void string_utf16_open() {
setlocale(LC_CTYPE, "");
url_conv = iconv_open("UTF-16LE",nl_langinfo(CODESET));
url_conv = iconv_open("UTF-16LE",setlocale(LC_CTYPE, NULL));
}
static void string_utf16_close() {