[interchange] Relax regular expression for UTF8 locale used in [convert-date] tag.

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 9a08d2e0d9b3e3acc7f5fcc2d1b29e8a54ef208e
Author: Stefan Hornburg (Racke) <[email protected]>
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 {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.