mirror of https://github.com/mpv-player/mpv
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:
parent
2d3a68bb0c
commit
34fd8afb8a
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#ifdef USE_ICONV
|
#ifdef USE_ICONV
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <langinfo.h>
|
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -114,7 +113,7 @@ static iconv_t url_conv;
|
||||||
|
|
||||||
static void string_utf16_open() {
|
static void string_utf16_open() {
|
||||||
setlocale(LC_CTYPE, "");
|
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() {
|
static void string_utf16_close() {
|
||||||
|
|
Loading…
Reference in New Issue