3086 Commits

Author SHA1 Message Date
Matthias Clasen
52d624d976 Bump version
svn path=/branches/glib-2-16/; revision=7477
2008-09-12 22:43:49 +00:00
Matthias Clasen
234bd72036 2.16.6
svn path=/branches/glib-2-16/; revision=7475
2008-09-12 22:37:52 +00:00
Matthias Clasen
af75b59ac5 Updates
svn path=/branches/glib-2-16/; revision=7473
2008-09-12 01:42:05 +00:00
Matthias Clasen
66aaaf44eb Bug 548321 – <string.h> is not included in gi18n-lib.h
* glib/gi18n.h:
        * glib/gi18n-lib.h: Include string.h, since strlen is used in
        the macros. Pointed out by Ignacio Casal Quinteiro


svn path=/branches/glib-2-16/; revision=7460
2008-09-11 18:47:50 +00:00
Matthias Clasen
3590eb79a8 Change libselinux detection to not link libglib
against it.


svn path=/branches/glib-2-16/; revision=7459
2008-09-11 18:44:56 +00:00
Matthias Clasen
6cbdc200a3 Accept lesser mmaps
svn path=/branches/glib-2-16/; revision=7458
2008-09-11 17:21:30 +00:00
Matthias Clasen
26e312fa30 Fix detection of struct statfs fields.
svn path=/branches/glib-2-16/; revision=7456
2008-09-11 17:10:58 +00:00
Emmanuele Bassi
83eca28279 Relax the attributes checking of the GBookmarkFile parser for the
2008-08-31  Emmanuele Bassi  <ebassi@gnome.org>

	* glib/gbookmarkfile.c:
	(parse_bookmark_element), (parse_application_element),
	(parse_mime_type_element), (parse_icon_element): Relax the
	attributes checking of the GBookmarkFile parser for the
	attributes that the desktop bookmark file specification
	defines and controls. (See bug 550096)

svn path=/branches/glib-2-16/; revision=7417
2008-08-31 19:47:38 +00:00
Matthias Clasen
0adb625876 Bump version
svn path=/branches/glib-2-16/; revision=7219
2008-07-20 03:41:52 +00:00
Matthias Clasen
8d0cba5adb 2.16.5
svn path=/branches/glib-2-16/; revision=7217
2008-07-20 03:40:06 +00:00
Matthias Clasen
14d1b6e551 Updates
svn path=/branches/glib-2-16/; revision=7215
2008-07-20 02:59:00 +00:00
Matthias Clasen
3362be91bd Set a sane default recursion limit of 8192 instead of 1000000. Patch by
* glib/pcre/Makefile.am: Set a sane default recursion limit
        of 8192 instead of 1000000.
        Patch by Mart Raudsepp.


svn path=/branches/glib-2-16/; revision=7211
2008-07-20 02:41:36 +00:00
Matthias Clasen
91b142c490 Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
svn path=/branches/glib-2-16/; revision=7210
2008-07-20 02:36:20 +00:00
Tor Lillqvist
e67641495d Merge from trunk:
2008-07-11  Tor Lillqvist  <tml@novell.com>

	Merge from trunk:

	* glib-zip.in: Include also lib/gio-2.0.{lib,def} in the developer
	zipfile.


svn path=/branches/glib-2-16/; revision=7176
2008-07-11 07:17:58 +00:00
Matthias Clasen
fa1b036204 Bump version
svn path=/branches/glib-2-16/; revision=7134
2008-07-02 02:11:51 +00:00
Matthias Clasen
c5e15e6cd0 2.16.4
svn path=/branches/glib-2-16/; revision=7132
2008-07-02 02:10:00 +00:00
Matthias Clasen
19b8def2cc Add bug references
svn path=/branches/glib-2-16/; revision=7128
2008-07-01 13:38:36 +00:00
Behdad Esfahbod
e8d75f8e3b Bug 459905 – Bug in wcwidth data Bug 534085 – g_unichar_iswide_cjk()
2008-05-20  Behdad Esfahbod  <behdad@gnome.org>

        Bug 459905 – Bug in wcwidth data
        Bug 534085 – g_unichar_iswide_cjk() has a totally wrong table
        * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
        Regenrate wide and wide_cjk tables from Unicode 5.1.0 data directly.
        Not using Markus Kuhn's tables anymore.


