28 May
2007
28 May
'07
11:46 p.m.
Hi, this patch changes the way subtitle recoding takes place. Instead of recoding each 'struct subtitle', the whole file is read into memory, recoded to utf-8, and a stream is created with new_memory_stream. This patch was created as an attempt to resolve the problem with BOM in the beginning of a unicode subtitle file. The problem is not solved yet, but it is easy now, and will be done in a separate patch. As a side effect, which is arguably more important, it allows to read UTF-16 encoded subtitles. Subtitle related code at the beginning of subreader.c is unused now and can be removed. All in all, it seems like the right thing to do. Opinions ?