This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/14023] localtime_r unexpectedly writes tzname[]
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 26 Apr 2012 15:53:38 +0000
- Subject: [Bug libc/14023] localtime_r unexpectedly writes tzname[]
- Auto-submitted: auto-generated
- References: <bug-14023-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14023
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2012-04-26 15:53:38 UTC ---
POSIX explicitly allows but does not require this behavior:
"Unlike localtime(), the localtime_r() function is not required to set tzname.
If localtime_r() does not set tzname, it shall not set daylight and shall not
set timezone."
Source:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.