Add missing g_pattern_match_simple and g_pattern_spec_equal.
authorTor Lillqvist <tml@iki.fi>
Sun, 28 Oct 2001 21:05:03 +0000 (21:05 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 28 Oct 2001 21:05:03 +0000 (21:05 +0000)
2001-10-28  Tor Lillqvist  <tml@iki.fi>

* glib/glib.def: Add missing g_pattern_match_simple and
g_pattern_spec_equal.

* glib/gwin32.c (g_win32_get_package_installation_subdirectory):
Set separator correctly.

* glib/libcharset/config.charset (os): Match also mingw*.

* tests/testglib.c (main): (Win32): Print the lib/locale
subdirectory, as that is what actually gets used.

12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/glib.def
glib/gwin32.c
glib/libcharset/config.charset
tests/testglib.c

index 0d6f0fe..698d7c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 0d6f0fe..698d7c2 100644 (file)
@@ -1,3 +1,16 @@
+2001-10-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/glib.def: Add missing g_pattern_match_simple and
+       g_pattern_spec_equal.
+
+       * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
+       Set separator correctly.
+
+       * glib/libcharset/config.charset (os): Match also mingw*.
+
+       * tests/testglib.c (main): (Win32): Print the lib/locale
+       subdirectory, as that is what actually gets used.
+
 Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
 
        * configure.in: Version 1.3.10, interface age, binary age = 0.
index 28b0bad..cb98b41 100644 (file)
@@ -369,7 +369,9 @@ EXPORTS
        g_path_is_absolute
        g_path_skip_root
        g_pattern_match
+       g_pattern_match_simple
        g_pattern_match_string
+       g_pattern_spec_equal
        g_pattern_spec_free
        g_pattern_spec_new
        g_print
index 6c8c3f0..e023fe7 100644 (file)
@@ -771,8 +771,12 @@ g_win32_get_package_installation_subdirectory (gchar *package,
 
   prefix = g_win32_get_package_installation_directory (package, dll_name);
 
-  sep = ((subdir != NULL && strlen (subdir) > 0) || prefix[strlen (prefix) - 1] == G_DIR_SEPARATOR ?
-        "" : G_DIR_SEPARATOR_S);
+  if (subdir == NULL)
+    subdir = "";
+
+  sep = (subdir[0] == '\0' ||
+        prefix[strlen (prefix) - 1] == G_DIR_SEPARATOR) ?
+    "" : G_DIR_SEPARATOR_S;
 
   return g_strconcat (prefix, sep, subdir, NULL);
 }
index f4f2611..0b1f2db 100755 (executable)
@@ -274,7 +274,7 @@ case "$os" in
        # BeOS has a single locale, and it has UTF-8 encoding.
        echo "* UTF-8"
        ;;
-    msdosdjgpp*)
+    msdosdjgpp*|mingw*)
        # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore
        # localcharset.c falls back to using the full locale name
        # from the environment variables.
index 865225e..c447834 100644 (file)
@@ -1187,7 +1187,7 @@ main (int   argc,
   g_print ("Ditto, only from GLib DLL name: %s\n",
           g_win32_get_package_installation_directory (NULL, glib_dll));
   g_print ("locale subdirectory of GLib installation directory: %s\n",
-          g_win32_get_package_installation_subdirectory (NULL, glib_dll, "share\\locale"));
+          g_win32_get_package_installation_subdirectory (NULL, glib_dll, "lib\\locale"));
   g_print ("GTK+ 2.0 installation directory, if available: %s\n",
           g_win32_get_package_installation_directory ("gtk20", NULL));