Bug 1105 - add %z format to strptime
Summary: add %z format to strptime
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks: libc236
  Show dependency treegraph
 
Reported: 2005-07-18 03:33 UTC by Roland McGrath
Modified: 2005-07-19 03:30 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland McGrath 2005-07-18 03:33:03 UTC
This trunk patch should go into the 2.3 branch:

2005-04-26  Ulrich Drepper  <drepper@redhat.com>

	* time/strptime_l.c (__strptime_internal): Handle 'z' to set
	tm_gmtoff.
	* time/Makefile (tests): Add tst-strptime2.
	* time/tst-strptime2.c: New file.
Comment 1 Sourceware Commits 2005-07-18 03:33:49 UTC
Subject: Bug 1105

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-07-18 03:33:45

Modified files:
	time           : strptime_l.c Makefile 
Added files:
	time           : tst-strptime2.c 

Log message:
	2005-04-26  Ulrich Drepper  <drepper@redhat.com>
	
	[BZ #1105]
	* time/strptime_l.c (__strptime_internal): Handle 'z' to set
	tm_gmtoff.
	* time/Makefile (tests): Add tst-strptime2.
	* time/tst-strptime2.c: New file.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/time/tst-strptime2.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=NONE&r2=1.1.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/time/strptime_l.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.4.4.1&r2=1.4.4.2
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/time/Makefile.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.106&r2=1.106.2.1

Comment 2 Roland McGrath 2005-07-19 03:30:47 UTC
This fix is now in the 2.3 branch as well as the trunk, and the problem should
be resolved as of the 2.3.6 release.