Revision: 1221
http://mrbs.svn.sourceforge.net/mrbs/?rev=1221&view=rev
Author: jberanek
Date: 2009-10-18 16:02:33 +0000 (Sun, 18 Oct 2009)
Log Message:
-----------
* Fix for setting UTF-8 locale on BSD (and Linux). It turns out Linux is
also happy to specify a UTF-8 locale with ".UTF-8" in upper case.
Fix provided by Ian Rees in SF tracker #2859067.
Modified Paths:
--------------
mrbs/trunk/web/language.inc
Modified: mrbs/trunk/web/language.inc
===================================================================
--- mrbs/trunk/web/language.inc 2009-10-18 15:35:24 UTC (rev 1220)
+++ mrbs/trunk/web/language.inc 2009-10-18 16:02:33 UTC (rev 1221)
@@ -526,18 +526,17 @@
}
if ($unicode_encoding)
{
- if ($server_os == "sunos")
+ switch ($server_os)
{
- $locale .= ".UTF-8";
- }
- else
- {
- // On IBM AIX, do not add ".utf-8" as this yields an invalid
- // locale name
- if ($server_os != "aix")
- {
+ case "sunos":
+ case "linux":
+ case "bsd":
+ $locale .= ".UTF-8";
+ break;
+
+ case "macosx":
$locale .= ".utf-8";
- }
+ break;
}
}
if (setlocale(LC_ALL, $locale) == FALSE)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits