2449 Commits

Author SHA1 Message Date
Matthias Clasen
bc3463f011 Fix bug 161288:
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        Fix bug 161288:

        * configure.in: Check for wcslen.

        * glib/gnulib/vasnprintf.c: Handle wcslen missing.
2006-12-18 14:37:05 +00:00
Matthias Clasen
a043967f21 Fix handling of '@' in locale names 2006-12-18 14:09:09 +00:00
Matthias Clasen
9abf964b73 Tighten up the check for allowed key and group names. (#343191, Tommi
2006-12-18  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c: Tighten up the check for allowed
        key and group names.  (#343191, Tommi Komulainen)

        * tests/keyfile-test.c: Test handling of key and group names.
2006-12-18 07:28:03 +00:00
Matthias Clasen
071c5ef107 Don't use $RANDOM if the shell doesn't have it. (#346373, Thomas Klausner)
* tests/Makefile.am: Don't use $RANDOM if the shell doesn't
        have it.  (#346373, Thomas Klausner)
2006-12-18 05:04:40 +00:00
Matthias Clasen
966eeefa22 Put the G_GNUC_INTERNAL where gcc doesn't complain about it.
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gconvert.c:
        * glib/gutf8.c (_g_charset_get_aliases): Put the G_GNUC_INTERNAL
        where gcc doesn't complain about it.

        * glib/ghash.c: Make ref_count an int to avoid compiler
        warnings.
2006-12-18 04:20:40 +00:00
Matthias Clasen
cba7bcc9cd Use AC_LANG_SOURCE for the clock test.
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use AC_LANG_SOURCE for the clock test.
2006-12-18 01:13:47 +00:00
Matthias Clasen
815367a003 Don't use "wait" as parameter name. (#379207, Christian Biere)
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * glib/gthreadpool.h:
        * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
        as parameter name.  (#379207, Christian Biere)
2006-12-17 20:32:38 +00:00
Matthias Clasen
7d48f998a1 Make montonic clock test work again. Does AC_COMPILE_IFELSE not get
2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Make montonic clock test work again. Does
        AC_COMPILE_IFELSE not get confdefs ?
2006-12-17 18:36:47 +00:00
Matthias Clasen
c5c9a021f1 Don't use diff -u (#380801, Marek Rouchal)
* tests/run-markup-tests.sh: Don't use diff -u  (#380801,
        Marek Rouchal)
2006-12-17 17:59:01 +00:00
Matthias Clasen
3e0d721958 Fix the recent fdwalk()-related changes to not break mapping-test.
* glib/gspawn.c: Fix the recent fdwalk()-related changes
        to not break mapping-test.  (#286838, Marco Barisione)
2006-12-17 17:44:13 +00:00
Matthias Clasen
505287cbae Use AC_COMPILE_IFELSE for the monotonic clock test. (#362918, Han-Wen
2006-12-16  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Use AC_COMPILE_IFELSE for the monotonic
        clock test.  (#362918, Han-Wen Nienhuys, Jeremy Lainé)
2006-12-16 22:10:24 +00:00
Matthias Clasen
d9b8ae15fe Make ref_count a gint to avoid compiler warnings. (#321977, Andrew
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/giochannel.h: Make ref_count a gint to avoid
        compiler warnings.  (#321977, Andrew Paprocki)
2006-12-16 04:03:26 +00:00
Matthias Clasen
6dd6f7ed11 On Solaris, set CFLAGS and LDFLAGS that work both with Sun cc and gcc.
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: On Solaris, set CFLAGS and LDFLAGS that
        work both with Sun cc and gcc.  (#315061, Lazlo Peter)
2006-12-16 03:50:32 +00:00
Matthias Clasen
efffa75627 Undefine READ_OK to fix the build on old versions of Darwin. (#327800)
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c: Undefine READ_OK to fix the build on
        old versions of Darwin.  (#327800)
2006-12-16 03:42:52 +00:00
Matthias Clasen
03f97926ba Avoid a compiler warning.
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/guniprop.c (interval_compare): Avoid a compiler
        warning.
2006-12-15 22:12:08 +00:00
Matthias Clasen
7cebef5aaa Call set_cloexec() with the right parameters. (#386252, Guillaume
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c (do_exec): Call set_cloexec() with
        the right parameters.  (#386252, Guillaume Desmottes)
2006-12-15 18:26:54 +00:00
Matthias Clasen
b0ec624ad8 Fix #357585, Padraig O'Briain.
2006-12-15  Matthias Clasen  <mclasen@redhat.com>

	Fix #357585, Padraig O'Briain.

	* configure.in: Check for fdwalk.

	* glib/gspawn.c (do_exec): Use fdwalk() to close all
	file descriptors.

	* glib/gspawn.c (fdwalk): Fallback implementation of
	fdwalk.
2006-12-15 05:36:14 +00:00
Matthias Clasen
2fdb41e502 Don't use alloca and avoid allocating memory for small keys that are
2006-12-14  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c (open_converter): Don't use alloca
	and avoid allocating memory for small keys that are
	already cached.  (#172406, Morten Welinder)
2006-12-15 04:36:11 +00:00
Matthias Clasen
c8c0251460 If the group is already there, make it current. (#385910, Joe Halliwell)
2006-12-14  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_add_group): If the group
        is already there, make it current.  (#385910, Joe Halliwell)

        * tests/keyfile-test.c: Add a test for duplicate groups/keys.

2
2006-12-14 23:14:07 +00:00
Matthias Clasen
03b00aa81e Require AC_CANONICAL_HOST in GLIB_WITH_NLS. (#385132, Laszlo Peter)
2006-12-13  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
        GLIB_WITH_NLS.  (#385132, Laszlo Peter)
2006-12-13 20:06:55 +00:00
Matthias Clasen
a888d8204b Use poll emulation on OS X 2006-12-12 20:04:03 +00:00
Matthias Clasen
af5e0a38b3 Don't use local numeric labels in inline assembler on AIX. (#316434, Hans
2006-12-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gatomic.c: Don't use local numeric labels in
        inline assembler on AIX.  (#316434, Hans Rosenfeld)
2006-12-11 14:22:07 +00:00
Matthias Clasen
b081948f1e Cast to const char *, not char *. (#138153, Nikolai Weibull)
2006-12-11  Matthias Clasen  <mclasen@redhat.com>

        * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
        not char *.  (#138153, Nikolai Weibull)
2006-12-11 14:18:32 +00:00
Matthias Clasen
5a5bd5dff5 Apply a patch from James Henstridge for compatibility with automake 2.60
2006-11-15  Matthias Clasen  <mclasen@redhat.com>

        * m4macros/glib-gettext.m4: Apply a patch from James
        Henstridge for compatibility with automake 2.60 (#343825)
2006-11-15 19:28:12 +00:00
Behdad Esfahbod
48eba5770c Replace bash-specific == with sh-understood =. Fixes bug #373864.
2006-11-14  Behdad Esfahbod  <behdad@gnome.org>

        * sanity_check: Replace bash-specific == with sh-understood =.
        Fixes bug #373864.
2006-11-14 18:24:18 +00:00
Behdad Esfahbod
48529df59d Add $(GLIB_DEBUG_FLAGS). (#362543, Peter Kjellerstedt)
2006-10-16  Behdad Esfahbod  <behdad@gnome.org>

        * glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS).  (#362543,
        Peter Kjellerstedt)
2006-10-16 12:53:15 +00:00
Sebastian Wilhelmi
9e06eba5cf Compile errorcheck-mutex-test with thread libraries explicitly. (#74748,
2006-10-15  Sebastian Wilhelmi  <seppi@seppi.de>

        * tests/Makefile.am: Compile errorcheck-mutex-test with thread
        libraries explicitly. (#74748, Javier Villavicencio)
2006-10-15 12:18:26 +00:00
Matthias Clasen
72ed6175c1 Small portability fix 2006-10-08 19:57:26 +00:00
Tor Lillqvist
e28487de30 g_strdup the keys that we are passed before adding them to the hash
2006-10-07  Tor Lillqvist  <tml@novell.com>

	* glib/gwin32.c (get_package_directory_from_module)
	(g_win32_get_package_installation_directory): g_strdup the keys
	that we are passed before adding them to the hash tables, to guard
	against the caller freeing them. (#355955, Andreas Köhler)
2006-10-07 19:25:36 +00:00
Matthias Clasen
eb1b1c65ef Fix a typo 2006-10-06 18:44:33 +00:00
Matthias Clasen
cbb3cf61e7 Bump version 2006-10-01 23:30:00 +00:00
Matthias Clasen
906224c072 2.12.4 2006-10-01 23:22:36 +00:00
Matthias Clasen
46cfcadc9e Updates 2006-10-01 06:30:08 +00:00
Matthias Clasen
62d8d0b825 Use nsleep to implement g_usleep on AIX. (#321974, Andrew Paprocki)
2006-10-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gtimer.c (g_usleep): Use nsleep to implement
	g_usleep on AIX.  (#321974, Andrew Paprocki)

	* configure.in: Check for nsleep
2006-10-01 05:51:15 +00:00
Matthias Clasen
1b3e6f8427 Fix typos in doc comments. (#358421, Tom Tromey)
2006-10-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c: Fix typos in doc comments.
	(#358421, Tom Tromey)
2006-10-01 05:34:06 +00:00
Matthias Clasen
b3699e884a A script to check PLT entries. Run pltcheck.sh
2006-09-30  Matthias Clasen  <mclasen@redhat.com>

        * glib/pltcheck.sh: A script to check PLT entries.
        * glib/Makefile.am (TESTS): Run pltcheck.sh

        * glib/*: Fix includes to correct some issues with
        PLT entries.  (#354522, Behdad Esfahbod)
2006-09-30 14:21:39 +00:00
Matthias Clasen
fe0cd5279d Initialize save_errno. (#355206, Mike Edenfield)
2006-09-10  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstdio.c (g_rename): Initialize save_errno.
	(#355206, Mike Edenfield)
2006-09-10 05:11:27 +00:00
Abel Cheung
efe9e4590d Added 'dz' 'hy' to ALL_LINGUAS.
2006-09-01  Abel Cheung  <abel@oaka.org>

	* configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
2006-09-01 17:40:29 +00:00
Matthias Clasen
663d133e1d fix clock_gettime checks 2006-09-01 06:11:09 +00:00
Matthias Clasen
ac9c8f76a7 Add missing includes to a few test programs. (#353580, Chris Wilson)
2006-08-31  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Add missing includes to a few test
	programs.  (#353580, Chris Wilson)
2006-08-31 18:30:58 +00:00
Matthias Clasen
4843c4b7be Don't call va_end on caller-provided va_args. (#353584, Chris Wilson)
2006-08-30  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
	va_end on caller-provided va_args.  (#353584, Chris Wilson)
2006-08-30 19:06:04 +00:00
Matthias Clasen
3f45b847da Bump version 2006-08-30 06:24:57 +00:00
Matthias Clasen
651e341a88 2.12.3 2006-08-30 06:19:44 +00:00
Matthias Clasen
1a1733c18f Updates 2006-08-30 05:38:19 +00:00
Matthias Clasen
ea9d8beabb fix pthread compiler flag detection 2006-08-28 03:52:47 +00:00
Matthias Clasen
e4fad94613 Check for clock_gettime. Use Posix monotonic clocks instead of
2006-08-27  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Check for clock_gettime.
	* glib/gtimer.c: Use Posix monotonic clocks instead of
	gettimeofday when available.  (#336114, William Jon McCann)
2006-08-28 03:05:42 +00:00
Matthias Clasen
3432c6d0b3 Fix the pthread compiler flag detection.
2006-08-25  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Fix the pthread compiler flag detection.

	* glib/gunicode.h:
	* glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8
	from gconvert.c, move it to gutf8.c, and export it privately.

	* glib/gconvert.c (g_filename_display_name): Adjust callers.

	* glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of
	places to ensure error messages are valid UTF-8.  (#351853,
	Simon Budig)
2006-08-26 03:48:35 +00:00
Tor Lillqvist
0d37c815d9 Fix crash when printing large 64-bit values on Win32 using the %I64x
2006-08-20  Tor Lillqvist  <tml@novell.com>

	* glib/gnulib/vasnprintf.c (vasnprintf): Fix crash when printing
	large 64-bit values on Win32 using the %I64x format. (#351034,
	Neil Piercy)
2006-08-20 13:39:48 +00:00
Tim Janik
aa4c932630 added test program which demonstrates and checks singleton construction.
Wed Aug 16 13:59:07 2006  Tim Janik  <timj@gtk.org>

        * tests/gobject/Makefile.am:
        * tests/gobject/singleton.c: added test program which demonstrates
        and checks singleton construction.
2006-08-16 12:11:03 +00:00
Matthias Clasen
58ea1db43e Add Since tags. Fix Since tag. (#351583, Brian Cameron)
2006-08-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gbookmarkfile.c (g_bookmark_file_get_groups):
        * glib/gmain.c (g_source_is_destroyed): Add Since tags.
        * glib/gkeyfile.c (g_key_file_get_double_list): Fix
        Since tag.  (#351583, Brian Cameron)
2006-08-16 03:33:57 +00:00