Commit fb6ce335 authored by Matthias Clasen's avatar Matthias Clasen

Fix nl_langinfo() use

parent 23fabedc
2005-06-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1-based. (#163842, Pierre Ossman)
2005-06-17 Kristian Rietveld <kris@gtk.org>
Fix #160281, testcase from Peter Bloomfield.
......
2005-06-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1-based. (#163842, Pierre Ossman)
2005-06-17 Kristian Rietveld <kris@gtk.org>
Fix #160281, testcase from Peter Bloomfield.
......
2005-06-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
1-based. (#163842, Pierre Ossman)
2005-06-17 Kristian Rietveld <kris@gtk.org>
Fix #160281, testcase from Peter Bloomfield.
......
......@@ -652,7 +652,7 @@ gtk_calendar_init (GtkCalendar *calendar)
#ifdef HAVE__NL_TIME_FIRST_WEEKDAY
week_start = nl_langinfo (_NL_TIME_FIRST_WEEKDAY);
priv->week_start = *((unsigned char *) week_start) % 7;
priv->week_start = *((unsigned char *) week_start) % 7 - 1;
#else
/* Translate to calendar:week_start:0 if you want Sunday to be the
* first day of the week to calendar:week_start:1 if you want Monday
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment