X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/cff913a1c984f82558a7d59dec0b8b1a06c5530d..a5a81f46c232cbbc19ee1024194ff339708d22e1:/SL/Dispatcher.pm diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index fbe63f2ec..abc5ec82f 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -18,6 +18,7 @@ use File::Basename; use IO::File; use List::MoreUtils qw(all); use List::Util qw(first); +use POSIX qw(setlocale); use SL::ArchiveZipFixes; use SL::Auth; use SL::Dispatcher::AuthHandler; @@ -51,6 +52,11 @@ sub new { SL::ArchiveZipFixes->apply_fixes; + # Initialize character type locale to be UTF-8 instead of C: + foreach my $locale (qw(de_DE.UTF-8 en_US.UTF-8)) { + last if setlocale('LC_CTYPE', $locale); + } + return $self; } @@ -344,7 +350,7 @@ sub handle_request { $::locale = undef; $::form = undef; - $::myconfig = (); + %::myconfig = (); $::request = undef; SL::DBConnect::Cache->reset_all;