[MPlayer-cvslog] r34443 - trunk/sub/subreader.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Dec 14 19:56:47 CET 2011


On Wed, Dec 14, 2011 at 01:17:50AM +0100, iive wrote:
> Author: iive
> Date: Wed Dec 14 01:17:49 2011
> New Revision: 34443
> 
> Log:
> Avoid double conversion from utf16/ucs2 to utf8 for text subtitles.
> 
> There is code that auto-detects utf16 encoding of the subtitle stream
> and forces the reading functions to convert it to native utf8.
> The bug happens when using enca to (correctly) guess that the input
> file has ucs2 encoding and tries to convert the input stream to utf8, again.

Hm, wouldn't it be better to change the enca code so it never sees any
utf16 encoded data in the case we convert ourselves?
Or what else is going wrong here?
Or is there a reset of enca state missing at some point or such?


More information about the MPlayer-cvslog mailing list