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/4772] strptime() doesn't support strftime()'s flags


------- Additional Comments From drepper at redhat dot com  2007-07-10 22:28 -------
The patch is not reasonable.  Ignoring the modifiers can give the wrong
impression and there might be situations where it makes a difference.

There never ever has been a promise that the locale formats are usable in
strptime.  And whatever the man page says couldn't possibly more irrelevant. 
The man pages are not written by the people who write the code.  The info pages
clearly state

The only difference is that the flags `_', `-', `0', and `^' are not allowed.


Using strptime to parse anything by untranslated strings is a gamble anyway.  If
you want to do this then prepare the strings yourself.  Get the locale format,
strip out the flags, and then pass it on to strptime.

I have not seen any argument why this should be the problem of the
implementation which at that point would expose itself to additional problems.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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