Follow-up to #50804: Entities not sorted according to locale collation
authorstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 12 Aug 2013 20:31:38 +0000 (20:31 +0000)
committerstan <stan@735d13b6-9817-0410-8766-e36946ffe9aa>
Mon, 12 Aug 2013 20:31:38 +0000 (20:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/static_info_tables/trunk@78987 735d13b6-9817-0410-8766-e36946ffe9aa

ChangeLog
Classes/Utility/LocalizationUtility.php

index 27b821f..e834139 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-12  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Follow-up to #50804: Entities not sorted according to locale collation
+
 2013-08-07  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Resolves #50804: Entities not sorted according to locale collation
index c8aebaa..58f9a5d 100644 (file)
@@ -279,7 +279,13 @@ class LocalizationUtility {
                        $language = $languageRepository->findOneByIsoCodes($languageIsoCodeA2, $countryIsoCodeA2 ? $countryIsoCodeA2 : '');
                        self::$collatingLocale = $language->getCollatingLocale();
                }
-               return setlocale(LC_COLLATE, self::$collatingLocale . '.UTF8');
+               return setlocale(LC_COLLATE,
+                       array(
+                               self::$collatingLocale . '.UTF-8',
+                               self::$collatingLocale . '.UTF8',
+                               self::$collatingLocale . '.utf8'
+                       )
+               );
        }
 
        /**