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:
Havoc Pennington 1998-12-15 18:50:53 +00:00 committed by Havoc Pennington
parent 94c6a33ade
commit e02079098f
10 changed files with 64 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -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: