diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-03-30 12:14:58 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2023-07-02 12:15:57 -0400 |
commit | b1fac21e4e43aa800e162e80532b8f3e17169748 (patch) | |
tree | d40648c7f5568d75096792e6d1b1fde2b3f71673 /firmware/font.c | |
parent | 3b1e95d4802cd0f5a5df9d4d67696be1af33a14f (diff) | |
download | rockbox-b1fac21e4e43aa800e162e80532b8f3e17169748.tar.gz rockbox-b1fac21e4e43aa800e162e80532b8f3e17169748.zip |
playlist: Fix wrong handling of playlists without UTF-8 BOM
add_indices_to_playlist() wrongly assumes playlist->utf8 means
the playlist has a UTF-8 BOM. It only means the file is UTF-8
encoded, and says nothing about the presence of a BOM.
Trying to seek past a BOM when there is none mangles the first
filename in the playlist. Avoid this by closing & reopening the
playlist, which ensures the BOM (or lack of it) gets detected
properly.
Change-Id: I222fa6fc31e941d0252f1895b393a51694b93b7c
Diffstat (limited to 'firmware/font.c')
0 files changed, 0 insertions, 0 deletions