FS#6203 - unified way to open utf8 text files
Opened by Dominik Riebeling (bluebrother) - Tuesday, 17 October 2006, 20:57 GMT
Last edited by Dominik Riebeling (bluebrother) - Saturday, 02 August 2008, 20:39 GMT
Since Rockbox supports utf8 there has been the issue of text files containing a BOM created by some editors. Rockbox needs to skip that BOM which is currently done independently in various places (and still missing in a couple of places). This patch addresses this by introducing a new open_utf8() function which behaves exactly like open() but places the file pointer to the first text byte after opening. That way opening a text file only needs to use that function and doesn't need to bother with a BOM anymore.
The attached patch changes this in a couple of places (see also commited
Saturday, 02 August 2008, 20:39 GMT
Reason for closing: Accepted
Additional comments about closing: committed adapted version as r18185.