public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16088] New: Implement strptime %Z
@ 2013-10-25 17:12 neleai at seznam dot cz
  2014-03-11  7:20 ` [Bug libc/16088] " allachan at au1 dot ibm.com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: neleai at seznam dot cz @ 2013-10-25 17:12 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

            Bug ID: 16088
           Summary: Implement strptime %Z
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: neleai at seznam dot cz
                CC: drepper.fsp at gmail dot com

A strptime %Z currently only reads timezone but ignores it. Actual
implementation would be needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
@ 2014-03-11  7:20 ` allachan at au1 dot ibm.com
  2014-06-13 12:30 ` fweimer at redhat dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: allachan at au1 dot ibm.com @ 2014-03-11  7:20 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

paxdiablo <allachan at au1 dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allachan at au1 dot ibm.com

--- Comment #1 from paxdiablo <allachan at au1 dot ibm.com> ---
See also https://sourceware.org/bugzilla/show_bug.cgi?id=14876.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
  2014-03-11  7:20 ` [Bug libc/16088] " allachan at au1 dot ibm.com
@ 2014-06-13 12:30 ` fweimer at redhat dot com
  2015-01-27 14:02 ` vincent at bernat dot im
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 12:30 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
  2014-03-11  7:20 ` [Bug libc/16088] " allachan at au1 dot ibm.com
  2014-06-13 12:30 ` fweimer at redhat dot com
@ 2015-01-27 14:02 ` vincent at bernat dot im
  2015-08-27 22:18 ` [Bug time/16088] " jsm28 at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: vincent at bernat dot im @ 2015-01-27 14:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

Vincent Bernat <vincent at bernat dot im> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent at bernat dot im

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
                   ` (2 preceding siblings ...)
  2015-01-27 14:02 ` vincent at bernat dot im
@ 2015-08-27 22:18 ` jsm28 at gcc dot gnu.org
  2022-08-08 19:05 ` yann at droneaud dot fr
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-27 22:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |time

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
                   ` (3 preceding siblings ...)
  2015-08-27 22:18 ` [Bug time/16088] " jsm28 at gcc dot gnu.org
@ 2022-08-08 19:05 ` yann at droneaud dot fr
  2023-06-22 13:48 ` lancasterharp at gmail dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: yann at droneaud dot fr @ 2022-08-08 19:05 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

Yann Droneaud <yann at droneaud dot fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann at droneaud dot fr

--- Comment #2 from Yann Droneaud <yann at droneaud dot fr> ---
Created attachment 14265
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14265&action=edit
test case to demonstrate failure in parsing %Z format

(In reply to Ondrej Bilka from comment #0)
> A strptime %Z currently only reads timezone but ignores it. Actual
> implementation would be needed.

And unfortunately the way it ignores the timezone name makes strptime() unable
to parse names that are not delimited by white space.

For example strptime(, "%Z/",) will return NULL, because the trailing slash
will be consumed as the timezone name.

This corner case makes strptime() unable to parse strftime() output:

    strftime() produced "GMT/"
    strptime() failed to parse "GMT/"

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
                   ` (4 preceding siblings ...)
  2022-08-08 19:05 ` yann at droneaud dot fr
@ 2023-06-22 13:48 ` lancasterharp at gmail dot com
  2023-06-22 15:15 ` lancasterharp at gmail dot com
  2023-06-23  8:54 ` sam at gentoo dot org
  7 siblings, 0 replies; 9+ messages in thread
From: lancasterharp at gmail dot com @ 2023-06-22 13:48 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

Stanley Lancaster <lancasterharp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lancasterharp at gmail dot com

--- Comment #3 from Stanley Lancaster <lancasterharp at gmail dot com> ---
What would an actual implementation look like? The tm struct this function
fills out has no slot for timezone information, and the manpage says that the
%Z option is only included in strptime for "reasons of symmetry" with strftime.
Should this option do anything other than skip over characters until the next
character in the format string is reached?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
                   ` (5 preceding siblings ...)
  2023-06-22 13:48 ` lancasterharp at gmail dot com
@ 2023-06-22 15:15 ` lancasterharp at gmail dot com
  2023-06-23  8:54 ` sam at gentoo dot org
  7 siblings, 0 replies; 9+ messages in thread
From: lancasterharp at gmail dot com @ 2023-06-22 15:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

--- Comment #4 from Stanley Lancaster <lancasterharp at gmail dot com> ---
Created attachment 14944
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14944&action=edit
Proposed Patch, Submitted by Email,

Patch for this bug has been submitted via email. The patchwork page for it can
be found at
https://patchwork.sourceware.org/project/glibc/patch/20230622150021.3828261-1-lancasterharp@gmail.com/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug time/16088] Implement strptime %Z
  2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
                   ` (6 preceding siblings ...)
  2023-06-22 15:15 ` lancasterharp at gmail dot com
@ 2023-06-23  8:54 ` sam at gentoo dot org
  7 siblings, 0 replies; 9+ messages in thread
From: sam at gentoo dot org @ 2023-06-23  8:54 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16088

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-23  8:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-25 17:12 [Bug libc/16088] New: Implement strptime %Z neleai at seznam dot cz
2014-03-11  7:20 ` [Bug libc/16088] " allachan at au1 dot ibm.com
2014-06-13 12:30 ` fweimer at redhat dot com
2015-01-27 14:02 ` vincent at bernat dot im
2015-08-27 22:18 ` [Bug time/16088] " jsm28 at gcc dot gnu.org
2022-08-08 19:05 ` yann at droneaud dot fr
2023-06-22 13:48 ` lancasterharp at gmail dot com
2023-06-22 15:15 ` lancasterharp at gmail dot com
2023-06-23  8:54 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).