Bug 15142 - Add UTF-8 locales for TinySC
: Add UTF-8 locales for TinySC
Status: CLOSED FIXED
Product: SB Touch
Classification: Unclassified
Component: API
: unspecified
: Other Other
: P1 normal (vote)
: 7.5.0
Assigned To: Alan Young
: TinySC
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-19 09:46 UTC by Andy Grundman
Modified: 2010-04-08 17:25 UTC (History)
4 users (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Grundman 2009-11-19 09:46:23 UTC
We need UTF-8 locales or the scanner doesn't read filenames properly.
Comment 1 Alan Young 2009-11-20 00:48:32 UTC
Richard, I cannot find where locale installation is excluded for SqueezeOS. In poky/meta-squeezeos/packages/meta/external-csl-toolchain/SUPPORTED is a list of 4 locales (we probably only need 1) but none seem to get installed.
Comment 2 Michael Herger 2009-11-20 13:46:17 UTC
FWIW: adding --charset=utf8 to the startup arguments seems to fix this issue. I did this and was able to browse and play "Ali Farka Tour�/Niafunk�" perfectly fine.

Or we hard-code this in S::U::OS::SqueezeOS::localeDetails.
Comment 3 Michael Herger 2009-11-20 13:49:57 UTC
Here's what I've been using on SlimNAS (which doesn't come with all the locale data neither, for the same reasons):

sub localeDetails {
	my $class = shift;
	my @locale = $class->SUPER::localeDetails();
	shift @locale;
	return ('utf8', @locale);
}
Comment 4 Andy Grundman 2009-12-03 10:51:35 UTC
I think we're OK as far as reading filenames, but we still need the locales 
installed in order to do correct sorting.  That may be less of an issue right 
now though.
Comment 5 Alan Young 2009-12-04 01:33:38 UTC
Update hours
Comment 6 Alan Young 2010-01-06 03:16:08 UTC
Update hours
Comment 7 Alan Young 2010-01-07 23:21:31 UTC
Update hours
Comment 8 SVN Bot 2010-01-07 23:37:06 UTC
 == Auto-comment from SVN commit #8298 to the jive repo by ayoung ==
 == https://svn.slimdevices.com/jive?view=revision&revision=8298 ==

Fixed bug 15142: Add UTF-8 locales for TinySC 

Modify external-csl-toolchain_2009q1-203.bb recipe to generate binary locales packages using the names locale-binary-*. This is probably wrong and I suspect that names such as glibc-binary-localedata-* should really be used and then referenced with a dependency from a locale-base-* package. The binary locales were already available in the external-csl-toolchain_2009q1-203 tree but were not being generated into packages due to the relevant pieces from glibc-package.bbclass being missing.

Include an install dependence for local-binary-en-us.utf8 in fab4.conf. I guess that this should really be part of the squeezecenter recipe but I cannot make that work with either INSTALL_IMAGES or RDEPENDS.

Set the LANG environment variable in the TinySC startup script to use en_US.utf8.
Comment 9 Chris Owens 2010-04-08 17:25:00 UTC
This bug has been marked fixed in a released version of Squeezebox Server or the accompanying firmware or mysqueezebox.com release.

If you are still seeing this issue, please let us know!