From 82ed56bf59bc15d786c5280972789999e24d759b Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Tue, 24 Jun 2008 20:44:45 +0000 Subject: When saving a .m3u8 playlist, include a byte order mark (BOM), as some applications require it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17786 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/playlist.c b/apps/playlist.c index 83bce9036b..fa448a0adc 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -3420,6 +3420,12 @@ int playlist_save(struct playlist_info* playlist, char *filename) display_playlist_count(count, ID2P(LANG_PLAYLIST_SAVE_COUNT), false); cpu_boost(true); + + if (is_m3u8(path)) + { + /* some applications require a BOM to read the file properly */ + write(fd, BOM, BOM_SIZE); + } index = playlist->first_index; for (i=0; iamount; i++) -- cgit v1.2.3