mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 19:42:40 -05:00
Unify opening of utf-8 files (FS#6203). This also adds ignoring the BOM in several places it has been missing (as FS#6071).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18185 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6485d6d3ba
commit
02103a2fa7
8 changed files with 55 additions and 54 deletions
|
|
@ -1112,7 +1112,7 @@ void radio_load_presets(char *filename)
|
|||
snprintf(filepreset, sizeof(filepreset), "%s/%s.fmr",
|
||||
FMPRESET_PATH, filename);
|
||||
|
||||
fd = open(filepreset, O_RDONLY);
|
||||
fd = open_utf8(filepreset, O_RDONLY);
|
||||
if(fd >= 0)
|
||||
{
|
||||
while(!done && num_presets < MAX_PRESETS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue