Mercurial > mplayer.hg
changeset 11402:b0c13371ebdf
remove uncommon langinfo code and replace it by more common setlocal. patch by Steven M. Schultz <sms@2BSD.COM>
author | alex |
---|---|
date | Thu, 06 Nov 2003 22:28:55 +0000 |
parents | c17fc395142a |
children | 86ab7e0b2a65 |
files | libmpdemux/asf_mmst_streaming.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/asf_mmst_streaming.c Thu Nov 06 20:32:47 2003 +0000 +++ b/libmpdemux/asf_mmst_streaming.c Thu Nov 06 22:28:55 2003 +0000 @@ -24,7 +24,6 @@ #ifdef USE_ICONV #include <locale.h> -#include <langinfo.h> #include <iconv.h> #endif @@ -114,7 +113,7 @@ 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() {