Bug 12796 - Trouble scanning files with diacritics
: Trouble scanning files with diacritics
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 7.4.0
: PC Windows XP
: P1 normal (vote)
: 7.4.0
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-11 04:59 UTC by Philip Meyer
Modified: 2009-10-05 14:37 UTC (History)
2 users (show)

See Also:
Category: Bug


Attachments
Playlist that references a file with diacritics in the filename (156 bytes, text/plain)
2009-08-03 23:52 UTC, Philip Meyer
Details
run filenames through GetANSIFileName() if needed (1.04 KB, application/octet-stream)
2009-09-07 07:27 UTC, Michael Herger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2009-07-11 04:59:14 UTC
eg. I have a playlist that references the path to a file 

#EXTINF:-1,Neunundfünfzig 49
M:\Music\Phil's Music\Electronic\Wolfram Spyra & Chris Lang\Achtundsechzig 24\01 - Neunundfünfzig 49.mp3

The new noweb-sqlite scanner doesn't seem to like this when processing playlists.  The scanner log contains:

[20:36:58.8625] Slim::Formats::Playlists::Base::playlistEntryIsValid (120) Warning: file:///M:/Music/Phil%27s%20Music/Electronic/Wolfram%20Spyra%20&%20Chris%20Lang/Achtundsechzig%2024/01%20-%20Neunundf found in playlist:
	file:///M:/Music/Slimserver/Playlists/Bad%20Tags.m3u doesn't exist on disk - skipping!
[20:36:58.9443] Slim::Formats::Playlists::Base::playlistEntryIsValid (120) Warning: file:///M:/Music/Phil%27s%20Music/Electronic/Wolfram%20Spyra%20&%20Chris%20Lang/Achtundsechzig%2024/01%20-%20Neunundf found in playlist:
	file:///M:/Music/Slimserver/Playlists/Bad%20Tags.m3u doesn't exist on disk - skipping!
Comment 1 James Richardson 2009-08-03 09:19:26 UTC
Andy will investigate this issue.
Comment 2 Andy Grundman 2009-08-03 19:34:31 UTC
The M3U code has some nasty encoding checks, so lots of things could be going wrong... can you upload a copy of this playlist?

FWIW I tested this on Mac and it worked fine for me.
Comment 3 Philip Meyer 2009-08-03 23:52:34 UTC
Created attachment 5561 [details]
Playlist that references a file with diacritics in the filename
Comment 4 Seth Schulte 2009-08-06 12:25:52 UTC
Is this specific to the noweb-sqlite scanner?
Comment 5 Andy Grundman 2009-08-06 12:28:31 UTC
No.
Comment 6 Michael Herger 2009-09-07 07:25:59 UTC
Andy - imho we have a very basic but important problem: File::Next fails on any non-latin character. Passing paths through Win32::GetANSIPathName() seems to fix the issue for me.
Comment 7 Michael Herger 2009-09-07 07:27:20 UTC
Created attachment 5790 [details]
run filenames through GetANSIFileName() if needed
Comment 8 Michael Herger 2009-09-08 04:15:17 UTC
isn't this another occurence of bug 4578?
Comment 9 SVN Bot 2009-09-10 02:48:58 UTC
 == Auto-comment from SVN commit #28486 to the slim repo by michael ==
 == https://svn.slimdevices.com/slim?view=revision&revision=28486 ==

Fixed Bug: 12796 +4.5
Description: use Win32::GetANSIPathName() instead of home-grown string transcoder to fix non-latin character issues in m3u playlists
Comment 10 Michael Herger 2009-09-10 02:51:24 UTC
We might need to apply similar fixes in other places too. Helped with iTunes parsing before.
Comment 11 James Richardson 2009-10-05 14:37:29 UTC
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server!
    * SqueezeCenter: 28672
    * Squeezebox 2 and 3: 130
    * Transporter: 80
    * Receiver: 65
    * Boom: 50
    * Controller: 7790
    * Radio: 7790  

Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.