Bug 1895 - Non-ASCII characters mangled and dropped when scanning directories
: Non-ASCII characters mangled and dropped when scanning directories
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 6.2.0
: Macintosh All
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-30 13:31 UTC by S. Ben Melhuish
Modified: 2008-12-15 11:57 UTC (History)
0 users

See Also:
Category: ---


Attachments
Log exhibiting server misbehavior when scanning directories containing non-ASCII characters. (11.07 KB, text/plain)
2005-07-30 13:32 UTC, S. Ben Melhuish
Details

Note You need to log in before you can comment on or make changes to this bug.
Description S. Ben Melhuish 2005-07-30 13:31:01 UTC
This looks related (at first glance) to 1774 and 1786, but has different symptoms.

When I set SlimServer's music folder to a directory containing non-ASCII characters (e.g., without the 
quotes, "/Volumes/Eve�s Annex/Media/music/iTMS (test)"), the web GUI accepts the value, but scanning 
fails.

When I created symbolic links "/mtest" and "/music test", pointing to the above directory, and pointed 
SlimServer to those directories instead, scanning worked successfully.

I turned on d_files, d_paths, d_scan; d_server was left on. The relevant log section is attached. (This has 
entries referring to the above symbolic links; it was generated after I changed the music directory 
*back* to the non-working path from "/music test".) It appears that the "special" character (the "smart 
apostrophe" in the second component of the path) was mangled twice: the first time was the first entry, 
where it has only the first character of its misinterpreted UTF-8 value; the second time, starting with 
the second entry and continuing from that point, it drops even that character, turning the correct "/
Volumes/Eve�s Annex/..." into "/Volumes/Eves%20Annex/...".

Using Mac OS 10.4.2, iTunes *with an additional SlimServer music folder*, 6.2 nightly from 7/30/2005 
(SlimServer Version: 6.2b1 - trunk - Mac OS X 10.4.2 (8C46) - EN - utf8).
Comment 1 S. Ben Melhuish 2005-07-30 13:32:19 UTC
Created attachment 686 [details]
Log exhibiting server misbehavior when scanning directories containing non-ASCII characters.
Comment 2 S. Ben Melhuish 2005-07-30 13:47:31 UTC
Changing "Component" from Audio (default) to Misc.

Given the workaround, this is not a top-priority bug for me.
Comment 3 Dan Sully 2005-07-30 19:23:34 UTC
We need to properly decode UTF8 from these fields in Settings
Comment 4 Dan Sully 2005-08-10 21:52:00 UTC
Ben - I've checked in a fix as subversion change 3936 to the 6.2 tree.
Comment 5 S. Ben Melhuish 2005-08-11 09:48:16 UTC
Thanks.  I'll test this soon -- hopefully tonight, this weekend at the latest.
Comment 6 S. Ben Melhuish 2005-08-14 22:18:07 UTC
The bug is fixed in today's nightly (8/14/2005).

I'm marking this bug "verified"; for future reference, is that correct protocol for how you folks use 
Bugzilla?
Comment 7 Dan Sully 2005-08-14 22:35:55 UTC
Yes.

Thanks.
Comment 8 James Richardson 2008-12-15 11:57:34 UTC
This bug has been fixed in the latest release of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

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