mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
src/lib/libast/tm/tminit.c:
- Commit 9f43f8d1
, in addition to backporting fixes from ksh93v-, also
backported this bug:
$ printf '%(%Z)T' now
PPT # Should be PDT
Reapply the ksh2020 bugfix to fix the %Z time
format again.
src/cmd/ksh93/tests/builtins.sh:
- Add a regression test so this bug (hopefully) isn't backported from
ksh93v- again).
This commit is contained in:
parent
b4dba2ea62
commit
767d23b3fe
2 changed files with 3 additions and 8 deletions
|
@ -844,6 +844,7 @@ unset foo
|
|||
[[ $(printf '%(%k)T') == $(printf '%(%_H)T') ]] || err_exit 'date format %k is not the same as %_H'
|
||||
[[ $(printf '%(%f)T') == $(printf '%(%Y.%m.%d-%H:%M:%S)T') ]] || err_exit 'date format %f is not the same as %Y.%m.%d-%H:%M:%S'
|
||||
[[ $(printf '%(%q)T') == $(printf '%(%Qz)T') ]] && err_exit 'date format %q is the same as %Qz'
|
||||
[[ $(printf '%(%Z)T') == $(date '+%Z') ]] || err_exit "date format %Z is incorrect (expected $(date '+%Z'), got $(printf '%(%Z)T'))"
|
||||
|
||||
# Test manually specified blank and zero padding with 'printf %T'
|
||||
(
|
||||
|
|
|
@ -247,10 +247,6 @@ tmlocal(void)
|
|||
else if (e)
|
||||
environ[0] = e;
|
||||
}
|
||||
#endif
|
||||
#if _dat_tzname
|
||||
local.standard = strdup(tzname[0]);
|
||||
local.daylight = strdup(tzname[1]);
|
||||
#endif
|
||||
tmlocale();
|
||||
|
||||
|
@ -296,10 +292,8 @@ tmlocal(void)
|
|||
* POSIX
|
||||
*/
|
||||
|
||||
if (!local.standard)
|
||||
local.standard = strdup(tzname[0]);
|
||||
if (!local.daylight)
|
||||
local.daylight = strdup(tzname[1]);
|
||||
local.standard = strdup(tzname[0]);
|
||||
local.daylight = strdup(tzname[1]);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue