mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 14:00:30 +00:00
localedef: change week_1stweek default to 7
The ISO 14652/30112 specs say the defaults for the week keyword are: 7, 19971130, 7 The localedef has been using those defaults for the first two, but 0 for the last one.
This commit is contained in:
parent
0a410e76f5
commit
d088aa71f1
@ -1,3 +1,8 @@
|
||||
2016-04-23 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
|
||||
when it is the default of 0.
|
||||
|
||||
2016-04-22 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
|
||||
|
||||
* sysdeps/powerpc/locale-defines.sym: Add new macros.
|
||||
|
@ -487,12 +487,16 @@ No definition for %s category found"), "LC_TIME"));
|
||||
}
|
||||
}
|
||||
|
||||
/* Set up defaults based on ISO 30112 WD10 [2014]. */
|
||||
if (time->week_ndays == 0)
|
||||
time->week_ndays = 7;
|
||||
|
||||
if (time->week_1stday == 0)
|
||||
time->week_1stday = 19971130;
|
||||
|
||||
if (time->week_1stweek == 0)
|
||||
time->week_1stweek = 7;
|
||||
|
||||
if (time->week_1stweek > time->week_ndays)
|
||||
WITH_CUR_LOCALE (error (0, 0, _("\
|
||||
%s: third operand for value of field `%s' must not be larger than %d"),
|
||||
|
Loading…
Reference in New Issue
Block a user