svn path=/branches/glib-2-16/; revision=7126
2008-07-01 04:55:10 +00:00
Matthias Clasen
e3233aa1b4 Updates
svn path=/branches/glib-2-16/; revision=7125
2008-07-01 04:42:06 +00:00
Matthias Clasen
7bdd7beaa2 Apply fix for CVE-2008-2371 to fix a heap-based buffer overflow.
* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
        fix a heap-based buffer overflow.


svn path=/branches/glib-2-16/; revision=7124
2008-07-01 03:29:08 +00:00
Matthias Clasen
9f08c1869b Update to PCRE 7.7
svn path=/branches/glib-2-16/; revision=7122
2008-07-01 03:23:36 +00:00
Matthias Clasen
faf349a2f9 Bug 538119 – glib's mainloop leaks a pipe to sub-processes
* glib/gmain.c (g_main_context_init_pipe): Don't leak the
        pipes to child processes. Patch by Thiago Macieira.


svn path=/branches/glib-2-16/; revision=7116
2008-06-30 22:45:33 +00:00
Matthias Clasen
695a864c2a Bug 502511 – g_assert_cmphex prints invalid message
* glib/gtestutils.c (g_assertion_message_cmpnum): Actually print
        hex numbers in hex.
        Pointed out by Tor Lillqvist


svn path=/branches/glib-2-16/; revision=7115
2008-06-30 22:40:13 +00:00
Matthias Clasen
281f4c58bf Bug 314453 – Nautilus crashes in Solaris when browsing the attached
file

        * glib/gunicollate.c (g_utf8_collate_key): Handle strfxrm returning
        -1 a little better. Problem pointed out by Takao Fujiwara



svn path=/branches/glib-2-16/; revision=7114
2008-06-30 22:37:45 +00:00
Matthias Clasen
3602dcca46 Bug 529321 – make check fails in glib/pcre
* glib/pcre/Makefile.am: include Makefile.decl to fix 'make check'.
        Patch by Hiroyuki Ikezoe


svn path=/branches/glib-2-16/; revision=7113
2008-06-30 22:25:21 +00:00
Matthias Clasen
ed3b351c49 Bug 536158 – also bump GHashTable version when a node is removed via
g_hash_table_iter_remove()/g_hash_table_iter_steal()

        * glib/ghash.c (iter_remove_or_steal): Bump the hash table
        version. Patch by Jean-Yves Lefort


svn path=/branches/glib-2-16/; revision=7112
2008-06-30 22:19:07 +00:00
Matthias Clasen
1f2eb23cea Apply type casts needed for proper compilation on 64-bit platforms.
* glib/gslice.h (g_slice_copy): Apply type casts needed
        for proper compilation on 64-bit platforms.


svn path=/branches/glib-2-16/; revision=7111
2008-06-30 22:13:45 +00:00
Sebastian Dröge
408471e3a9 Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
* configure.in:
* glib/gthread.h: Revert previous patch as it doesn't improve the
situation and results in other warnings.

svn path=/branches/glib-2-16/; revision=7063
2008-06-20 11:28:11 +00:00
Tor Lillqvist
0f1bae710c Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
2008-06-19  Tor Lillqvist  <tml@novell.com>

	Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()

	* glib/gspawn-win32-helper.c (main): Write also the exit status of
	the spawned process to the error report pipe. Patch by Hiroyuki
	Ikezoe.


svn path=/branches/glib-2-16/; revision=7061
2008-06-19 07:15:25 +00:00
Tor Lillqvist
698bee8aa5 Cosmetics.
svn path=/branches/glib-2-16/; revision=6974
2008-06-09 03:49:34 +00:00
Tor Lillqvist
4f3922f249 Define X_OK if not defined (MSVC).
2008-06-07  Tor Lillqvist  <tml@novell.com>

	* glib/gstdio.c (g_access): Define X_OK if not defined (MSVC).


