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: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 26 Apr 2012 16:38:36 +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
--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-04-26 16:38:36 UTC ---
(In reply to comment #1)
> POSIX explicitly allows but does not require this behavior:
Yes, I've read that description before filing the bug.
I believe it's a quality-of-implementation issue: effectively one can't
use tzname at all in a glibc multi-threaded program, even if one calls only
"thread-safe" localtime_r.
This behaviour is very likely to surprise most developers.
--
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.