Skip to content

Commit

Permalink
* locale/programs/ld-time.c (time_finish): Default for
Browse files Browse the repository at this point in the history
	first_workday is Monday.
  • Loading branch information
Ulrich Drepper committed Oct 7, 2007
1 parent a116071 commit 659a901
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[BZ #181]
* locale/C-time.c: Set week_1stday data to 19971201.
* locale/programs/ld-time.c (time_finish): Default for
first_workday is Monday.

[BZ #2633]
* wcsmbs/wchar.h: Move many C99 functions into std namespace.
Expand Down
4 changes: 2 additions & 2 deletions locale/programs/ld-time.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1995-2005, 2006 Free Software Foundation, Inc.
/* Copyright (C) 1995-2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
Expand Down Expand Up @@ -508,7 +508,7 @@ No definition for %s category found"), "LC_TIME"));

if (time->first_workday == '\0')
/* The definition does not specify this so the default is used. */
time->first_workday = 1;
time->first_workday = 2;
else if (time->first_workday > time->week_ndays)
WITH_CUR_LOCALE (error (0, 0, _("\
%s: values for field `%s' must not be larger than %d"),
Expand Down

0 comments on commit 659a901

Please sign in to comment.