mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
Update.
2001-08-09 Jakub Jelinek <jakub@redhat.com> * catgets/catgets.c (catclose): Be liberal about catalog_desc in catclose too. * time/tst-strptime.c: Add test case for %U and %W handling.
This commit is contained in:
parent
5d9f13dc9b
commit
30d1375135
@ -1,7 +1,13 @@
|
|||||||
|
2001-08-09 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* catgets/catgets.c (catclose): Be liberal about catalog_desc in
|
||||||
|
catclose too.
|
||||||
|
|
||||||
2001-08-09 Ulrich Drepper <drepper@redhat.com>
|
2001-08-09 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* time/strptime.c (strptime_internal): Add handling of year +
|
* time/strptime.c (strptime_internal): Add handling of year +
|
||||||
%U/%W week + week day.
|
%U/%W week + week day.
|
||||||
|
* time/tst-strptime.c: Add test case for %U and %W handling.
|
||||||
|
|
||||||
* stdio-common/vfscanf.c: Fix reading of wide chars and strings if
|
* stdio-common/vfscanf.c: Fix reading of wide chars and strings if
|
||||||
not COMPILE_WSCANF.
|
not COMPILE_WSCANF.
|
||||||
|
@ -114,6 +114,13 @@ catclose (nl_catd catalog_desc)
|
|||||||
{
|
{
|
||||||
__nl_catd catalog;
|
__nl_catd catalog;
|
||||||
|
|
||||||
|
/* Be generous if catalog which failed to be open is used. */
|
||||||
|
if (catalog_desc == (nl_catd) -1)
|
||||||
|
{
|
||||||
|
__set_errno (EBADF);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
catalog = (__nl_catd) catalog_desc;
|
catalog = (__nl_catd) catalog_desc;
|
||||||
|
|
||||||
#ifdef _POSIX_MAPPED_FILES
|
#ifdef _POSIX_MAPPED_FILES
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test for strptime.
|
/* Test for strptime.
|
||||||
Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
@ -35,6 +35,8 @@ static const struct
|
|||||||
{ "03/03/00", "%D", 5, 62 },
|
{ "03/03/00", "%D", 5, 62 },
|
||||||
{ "9/9/99", "%x", 4, 251 },
|
{ "9/9/99", "%x", 4, 251 },
|
||||||
{ "19990502123412", "%Y%m%d%H%M%S", 0, 121 },
|
{ "19990502123412", "%Y%m%d%H%M%S", 0, 121 },
|
||||||
|
{ "2001 20 Mon", "%Y %U %a", 1, 140 },
|
||||||
|
{ "2001 21 Mon", "%Y %W %a", 1, 140 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user