OSDN Git Service

fixed: setlocale is called without sysntem encoding in Eethna_I18N::setLanguage
authorSotaro Karasawa <sotaro.k@gmail.com>
Fri, 14 Aug 2009 18:35:11 +0000 (03:35 +0900)
committerSotaro Karasawa <sotaro.k@gmail.com>
Fri, 14 Aug 2009 18:35:11 +0000 (03:35 +0900)
class/Ethna_I18N.php

index 53e5931..3e7f05b 100644 (file)
@@ -132,7 +132,7 @@ class Ethna_I18N
      */
     function setLanguage($locale, $systemencoding = null, $clientencoding = null)
     {
-        setlocale(LC_ALL, $locale);
+        setlocale(LC_ALL, $locale . ($systemencoding !== null ? "." . $systemencoding : ""));
 
         if ($this->use_gettext) {
             bind_textdomain_codeset($locale, $clientencoding);