Permalink
Browse files

use C locale. Fixes #313

  • Loading branch information...
1 parent ea7c0cf commit 30181dd20128fa3c71a78ff45f7f34947d89ebf2 @miyagawa miyagawa committed Aug 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Plack/Middleware/AccessLog.pm
  2. +1 −1 lib/Plack/Middleware/SimpleLogger.pm
@@ -36,7 +36,7 @@ sub log_line {
my $strftime = sub {
my $old_locale = POSIX::setlocale(&POSIX::LC_ALL);
- POSIX::setlocale(&POSIX::LC_ALL, 'en');
+ POSIX::setlocale(&POSIX::LC_ALL, 'C');
my $out = POSIX::strftime(@_);
POSIX::setlocale(&POSIX::LC_ALL, $old_locale);
return $out;
@@ -30,7 +30,7 @@ sub call {
sub format_time {
my $old_locale = POSIX::setlocale(&POSIX::LC_ALL);
- POSIX::setlocale(&POSIX::LC_ALL, 'en');
+ POSIX::setlocale(&POSIX::LC_ALL, 'C');
my $out = POSIX::strftime(@_);
POSIX::setlocale(&POSIX::LC_ALL, $old_locale);
return $out;

0 comments on commit 30181dd

Please sign in to comment.