Bugzilla – Bug 913
Load playlist with Umlaut doesn't work
Last modified: 2005-03-10 00:07:17 UTC
I have some albums with Umlauts in names and pathes. Selecting such an album for playing works without problem. I then save the current playlist (with this album) and upon loading it again I get the 'Problem: Can't open file for' error on the player. Also the database seems to get disturbed. The album in question gets added multiple times to the 'Browse album' list. Maybe the problem already occurs when saving the playlist.
Felix - could you upload the playlist to the bug? Also - what is your LC_CTYPE environment variable set to? Thanks.
Created attachment 299 [details] Playlist with Umlaut
LC_CTYPE is not set
Created attachment 300 [details] Patch for locales and playlists. Felix - could you give this patch a go? Thanks.
I've checked this in as subversion change 2296.
Created attachment 303 [details] New playlist with umlauts from revision 2301
Created attachment 304 [details] Logs from SlimServer rev 2301 with d_source I still get the 'Can't open file for' error. Attached is the new playlist and the output of SlimServer with d_source in a good case, where the file plays and the bad case, where it doesn't. Do I need to set LC_CTYPE to make it work?
Well, in the case of not having an LC_CTYPE set, we default to ISO-8859-1. My change makes both the reading and writing of pls/m3u files happen in the locale you're in. So if there's no LC_CTYPE, we assume and read in ISO-8859-1.
Also - is this a playlist you are creating by hand, or SS is creating?
The playlist is SS created. I have two SuSE installations. A production server and a test server. The output I sent is from my test server where it still does not work. But yesterday I installed v6 for SB2 on my production server too and a quick check shows that it works there. I checked for LC_CTYPE and it's also not set. Test server is SuSE 8.2, production server is SuSE 9.0 I will try to setup another testserver with an newer SuSE installation and see what happens. Until then I guess you can close this bug.