Bug 9236 - Directories with names containing cyrillic chars disappear from MusicFolder
: Directories with names containing cyrillic chars disappear from MusicFolder
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: Display
: 7.3.0
: PC Debian Linux
: -- normal (vote)
: 7.x
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-20 17:43 UTC by Nick Orlov
Modified: 2009-07-31 10:27 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Orlov 2008-08-20 17:43:19 UTC
Pretty much self descriptive.

Names of such directories/files are shown as a bunch of spaces on both SB3 display and web gui when one tries to reach the file via MusicFolder. I've noticed it only recently, but chances are that all 7.3 builds are affected. I can bisect per request.
Comment 1 Michael Herger 2008-08-21 00:39:02 UTC
Are you using local storage? What locale (OS vs. reported in SC)?
Comment 2 Nick Orlov 2008-08-21 19:05:20 UTC
Here we go:

====

xxx@yyyy:~$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES=C
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=

====

SqueezeCenter Version: 7.3 - 22783 @ Wed Aug 20 03:07:14 PDT 2008 - Debian - EN - utf8
Server IP address: 192.168.2.2
Perl Version: 5.10.0 i486-linux-gnu-thread-multi
MySQL Version: 5.0.51a-12

Platform Architecture: i686-linux

====

Note: when browsing Artists or Albums everything works just fine.
Comment 3 Michael Herger 2008-08-21 22:54:38 UTC
what would SC's configuration look like if you removed the --charset parameter from SC's service configuration? (Must be somewhere in /etc/*/squeezecenter*)
Comment 4 Nick Orlov 2008-08-23 10:43:36 UTC
With commented out 'CHARSET=utf8' in /etc/init.d/squeezecenter I'm getting

SqueezeCenter Version: 7.3 - 22857 @ Sat Aug 23 03:07:35 PDT 2008 - Debian - EN - koi8-r

and it fixes the 'MusicFolder' view for me.
Comment 5 Nick Orlov 2008-08-23 10:49:46 UTC
P.S. There were no need to rescan, just to restart squeezecenter
Comment 6 Michael Herger 2008-08-24 23:38:54 UTC
Thanks for the feedback. The question that comes to my mind is whether it would still work _after_ a rescan?

We've had similar reports recently, with the --charset parameter breaking scanning in many installations, when we though it would fix most of those issues...
Comment 7 Nick Orlov 2008-08-25 06:05:45 UTC
Confirmed: full rescan without forced utf8 charset works just fine here.
Comment 8 Nick Orlov 2008-08-25 06:18:34 UTC
P.S. I know what is missing. I had to add

# locale settings
if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG
fi

to the end of /etc/default/squeezecenter (long time ago) so correct locale is set for SC upon OS bootup. Your fix solved the issue for most of the people since 99% of them are using UTF8 locale.
Comment 9 Michael Herger 2008-08-25 06:28:03 UTC
Thanks for the feedback! Closing this bug as it's a configuration issue.

Might be related/dupe of bug 9126.
Comment 10 Nick Orlov 2008-08-25 17:11:24 UTC
Michael,

You might still want to change /etc scripts you are including into Debian package so locale is being set correctly for the rest of the people.
Comment 11 Michael Herger 2008-08-25 22:38:41 UTC
Nick - we do. We're currently watching the balance, whether there are more issues caused by this change than it fixes. Thus your feedback is important to us. Thanks!
Comment 12 Chris Owens 2009-07-31 10:27:52 UTC
Reduce number of active targets for SC