mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Solaris has a broken strftime that produced garbage output for the test
1998-12-15 Havoc Pennington <hp@pobox.com> * gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime that produced garbage output for the test date I was using to set up the parser. So use a different date that Solaris seems to like.
This commit is contained in:
parent
94c6a33ade
commit
e02079098f
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
@ -1,3 +1,10 @@
|
||||
1998-12-15 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gdate.c (g_date_prepare_to_parse): Solaris has a broken strftime
|
||||
that produced garbage output for the test date I was using to
|
||||
set up the parser. So use a different date that Solaris seems
|
||||
to like.
|
||||
|
||||
1998-12-15 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* configure.in: Dont complain, if --without-threads or
|
||||
|
6
gdate.c
6
gdate.c
@ -566,7 +566,9 @@ g_date_prepare_to_parse (const gchar *str, GDateParseTokens *pt)
|
||||
|
||||
/* Determine DMY order */
|
||||
|
||||
g_date_set_dmy (&d, 4, 7, 1776); /* had to pick a random day */
|
||||
/* had to pick a random day - don't change this, some strftimes
|
||||
* are broken on some days, and this one is good so far. */
|
||||
g_date_set_dmy (&d, 4, 7, 1976);
|
||||
|
||||
g_date_strftime (buf, 127, "%x", &d);
|
||||
|
||||
@ -585,7 +587,7 @@ g_date_prepare_to_parse (const gchar *str, GDateParseTokens *pt)
|
||||
break;
|
||||
case 76:
|
||||
using_twodigit_years = TRUE; /* FALL THRU */
|
||||
case 1776:
|
||||
case 1976:
|
||||
dmy_order[i] = G_DATE_YEAR;
|
||||
break;
|
||||
default:
|
||||
|
@ -566,7 +566,9 @@ g_date_prepare_to_parse (const gchar *str, GDateParseTokens *pt)
|
||||
|
||||
/* Determine DMY order */
|
||||
|
||||
g_date_set_dmy (&d, 4, 7, 1776); /* had to pick a random day */
|
||||
/* had to pick a random day - don't change this, some strftimes
|
||||
* are broken on some days, and this one is good so far. */
|
||||
g_date_set_dmy (&d, 4, 7, 1976);
|
||||
|
||||
g_date_strftime (buf, 127, "%x", &d);
|
||||
|
||||
@ -585,7 +587,7 @@ g_date_prepare_to_parse (const gchar *str, GDateParseTokens *pt)
|
||||
break;
|
||||
case 76:
|
||||
using_twodigit_years = TRUE; /* FALL THRU */
|
||||
case 1776:
|
||||
case 1976:
|
||||
dmy_order[i] = G_DATE_YEAR;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user