svn path=/branches/glib-2-16/; revision=6971
2008-06-07 04:05:03 +00:00
Tor Lillqvist
663fe6839f Mask out X_OK to avoid problem on Vista. X_OK was just ignored by access()
2008-05-30  Tor Lillqvist  <tml@novell.com>

	* glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem
	on Vista. X_OK was just ignored by access() in earlier Microsoft C
	libraries. (Which is fine as executability has little meaning on
	Windows.) The one on Vista returns an error if X_OK is passed.


svn path=/branches/glib-2-16/; revision=6962
2008-05-29 23:06:41 +00:00
Tor Lillqvist
1077f0a1fb wint_t is short on Windows, and gcc warns: "wint_t is promoted to int when
2008-05-29  Tor Lillqvist  <tml@novell.com>

	* glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on
	Windows, and gcc warns: "wint_t is promoted to int when passed
	through ... (so you should pass int not wint_t to va_arg)." And
	indeed g_print("%C", L'a') crashes. So do as gcc says then.


svn path=/branches/glib-2-16/; revision=6958
2008-05-29 02:50:51 +00:00
Wouter Bolsterlee
b833579574 Fixup Tor's "build" svn:external commit. The svn:external was not actually
2008-05-17  Wouter Bolsterlee  <wbolster@svn.gnome.org>

	* build: Fixup Tor's "build" svn:external commit. The
	svn:external was not actually removed, so this caused
	errors when updating.

svn path=/branches/glib-2-16/; revision=6904
2008-05-17 18:00:28 +00:00
Tor Lillqvist
6ae9347525 Don't include the "build" module with svn:externals any longer. Instead
2008-05-17  Tor Lillqvist  <tml@novell.com>

	* build: Don't include the "build" module with svn:externals any
	longer. Instead add the still relevant directories and files from
	it for real here in GLib.


svn path=/branches/glib-2-16/; revision=6896
2008-05-17 01:47:29 +00:00
Michael Natterer
b0cc5a4f86 Merged from trunk:
2008-05-14  Michael Natterer  <mitch@imendio.com>

	Merged from trunk:

	* glib/gatomic.c: #include "config.h" before using G_ATOMIC_ARM.


svn path=/branches/glib-2-16/; revision=6890
2008-05-14 12:08:51 +00:00
Tor Lillqvist
e053bb6a60 Bug 528752 - Win32 build and SSL not working
2008-04-21  Tor Lillqvist  <tml@novell.com>

	Bug 528752 - Win32 build and SSL not working

	This bug report against libsoup points out an issue with the use
	of bitfields in the GIOChannel struct that should really be taken
	care of here in GLib.

	* configure.in: Add Autoconf variable GLIB_EXTRA_CFLAGS which will
	contain the -mms-bitfields flag on Windows.
	
	* glib-2.0.pc.in: Add it to Cflags.


svn path=/branches/glib-2-16/; revision=6867
2008-04-21 12:11:05 +00:00
Tor Lillqvist
0c7c9f0c1d configure.in glibconfig.h.win32.in Revert my changes for static build for
2008-04-11  Tor Lillqvist  <tml@novell.com>

	* configure.in
	* glibconfig.h.win32.in
	* glib/gutils.c: Revert my changes for static build for Win32
	from 2008-04-03--04. They were not complete and it's not
	apropriate to do changes like that in the stable branch anyway. I
	will continue that effort in trunk.


svn path=/branches/glib-2-16/; revision=6849
2008-04-11 15:28:53 +00:00
Federico Mena Quintero
7faf0095ff Don't leak apps_by_name in GBookmarkFile metadata items
2008-04-09  Federico Mena Quintero  <federico@novell.com>

	Merged from trunk:

	* glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak
	the apps_by_name hash table if the applications list is empty.

Signed-off-by: Federico Mena Quintero <federico@gnu.org>

