diff options
author | Joey Hess <joey@kitenet.net> | 2012-02-01 22:47:21 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-02-01 22:49:35 -0400 |
commit | 3200515b3d447eea032f96ebff17d9bfa8ea255b (patch) | |
tree | 6aee17cef0b3fd93ef9cd2cb746f8eb5139ee3c8 /IkiWiki.pm | |
parent | 8fe55be60df09ce69a0c9453770d8b5bc5188138 (diff) | |
download | ikiwiki-3200515b3d447eea032f96ebff17d9bfa8ea255b.tar ikiwiki-3200515b3d447eea032f96ebff17d9bfa8ea255b.tar.gz |
fix typo in LC_TIME locale lookup
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 0a788f35b..2a83777e6 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1156,7 +1156,7 @@ sub strftime_utf8 { # strftime doesn't know about encodings, so make sure # its output is properly treated as utf8. # Note that this does not handle utf-8 in the format string. - $strftime_encoding = POSIX::setlocale(&POSIX::LC_TIME) =~ m#\.([^@]+)# + ($strftime_encoding) = POSIX::setlocale(&POSIX::LC_TIME) =~ m#\.([^@]+)# unless defined $strftime_encoding; $strftime_encoding ? Encode::decode($strftime_encoding, POSIX::strftime(@_)) |