]> git.mjollnir.org Git - s9y.git/commitdiff
only assume that windows has no german utf-8 locales
authorgarvinhicking <garvinhicking>
Fri, 21 Apr 2006 07:58:15 +0000 (07:58 +0000)
committergarvinhicking <garvinhicking>
Fri, 21 Apr 2006 07:58:15 +0000 (07:58 +0000)
include/functions.inc.php

index d43d24f23dbc72de27142d3ecda41d38877c4707..d8f376ccd9c2b2d815425ac21df84a6abcd94d06 100644 (file)
@@ -136,7 +136,7 @@ function serendipity_strftime($format, $timestamp = null, $useOffset = true) {
 
     if ($is_win_utf === null) {
         // Windows does not have UTF-8 locales.
-        $is_win_utf = (LANG_CHARSET == 'UTF-8' && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false);
+        $is_win_utf = (LANG_CHARSET == 'UTF-8' && $serendipity['lang'] == 'de' && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false);
     }
 
     switch($serendipity['calendar']) {