mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +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
|
@ -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…
Add table
Add a link
Reference in a new issue