svn path=/branches/glib-2-16/; revision=6847
2008-04-09 20:22:12 +00:00
Matthias Clasen
2754f7c8a4 Bump version
svn path=/branches/glib-2-16/; revision=6840
2008-04-08 04:59:38 +00:00
Matthias Clasen
0c8815715e 2.16.3
svn path=/branches/glib-2-16/; revision=6838
2008-04-08 04:55:38 +00:00
Matthias Clasen
09dcaddb30 Update
svn path=/branches/glib-2-16/; revision=6837
2008-04-08 04:26:43 +00:00
Matthias Clasen
165adcb71f Updates
svn path=/branches/glib-2-16/; revision=6836
2008-04-08 03:39:05 +00:00
Matthias Clasen
46029837e4 Bug 491554 – Update to Unicode 5.1.0
2008-04-07  Matthias Clasen  <mclasen@redhat.com>

        Bug 491554 – Update to Unicode 5.1.0

        * glib/gunichartables.h:
        * glib/gunicode.h:
        * glib/gunibreak.h:
        * glib/gmirroringtable.h:
        * glib/gscripttable.h:
        * glib/gen-script-table.pl: Update to Unicode 5.1.0. Patch by
        Behdad Esfahbod


svn path=/branches/glib-2-16/; revision=6835
2008-04-08 03:03:47 +00:00
Matthias Clasen
3186f5297c Bug 526619 – make test-report crash
* glib/gtester.c: Allocate enough space for argv. Patch by
         Hiroyuki Ikezoe


svn path=/branches/glib-2-16/; revision=6833
2008-04-08 02:23:49 +00:00
Stanislav Brabec
5be1985fba Credits update according to #522335#c6.
svn path=/branches/glib-2-16/; revision=6828
2008-04-07 08:37:16 +00:00
Matthias Clasen
f17611fa73 Make the fix for bug 448943 work.
2008-04-04  Matthias Clasen  <mclasen@redhat.com>

        * glib/gmain.c: Make the fix for bug 448943 work.



svn path=/branches/glib-2-16/; revision=6827
2008-04-04 13:07:09 +00:00
Tor Lillqvist
ab526ed5da Make sure we don't build both shared and static at the same time on
2008-04-04  Tor Lillqvist  <tml@novell.com>

	* configure.in: Make sure we don't build both shared and static at
	the same time on Windows. Put a #define for
	GLIB_STATIC_COMPILATION into glibconfig.h in the static case, so
	that the use of variables from libglib gets the GLIB_VAR macro in
	gtypes.h automatically correct. This means that a shared and
	static build of GLib can't be installed in the same prefix on
	Windows, which sucks a bit. But with variables in the GLib API,
	there isn't much we can do otherwise. The alternative would be to
	force the developer who compiles against a statically built GLib
	to use -DGLIB_STATIC_COMPILATION.

	* glibconfig.h.win32.in: Define GLIB_STATIC_COMPILATION here also,
	if needed.


svn path=/branches/glib-2-16/; revision=6823
2008-04-03 22:46:26 +00:00
Tor Lillqvist
a9a06b789e Don't enforce shared library build only on Windows. It might well make
2008-04-03  Tor Lillqvist  <tml@novell.com>

	* configure.in: Don't enforce shared library build only on
	Windows. It might well make sense to build static libraries in
	some use cases.

	* glib/gutils.c: Don't compile the DllMain if building libglib
	statically. Also in that case don't return NULL from
	_glib_get_installation_directory(), but return the installation
	directory of the program's .exe file.


svn path=/branches/glib-2-16/; revision=6819
2008-04-03 20:19:07 +00:00
Tor Lillqvist
b6b9e918f9 Bug 525972 - UCS-4 not in the new win_iconv implementation
2008-04-03  Tor Lillqvist  <tml@novell.com>

	Bug 525972 - UCS-4 not in the new win_iconv implementation

	* glib/win_iconv.c: Add UCS-4. Also add spelling of UCS-2 without
	the hyphen.


svn path=/branches/glib-2-16/; revision=6817
2008-04-03 15:01:35 +00:00