[vlc-devel] [PATCH] demux: hls: playlist: fall back to "C" locale
KO Myung-Hun
komh78 at gmail.com
Fri Dec 11 13:57:03 CET 2015
Ignore please...
KO Myung-Hun wrote:
> Hi/2.
>
> Francois Cartegnie wrote:
>> Le 06/12/2015 10:58, KO Myung-Hun a écrit :
>>> Some systems such as OS/2, do not support other locales than C and
>>> POSIX. And those locales cause SIGABRT due to std::runtime_error
>>> exception, especially, when playing youtube live streaming.
>>
>>
>>> std::istringstream is(value);
>>> - is.imbue(std::locale(""));
>>> + try
>>> + {
>>> + is.imbue(std::locale(""));
>>> + }
>>> + catch(const std::runtime_error &e)
>>> + {
>>> + is.imbue(std::locale("C"));
>>> + }
>>
>>
>> The std::locale("") was wrong.
>> The correct fix is to always convert using C locale.
>>
>
> Updated.
>
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
More information about the vlc-devel
mailing list