[interchange] Relax regular expression for UTF8 locale used in [convert-date] tag.
Stefan Hornburg
interchange-cvs at icdevgroup.org
Tue Mar 5 20:06:32 UTC 2013
commit 9a08d2e0d9b3e3acc7f5fcc2d1b29e8a54ef208e
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Tue Mar 5 21:05:55 2013 +0100
Relax regular expression for UTF8 locale used in [convert-date] tag.
code/UserTag/convert_date.tag | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/code/UserTag/convert_date.tag b/code/UserTag/convert_date.tag
index 4718f81..31be272 100644
--- a/code/UserTag/convert_date.tag
+++ b/code/UserTag/convert_date.tag
@@ -77,7 +77,7 @@ sub {
if ($locale) {
$current = POSIX::setlocale(&POSIX::LC_TIME);
if (($::Variable->{MV_UTF8} || $Global::Variable->{MV_UTF8})
- && $locale !~ /\.utf8$/) {
+ && $locale !~ /\.utf-?8$/i) {
POSIX::setlocale(&POSIX::LC_TIME, "$locale.utf8");
}
else {
More information about the interchange-cvs
mailing list