projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rechnungsadresse aus den Stammdaten bei periodischen Rechnungen verwenden (Anzeige...
[kivitendo-erp.git]
/
SL
/
Dispatcher.pm
diff --git
a/SL/Dispatcher.pm
b/SL/Dispatcher.pm
index
6b7cf63
..
abc5ec8
100644
(file)
--- 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 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;
use SL::ArchiveZipFixes;
use SL::Auth;
use SL::Dispatcher::AuthHandler;
@@
-51,6
+52,11
@@
sub new {
SL::ArchiveZipFixes->apply_fixes;
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;
}
return $self;
}