* Fix --locale to control LC_ALL now.
parent
a1519df7dd
commit
b31dc8d994
|
@ -82,7 +82,7 @@ sub checkconfig () { #{{{
|
||||||
eval q{use POSIX};
|
eval q{use POSIX};
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
$ENV{LANG} = $config{locale}
|
$ENV{LANG} = $config{locale}
|
||||||
if POSIX::setlocale(&POSIX::LC_TIME, $config{locale});
|
if POSIX::setlocale(&POSIX::LC_ALL, $config{locale});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config{w3mmode}) {
|
if ($config{w3mmode}) {
|
||||||
|
|
|
@ -238,7 +238,7 @@ sub date_822 ($) { #{{{
|
||||||
|
|
||||||
eval q{use POSIX};
|
eval q{use POSIX};
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
my $lc_time= POSIX::setlocale(&POSIX::LC_TIME);
|
my $lc_time=POSIX::setlocale(&POSIX::LC_TIME);
|
||||||
POSIX::setlocale(&POSIX::LC_TIME, "C");
|
POSIX::setlocale(&POSIX::LC_TIME, "C");
|
||||||
my $ret=POSIX::strftime("%a, %d %b %Y %H:%M:%S %z", localtime($time));
|
my $ret=POSIX::strftime("%a, %d %b %Y %H:%M:%S %z", localtime($time));
|
||||||
POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
|
POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
|
||||||
|
@ -250,7 +250,7 @@ sub date_3339 ($) { #{{{
|
||||||
|
|
||||||
eval q{use POSIX};
|
eval q{use POSIX};
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
my $lc_time= POSIX::setlocale(&POSIX::LC_TIME);
|
my $lc_time=POSIX::setlocale(&POSIX::LC_TIME);
|
||||||
POSIX::setlocale(&POSIX::LC_TIME, "C");
|
POSIX::setlocale(&POSIX::LC_TIME, "C");
|
||||||
my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", localtime($time));
|
my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", localtime($time));
|
||||||
POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
|
POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
ikiwiki (1.39) UNRELEASED; urgency=low
|
ikiwiki (1.39) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* Add a rawhtml plugin that allows copying raw html files from the srcdir.
|
* Add a rawhtml plugin that allows copying raw html files from the srcdir.
|
||||||
|
* Fix --locale to control LC_ALL now.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 8 Jan 2007 15:53:25 -0500
|
-- Joey Hess <joeyh@debian.org> Wed, 10 Jan 2007 15:24:36 -0500
|
||||||
|
|
||||||
ikiwiki (1.38) unstable; urgency=low
|
ikiwiki (1.38) unstable; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -22,3 +22,4 @@ with him Spanish translation.
|
||||||
>> "Discussion" link instead of "Dyskusja" link after any page update
|
>> "Discussion" link instead of "Dyskusja" link after any page update
|
||||||
>> via WWW. --Pawel
|
>> via WWW. --Pawel
|
||||||
|
|
||||||
|
>>> A setlocale issue. Now [[bugs/done]] --[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue