Don't try to use PKG_CONFIG when we didn't find it. (#62944, Eric Lemings)
[platform/upstream/glib.git] / ChangeLog.pre-2-2
index afe33f1..fbd12e3 100644 (file)
@@ -1,3 +1,501 @@
+Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
+       when we didn't find it. (#62944, Eric Lemings)
+
+       * m4macros/glib-2.0.m4: Fix problem with spaces around =
+       sign in assignment. (#63209, Arkadiusz Miskiewicz)
+
+Mon Oct 29 10:59:36 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Check for path to Perl, add gobject/glib-mkenums 
+       to AC_OUTPUT. (#63093, Dan Winship)
+
+Mon Oct 29 10:55:12 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/Makefile.am (EXTRA_DIST): Dist
+       ref-add.sin, ref-del.sin. (#63092, Dan Winship)
+
+2001-10-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/gmain.c (g_main_loop_quit): Conditionalize thread related
+       calls. (#63091)
+
+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.
+
+       * NEWS: Updates
+
+2001-10-26  Tor Lillqvist  <tml@iki.fi>
+
+       * configure.in: Don't default to win32 thread implementation on
+       Cygwin. The gthread-win32 implementation really is for Win32 with
+       MS runtime only. Let configure find pthreads when configuring for
+       Cygwin.
+
+       * README.win32: Updates.
+
+       * glib/glib.def: Update.
+
+       * tests/makefile.mingw.in
+       * tests/makefile.msc.in: Remove mainloop-test here, too.  Add ../*
+       to PATH before running tests to find DLLs. Separate the
+       interactive tests, don't run them in the check target.
+
+       * */makefile.msc.in: Include make.msc from GLib's build directory.
+
+Thu Oct 25 12:01:41 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * tests/Makefile.am: Temporarily remove mainloop-test, since it
+       prevents distcheck.
+
+2001-10-24  Alex Larsson  <alexl@redhat.com>
+
+       * docs/reference/glib/glib-sections.txt:
+       Add g_strtod & co.
+
+       * docs/reference/glib/tmpl/string_utils.sgml:
+       Add docs for G_ASCII_DTOSTR_BUF_SIZE.
+
+       * glib/gstrfuncs.[ch]:
+       Added g_ascii_strtod, g_ascii_dtostr and g_ascii_formatd.
+
+       * tests/Makefile.am:
+       * tests/strtod-test.c:
+       Add tests for g_ascii_strtod & co.
+
+2001-10-23  Tor Lillqvist  <tml@iki.fi>
+
+       * config.h.win32.in: Typo: GLIB_MICRO_VERSION and
+       GLIB_MINOR_VERSION were swapped.
+
+       * glib/gutils.h: Remove G_HARDCODED_PATH_WRAPPER, Owen didn't like
+       it.
+       
+       * glib/gutils.c: Instead, expand it on Win32 as
+       _glib_get_locale_dir(), and #define GLIB_LOCALE_DIR as a call to
+       it.
+
+2001-10-23  Tor Lillqvist  <tml@iki.fi>
+
+       * config.h.win32.in: Typo.
+
+       * glibconfig.h.win32.in: Minor update to correspond to what
+       configure now generates.
+
+       * glib/Makefile.am: (Win32): If we have built the MSVC import
+       library, install it. Install the gcc import library. Also support
+       uninstall.
+
+       * glib/gutils.h: Add macros G_WIN32_DLLMAIN_FOR_DLL_NAME and
+       G_HARDCODED_PATH_WRAPPER. These are used to avoid hardcoding path
+       names into Windows DLLs.
+
+       * glib/gutils.c: Use them for GLIB_LOCALE_DIR.
+
+       * glib/gwin32.c (get_package_directory_from_module): Plug a small
+       memory leak. Minor code reordering.
+       (g_win32_get_package_installation_subdirectory):  Allow empty subdir.
+
+2001-10-19  Tor Lillqvist  <tml@iki.fi>
+
+       * configure.in: Fix test for lib.exe. Can't set ms_librarian
+       before calling AC_CHECK_PROG, as it doesn't actually check
+       anything if the result variable has been preset...
+
+2001-10-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/gutils.c (g_set_prgname, g_get_prgname): Use another LOCK
+       for g_prgname to avoid deadlocking. (#62606)
+
+2001-10-19  Tor Lillqvist  <tml@iki.fi>
+
+       * configure.in: Check also ac_cv_sizeof___int64 when requiring a
+       64-bit type.
+
+2001-10-17  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (g_iconv_open):
+       Fix a typo: to_codeset => from_codeset.
+       (#58195, #55152)
+
+Fri Oct 12 18:24:02 2001  Tim Janik  <timj@gtk.org>
+
+       * glib/gpattern.[hc]: make struct _GPatternSpec and GMatchType
+       private.
+       (g_pattern_equal): new function to return equality of two patterns
+       (required because GPatternSpec is private now).
+       (g_pattern_spec_new): fix bug wrg wildcard counting which produced
+       incorrect pattern specs (discovered by Matthias Clasen).
+       optimized code so we just keep one compiled pattern string now.
+       correctly canonicalize patterns. reduce string walks, optimize
+       decision about MATCH_ALL vs. MATCH_ALL_TAIL.
+       (g_pattern_match_string): call just g_pattern_match() with NULL
+       reversed string.
+       (g_pattern_match): allow NULL reversed strings now, reverse_dup
+       strings on demand.
+
+       * tests/patterntest.c (test_compilation): added an extended testcase
+       for pattern matching from Matthias Clasen <matthiasc@poet.de>.
+
+2001-10-11  Raja R Harinath  <harinath@cs.umn.edu>
+
+       * configure.in (ac_cv_sizeof_long_long): Avoid '==' and '-a' in
+       'test's.
+
+Wed Oct 10 20:07:36 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * glib/gmessages.c glib/gtypes.h: Remove G_HAVE_GINT64
+       conditionalization.
+
+Wed Oct 10 17:34:15 2001  Joshua N Pritikin  <vishnu@pobox.com>
+
+       * configure.in: Un-conditionalize and require a 64-bit integer
+       type.
+
+2001-10-04  Raja R Harinath  <harinath@cs.umn.edu>
+
+       * configure.in: Avoid 'test -a'.
+
+2001-10-05  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gwin32.c: Documentation update.
+
+2001-10-04  Havoc Pennington  <hp@redhat.com>
+
+       * glib/libcharset/Makefile.am (EXTRA_DIST): add config.charset
+
+2001-10-03  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gutils.c (Win32) (DllMain): New function (DLL entry point)
+       to tuck away actual DLL name.
+       (GLIB_LOCALE_DIR) Use actual DLL name, instead of assuming one
+       naming convention for DLLs.
+
+       * glib/glib.def: g_string_append_printf.
+
+2001-10-02  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gstrfuncs.c, glib/giochannel.c: documentation update.
+
+       * glib/gqueue.c: add documentation.
+
+2001-10-02  Sven Neumann  <sven@gimp.org>
+
+       * glib/gstring.h (g_string_sprintfa): let the compatibility definition
+       point to the new name g_string_append_printf().
+
+2001-10-01  Alex Larsson  <alexl@redhat.com>
+
+       * glib/gconvert.[ch]:
+       Convert G_CONVERT_ERROR_NOT_ABSOLUTE_FILE_URI and
+       G_CONVERT_ERROR_INVALID_URI to G_CONVERT_ERROR_BAD_URI.
+
+       * tests/uri-test.c:
+       Update tests
+
+Mon Oct  1 16:01:24 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstring.[ch] glib/grel.c: Rename g_string_printfa()
+       to g_string_append_printf(). (#61041, Havoc Pennington.)
+
+2001-10-01  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c: Documentation cleanups. (#61487)
+
+2001-10-01  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gscanner.h (GScannerMsgFunc): make third argument
+       a gboolean.
+       (g_scanner_add_symbol, g_scanner_remove_symbol, 
+       g_scanner_foreach_symbol): mark these 
+       G_DISABLE_DEPRECATED. (#61469)
+
+       * glib/gscanner.c (g_scanner_msg_handler): make third 
+       argument gboolean. (#61468)
+
+2001-10-01  Sven Neumann  <sven@gimp.org>
+
+       * glib/gconvert.c
+       * glib/gspawn-win32.c
+       * glib/gspawn.c: some minor documentation fixes.
+
+2001-09-29  Alexander Larsson  <alla@lysator.liu.se>
+
+       * configure.in:
+       Add build/win32/dirent/Makefile to the list of makefiles
+
+2001-09-30  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gwin32.c
+       * glib/gwin32.h
+       * glib/glib.def: Remove own implementation of dirent
+       functions. Instead, gcc (mingw) users should go ahead and use the
+       <dirent.h> included with the mingw gcc, and the dirent functions
+       included in libmingw32, while MSVC users can use the same (public
+       domain) code, extracted from mingw-runtime sources and placed in
+       build/win32/dirent.[ch].
+
+       * glib/gwin32.c (get_package_directory_from_module,
+       g_win32_get_package_installation_directory): Use static lock to
+       protect static hash table.
+
+Sat Sep 29 02:33:14 2001  George Lebl <jirka@5z.com>
+
+       * tests/testglib.c (main): cast the string size to gulong and use %lu
+         for printing to avoid 64bit issues
+
+       * glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument 
+         to gsize instead guint.
+
+Fri Sep 28 19:41:32 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/libcharset/* configure.in: Fix macros from libcharset
+       to work with autoconf-2.5x. (From Laszlo Peter.)
+
+2001-09-27  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
+
+2001-09-29  Abel Cheung  <maddog@linux.org.hk>
+
+       * configure.in: Add quotes around test values. This fixes a minor
+         annoying warning if platform is not win32.
+
+2001-09-27  Manish Singh  <yosh@gimp.org>
+
+       * glib/grand.c (g_rand_new): fix typo (#if->#ifdef) so it compiles
+       again.
+
+2001-09-24  Bruno Haible  <haible@clisp.cons.org>
+
+       * glib/gwin32.c (g_win32_getlocale): When the sublangid is
+       SUBLANG_DEFAULT, return the locale of the language's main country,
+       not a country-neutral locale. E.g. "en_US" instead of "en". Add
+       handling of LANG_SORBIAN. Fix typo for SUBLANG_CHINESE_SIMPLIFIED
+       (China == CN, CH == Switzerland). Ignore empty environment
+       variable values.
+
+2001-09-28  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/makefile.{mingw,msc}.in: Add localcharset.o. Just copy the
+       source file from libcharset and compile in this directory.
+
+       * glib/giochannel.c: Mark rest of g_set_error strings for
+       translation, too.
+
+       * glib/giowin32.c: Add some debugging output functions, call them
+       when debugging.
+       (create_events, g_io_win32_msg_write): Free message fetched with
+       g_win32_error_message ().
+       (g_io_win32_check): Indentation fixes.
+       (g_io_win32_fd_read,g_io_win32_sock_read): Don't always return
+       G_IO_STATUS_NORMAL. Do return G_IO_STATUS_EOF if we got 0 bytes,
+       like on Unix. This helps making the test programs run
+       successfully.
+
+       * glib/gmain.c (g_poll): Return the code ifdeffed out with
+       TEST_WITHOUT_THIS. Can't remember why it was ifdeffed out. Things
+       seem to work as previously with the code in place. Especially
+       spawn-test didn't work with the code ifdeffed out (Bug#61067).
+
+       * glib/grand.c (g_rand_new): Don't try to use /dev/urandom unless
+       on Unix.
+
+       * glib/gspawn-win32-helper.c (WinMain): Remove Sleep(10000)
+       accidentally left in.
+
+Thu Sep 27 14:26:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_ascii_strup/down): Use gssize to
+       match the header. (Reported by Elliot Lee.)
+
+Wed Sep 26 22:34:12 2001  Owen Taylor  <otaylor@redhat.com>
+
+       Fixes for #58195, based on some ideas from Hidetosh Tajima.
+
+       * aclibcharset.m4 glib/libcharset: Add Bruno Haible's
+       portable-current charset detection code from libiconv.
+
+       * glib/gutf8.c (g_utf8_get_charset_internal): Rewrite
+       to use _g_locale_charset().
+
+       * glib/gutf8.c (_g_charset_get_aliases): Private functions
+       to get aliases from libcharset for a particular canonical
+       name.
+
+       * glib/gconvert.c: If loading a charset fails, try 
+       aliases to look for fallbacks.
+       
+2001-09-26  Matthias Clasen  <matthiasc@poet.de>
+
+       * gmem.c (g_mem_is_system_malloc): Return !vtable_set.
+
+2001-09-26  Tor Lillqvist  <tml@iki.fi>
+
+       * configure.in: Retract my change earlier today. Don't preset
+       autoconf variables in a try to match both mingw and MSVC. Instead,
+       he who packages a prebuilt GLib developer distribution for Win32
+       runs configure twice: once for mingw, once for MSVC, and then uses
+       diff -D on the glibconfig.h files to generate a suitably ifdeffed
+       glibconfig.h for distribution that suits both compilers. (Ditto
+       for config.h, although that file wouldn't be distributed in a
+       developer package, but in a source package for Win32 users who
+       want to build GLib but can't use configure.)
+
+       * glibconfig.h.win32.in
+       * config.h.win32.in: Generated by using diff -D as described above.
+
+       * tests/makefile.mingw.in (.c.exe): Correct name of gthread (import)
+       library.
+
+Wed Sep 26 15:33:37 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * Makefile.am po/Makefile.in.in: Fix distclean to 
+       remove some extra files. #60993, Ben Gertzfield
+
+Wed Sep 26 14:37:52 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gen-unicode-tables.pl glib/guniprop.c 
+         glib/{gunibreak,gunichartables,gunidecomp}.h:
+       Patch from Andrew Taylor to make much of the unicode
+       table data const so that it can be made read-only
+       and shared.
+
+Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strdup_vprintf): Copy if 
+       !g_mem_is_system_malloc, not the other way around.
+       (Found by James Antill.)
+
+Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gstrfuncs.c (g_strnfill): Use memset; might be 
+       faster if someone used this for a biiig string.
+       (Suggestion from Jakub Jelinek)
+
+2001-09-26  Tor Lillqvist  <tml@iki.fi>
+
+       * configure.in: (Win32:) Move the Win32 check closer to the start,
+       after the BeOS checks. Preset some autoconf variables so that
+       configure won't find those few headers and functions that gcc
+       (mingw) pretends to implement (even if the actual C library
+       doesn't), but MSVC doesn't. This because I want the same config.h
+       and glibconfig.h to be usable both from gcc and MSVC (as they use
+       the same C library). Some other minor hackery for this purpose.
+
+       * glibconfig.h.win32.in
+       * config.h.win32.in: Use versions generated by configure (and
+       hand-edited slightly).
+
+2001-09-25  Darin Adler  <darin@bentspoon.com>
+
+       * glib/gtree.h: Use gboolean for return value of GTraverseFunc.
+
+Tue Sep 25 11:34:22 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in: Version 1.3.9 (binary, interface == 0)
+
+       * glib/gstrfuncs.c (g_ascii_strdown): Change g_ascii_strup/strdown
+       to take a 'len' argument to match g_utf8_strup/strdown. This
+       hopefully will also make it more obvious that they duplicate
+       the string rather than acting like g_strup/strdown.
+       (Suggestion from Matthias Clasen, #59550)
+
+2001-09-25  Tor Lillqvist  <tml@iki.fi>
+
+       * configure.in: More Win32 automake macros. For .def files:
+       GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
+       files: TESTGMODULE_EXP (for programs that need to export symbols,
+       just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
+       test whether the Microsoft librarian ("ar") is available to build
+       MS import libraries.
+       * glib/Makefile.am
+       * gmodule/Makefile.am: Use above. New rule to build MS import
+       library.
+
+       * glib/makefile.msc.in
+       * tests/makefile.msc.in
+       * tests/makefile.mingw.in: Use same DLL and import library names as
+       libtool.
+
+2001-09-24  Matthias Clasen  <matthiasc@poet.de>
+
+       * glib/gutf8.c, glib/gunibreak.c, glib/gunicollate.c,
+       glib/gunidecomp.c, glib/guniprop.c: Inline doc consistency fixes.
+
+2001-09-24  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
+
+       * configure.in: Added "sk" to ALL_LINGUAS.
+
+2001-09-22  Hans Breuer  <hans@breuer.org>
+
+       * glib/giowin32.c : simply setting is_readable and is_writeable
+       to TRUE does make Gimp plug-ins work again. Still no API known
+       to request this info on Win32 (see #57690)
+
+2001-09-21  Hans Breuer  <hans@breuer.org>
+
+       * makefile.msc : added rule for glibconfig.h
+
+       * glib/giowin32.c (g_io_channel_new_file) : always open
+       in binary mode (fix for #57695)
+
+       * glib/glib.def : updated externals
+
+       * glib/gwin32.c : re-added LANG_* and SUBLANG_* definitions,
+       which are missing from the msvc 5.0 win32 sdk
+
+       * glib/makefile.msc.in : added gbsearcharry
+
+Thu Sep 20 20:33:45 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * Rename g_mem_vtable_is_set() to g_mem_is_system_malloc().
+
+2001-09-20  Tor Lillqvist  <tml@iki.fi>
+
+       * glib/gutils.c (g_path_is_absolute): (Win32:) Accept also forward
+       slashes. (But still don't accept them in the other functions
+       here. This is a thorny issue. Windows in fact does treat / like \
+       on input (at least as local directory separators, dunno about
+       server/share separators). But GLib only has the one
+       G_DIR_SEPARATOR value, that apps should scan for, and use when
+       building pathnames. To properly fix this would require totally
+       abstracting pathnames, and don't having any path name scanning and
+       building in applications at all. Fat chance.)
+       (GLIB_LOCALE_DIR): Redefine only on "pure" Win32, not Cygwin. Use
+       subdirectory "share\locale", as on Unix.
+
+       * glib/gwin32.c: Don't need to define those langiage and
+       sublanguage constants here, current mingw (w32api) headers have
+       them.
+
+       * glib/glib.def: Add a few missing entry points.
+
+       * tests/testglib.c (main): Use same name for DLL as libtool does.
+       Use G_DIR_SEPARATOR in g_path_get_basename tests.
+
+Wed Sep 19 16:35:22 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmain.c (g_main_context_find_source_by[_funcs]_user_data): 
+       Fix handling of user data when locating sources. 
+       (#60414, Katsuhiro Okuno)
+
 Wed Sep 19 14:17:31 2001  Owen Taylor  <otaylor@redhat.com>
 
        Patch from Matthias Clasen (#59806)
@@ -17,7 +515,7 @@ Wed Sep 19 14:17:31 2001  Owen Taylor  <otaylor@redhat.com>
        * glib/gmessages.c (printf_string_upper_bound): Don't
        segfault when warning about positional parameters.
 
-Wed Sep 19 14:05:27 2001  Owen Taylor  <otaylor@redhat.com>
+Wzed Sep 19 14:05:27 2001  Owen Taylor  <otaylor@redhat.com>
 
        * glib/{gcache.c,gmem.c,grel.c,gstring.c,gtimer.c,gtree}:
        Patch from Darin Adler to remove GReal* structures in
@@ -1731,12 +2229,12 @@ Mon Mar 26 13:34:50 2001  Owen Taylor  <otaylor@redhat.com>
 
        [ Patch from DindinX  <David.Odin@bigfoot.com>, added docs ]
  
-       * gstrfuncs.c, gstrfuncs.h: Add g_stpcpy () for platform that don't
-       have stpcpy ().
-       * gstrfuncs.c (g_strjoin, g_strjoinv and g_strconcat): use
-       g_stpcpy () so these functions run much faster.
-       * config.h.win32.in, glib.def: add reference to g_stpcpy ()
-       * configure.in: Add a test for the stpcpy () function.
+       * gstrfuncs.c, gstrfuncs.h: Add g_stpcpy () for platform that
+       don't have stpcpy ().
+       * gstrfuncs.c (g_strjoin, g_strjoinv, g_strconcat): 
+       use g_stpcpy () so these functions run much faster.
+       * config.h.win32.in, glib.def: add reference to g_stpcpy ()
+       * configure.in: Add a test for the stpcpy () function.
  
 2001-03-20  Havoc Pennington  <hp@redhat.com>