Support and General Use > Audio Playback, Database and Playlists
track entries on UTF-8 playlists seem cut and look like "1. p3", "2. p3"...
Lear:
I've seen this problem too, and I'm pretty sure the problem is that the playlist begins with a BOM, which causes the in-RAM index to be incorrect (point to the wrong parts of the playlist file). If so, the recent UTF-8 unification is the cause, and more specifically, the removal of the line "i += BOM_SIZE;". Easy to add back, to the if statement at line 536 in playlist.c. I don't have access to a development environment right now, so I can't test it myself.
By the way, it almost looks like the patch was never tested with a playlist containing a BOM... ;D
bluebrother:
I've tried putting back the BOM line and it seems to fix the issue. No idea why I haven't observed the problem myself before (maybe I fooled myself by using a playlist with three similar tracks and using the default repeat setting ... should've used an album).
Nevertheless I don't really understand why add_indices_to_playlist() would need to check that -- IIRC if that happens the playlist has been opened without BOM checking in the first place and it should rather get changed there. Or is there something I'm missing? Ok, figured it. Man do I feel stupid ...
Edit: yep, I fooled myself with my test playlist. D'oh! Committed a fix ...
spike66:
--- Quote from: bluebrother on August 08, 2008, 03:47:22 PM ---can you post an affected playlist somewhere? I seem to fail reproducing the issue for myself.
--- End quote ---
I was about to post a playlist but it's obviously no longer necessary... so thanks bluebrother and Lear, it's working just fine now ;)
surfer:
yea...it works fine again, thanks a lot bluebrother & Lear! :-)
Navigation
[0] Message Index
[*] Previous page
Go to full version