summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-11-16 08:53:10 +0000
committeralecpl <alec@alec.pl>2008-11-16 08:53:10 +0000
commit14de18d5f4636ca86ed8cac4c8c725e07bd2ff79 (patch)
tree70c3ab57445421998490399f777454f180060297 /program/include
parentf1d020838063880f3cda56589550227d776c49ba (diff)
- Fix setting locale to tr_TR, ku and az_AZ (#1485470)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcmail.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 7eade3223..9690d8d29 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -171,6 +171,10 @@ class rcmail
// set localization
setlocale(LC_ALL, $_SESSION['language'] . '.utf8', 'en_US.utf8');
+
+ // workaround for http://bugs.php.net/bug.php?id=18556
+ if (in_array($_SESSION['language'], array('tr_TR', 'ku', 'az_AZ')))
+ setlocale(LC_CTYPE, 'en_US' . '.utf8');
}