From f6e325b2175759ade3d068c51b611fba77960735 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 14 Mar 2001 20:18:03 +0000 Subject: [PATCH] From Edward M. Lee : 2001-03-13 Tor Lillqvist From Edward M. Lee : * gdate.c (g_date_set_parse): add support for dates that in the form "Wed Mar 14 2001". Running testgdate on cygwin requires this. 2001-03-13 Tor Lillqvist From Edward M. Lee : * gmodule-win32.c (_g_module_build_path): use (cygwin friendly) dir separator. --- ChangeLog | 7 +++++++ ChangeLog.pre-2-0 | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-12 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ gdate.c | 7 +++++++ glib/gdate.c | 7 +++++++ gmodule/ChangeLog | 7 +++++++ gmodule/gmodule-win32.c | 4 ++-- 12 files changed, 79 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f9843d..521c6d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9f9843d..521c6d3 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gdate.c (g_date_set_parse): add support for dates that in the + form "Wed Mar 14 2001". Running testgdate on cygwin requires this. + Fri Mar 9 18:01:43 2001 Tim Janik * gscanner.[hc]: made config arg to g_scanner_new() const. diff --git a/gdate.c b/gdate.c index 708c470..c3018ec 100644 --- a/gdate.c +++ b/gdate.c @@ -749,6 +749,13 @@ g_date_set_parse (GDate *d, if (using_twodigit_years && y < 100) y = G_DATE_BAD_YEAR; /* avoids ambiguity */ } + else if (pt.num_ints == 2) + { + if (m == G_DATE_BAD_MONTH && pt.month != G_DATE_BAD_MONTH) + { + m = pt.month; + } + } } else if (pt.num_ints == 1) { diff --git a/glib/gdate.c b/glib/gdate.c index 708c470..c3018ec 100644 --- a/glib/gdate.c +++ b/glib/gdate.c @@ -749,6 +749,13 @@ g_date_set_parse (GDate *d, if (using_twodigit_years && y < 100) y = G_DATE_BAD_YEAR; /* avoids ambiguity */ } + else if (pt.num_ints == 2) + { + if (m == G_DATE_BAD_MONTH && pt.month != G_DATE_BAD_MONTH) + { + m = pt.month; + } + } } else if (pt.num_ints == 1) { diff --git a/gmodule/ChangeLog b/gmodule/ChangeLog index a3d05d7..c7d2448 100644 --- a/gmodule/ChangeLog +++ b/gmodule/ChangeLog @@ -1,3 +1,10 @@ +2001-03-13 Tor Lillqvist + + From Edward M. Lee : + + * gmodule-win32.c (_g_module_build_path): use (cygwin friendly) dir + separator. + 2001-03-12 Tor Lillqvist * Makefile.am (libgplugin_a_la_LIBADD, libgplugin_b_la_LIBADD): diff --git a/gmodule/gmodule-win32.c b/gmodule/gmodule-win32.c index 0f5aca7..c665329 100644 --- a/gmodule/gmodule-win32.c +++ b/gmodule/gmodule-win32.c @@ -253,9 +253,9 @@ _g_module_build_path (const gchar *directory, k = strlen (module_name); if (directory && *directory) if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0) - return g_strconcat (directory, "\\", module_name, NULL); + return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, NULL); else - return g_strconcat (directory, "\\", module_name, ".dll", NULL); + return g_strconcat (directory, G_DIR_SEPARATOR_S, module_name, ".dll", NULL); else if (k > 4 && g_strcasecmp (module_name + k - 4, ".dll") == 0) return g_strdup (module_name); else -- 2.7.4