[Slim-Checkins] r11811 - /trunk/server/Slim/Utils/Strings.pm

mherger at svn.slimdevices.com mherger at svn.slimdevices.com
Tue Apr 24 16:35:48 PDT 2007


Author: mherger
Date: Tue Apr 24 16:35:48 2007
New Revision: 11811

URL: http://svn.slimdevices.com?rev=11811&view=rev
Log:
Bug: N/A
Description: make sure we set the correct locale on Linux/Unix systems

Modified:
    trunk/server/Slim/Utils/Strings.pm

Modified: trunk/server/Slim/Utils/Strings.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Utils/Strings.pm?rev=11811&r1=11810&r2=11811&view=diff
==============================================================================
--- trunk/server/Slim/Utils/Strings.pm (original)
+++ trunk/server/Slim/Utils/Strings.pm Tue Apr 24 16:35:48 2007
@@ -479,7 +479,10 @@
 }
 
 sub setLocale {
-	setlocale( LC_TIME, string('LOCALE' . (Slim::Utils::OSDetect::OS() eq 'win' ? '_WIN' : '') ) );
+	my $locale = string('LOCALE' . (Slim::Utils::OSDetect::OS() eq 'win' ? '_WIN' : '') );
+	$locale .= Slim::Utils::Unicode::currentLocale() =~ /utf8/i ? '.UTF-8' : '';
+
+	setlocale( LC_TIME, $locale );
 }
 
 



More information about the checkins mailing list