This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14876] Support for strprime with %Z is inconsistent between doc and code


http://sourceware.org/bugzilla/show_bug.cgi?id=14876

--- Comment #1 from paxdiablo <allachan at au1 dot ibm.com> 2012-11-26 04:15:15 UTC ---
Actually, there's one possibility for consuming the input I thought I'd
mention.

If we're certain the timezone won't have spaces in it, we could just consume
everything up to the next whitespace.

You still won't get a timezone indicator in your struct tm but at least it:

(1) would agree with the doco; and

(2) would successfully parse strings of the correct format without an error.

Now there may be some reason why that won't work, but I can't think of one off
the top of my head. No doubt someone more familiar with the codebase will let
me know if I'm indulging in verbal diarrhoea.

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]