Blame ChangeLog.pre-2-18

Packit ae235b
2008-09-17  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version 
Packit ae235b
Packit ae235b
	* === Released 2.18.1 ===
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-09-16  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits in all
Packit ae235b
	the newer Microsoft C libraries, not just 64-bit ones. So to avoid
Packit ae235b
	crash if compiled with newer MSVSes, use a separate time_t
Packit ae235b
	variable in all cases on Windows.
Packit ae235b
Packit ae235b
	* glib/gbacktrace.h: Define G_BREAKPOINT() also for 64-bit MSVC,
Packit ae235b
	using the __debugbreak() intrinsic.
Packit ae235b
Packit ae235b
2008-09-15  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	* configure.in: Fix description of module shared library suffix.
Packit ae235b
Packit ae235b
2008-09-15  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* config.h.win32.in: Update to match what the configure script
Packit ae235b
	produces. Just for uniformity, only commented out parts affected.
Packit ae235b
Packit ae235b
2008-09-13  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gutils.h
Packit ae235b
	* glib/gwin32.h: Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
Packit ae235b
	g_win32_get_package_installation_directory() and
Packit ae235b
	g_win32_get_package_installation_subdirectory() as their
Packit ae235b
	documentation has warned for a while. Sorry that I forgot to do
Packit ae235b
	this before 2.18.0.
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_get_package_installation_directory):
Packit ae235b
	Print a warning if a non-NULL package parameter is passed to this
Packit ae235b
	function, as that is deprecated usage, as the documentation says.
Packit ae235b
Packit ae235b
2008-09-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 548321 – <string.h> is not included in gi18n-lib.h
Packit ae235b
Packit ae235b
	* glib/gi18n.h:
Packit ae235b
	* glib/gi18n-lib.h: Include string.h, since strlen is used in 
Packit ae235b
	the macros. Pointed out by Ignacio Casal Quinteiro
Packit ae235b
Packit ae235b
2008-09-10  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 551731 – g_date_set_time[_t] docs should mention what timezone
Packit ae235b
Packit ae235b
	* glib/gdate.c (g_date_set_time, g_date_set_time_t): Documentation
Packit ae235b
	improvements proposed by Owen Taylor.
Packit ae235b
Packit ae235b
2008-09-10  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 551410 – gtestutils.c: using printf without prototype
Packit ae235b
Packit ae235b
	* glib/gtestutils.c: Include stdio.h. Pointed out by Kazuki Iwamoto.
Packit ae235b
Packit ae235b
2008-09-09  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
Packit ae235b
	__func__ rather than '???'
Packit ae235b
Packit ae235b
	* glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h,
Packit ae235b
	as the comment up top says. Instead look at __STDC_VERSION__.
Packit ae235b
	Problem reported by Lin Ma.
Packit ae235b
Packit ae235b
2008-09-09  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_main_context_check): Be robust against setting
Packit ae235b
	event fields on the fly, as e.g. happens in linc. Tracked down
Packit ae235b
	by Paul Smith, fix proposed by Owen Taylor.
Packit ae235b
Packit ae235b
2008-09-08  Christian Dywan  <christian@imendio.com>
Packit ae235b
Packit ae235b
	Bug 550433 – g_test_init doesn't recognize --help
Packit ae235b
Packit ae235b
	* glib/gtestutils.c (parse_args): Add detailed --help output
Packit ae235b
Packit ae235b
2008-09-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* === Released 2.18.0 ===
Packit ae235b
Packit ae235b
2008-09-02  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
	Bug 549771 – improved .gitignore for glib
Packit ae235b
Packit ae235b
	* docs/reference/.gitignore:
Packit ae235b
	* docs/reference/gio/.gitignore:
Packit ae235b
	* docs/reference/gobject/tmpl/.gitignore:
Packit ae235b
	* gio/.gitignore:
Packit ae235b
	* gio/tests/.gitignore:
Packit ae235b
	* glib/.gitignore:
Packit ae235b
	* glib/libcharset/.gitignore:
Packit ae235b
	* glib/tests/.gitignore:
Packit ae235b
	* gmodule/.gitignore:
Packit ae235b
	* gobject/.gitignore:
Packit ae235b
	* gobject/tests/.gitignore:
Packit ae235b
	* po/.gitignore:
Packit ae235b
	* tests/.gitignore: new files
Packit ae235b
	* .gitignore: remove 'build' (since it's part of glib now), add more
Packit ae235b
	useful things.
Packit ae235b
Packit ae235b
2008-09-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
	* configure.in: Bump version to 2.18.0
Packit ae235b
Packit ae235b
2008-09-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 550104 – trivial documentation fix for g_get_home_dir
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_home_dir): Fix up the docs.
Packit ae235b
Packit ae235b
2008-09-02  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gchecksum.c (g_checksum_reset): add
Packit ae235b
	g_return_if_fail (checksum != NULL)
Packit ae235b
Packit ae235b
2008-09-01  Paolo Borelli  <pborelli@katamail.com>
Packit ae235b
Packit ae235b
	Bug 550040 - Move GString, rand and printf tests to the unit test
Packit ae235b
	framework
Packit ae235b
Packit ae235b
	* tests/printf-test.c:
Packit ae235b
	* tests/rand-test.c:
Packit ae235b
	* tests/string-test.c:
Packit ae235b
	Removed
Packit ae235b
Packit ae235b
	* glib/tests/printf.c:
Packit ae235b
	* glib/tests/rand.c:
Packit ae235b
	* glib/tests/string.c:
Packit ae235b
	Added
Packit ae235b
Packit ae235b
	* tests/Makefile.am:
Packit ae235b
	* glib/tests/Makefile.am:
Packit ae235b
	Updated for the above
Packit ae235b
Packit ae235b
2008-08-31  Emmanuele Bassi  <ebassi@gnome.org>
Packit ae235b
Packit ae235b
	Bug 550096 – GBookmarkFile parser is not forward compatible
Packit ae235b
Packit ae235b
	* glib/gbookmarkfile.c:
Packit ae235b
	(parse_bookmark_element), (parse_application_element),
Packit ae235b
	(parse_mime_type_element), (parse_icon_element): Relax the
Packit ae235b
	attributes checking of the GBookmarkFile parser for the
Packit ae235b
	attributes that the desktop bookmark file specification
Packit ae235b
	defines and controls. This allows adding new attributes to
Packit ae235b
	the existing elements in newer versions without breaking the
Packit ae235b
	parser in older ones.
Packit ae235b
Packit ae235b
2008-08-28  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
	Fixup for test case in previous commit.
Packit ae235b
Packit ae235b
	* glib/tests/strfuncs.c: don't fail if we can't open the test data.
Packit ae235b
	This happens if $(builddir) != $(srcdir) (like when doing 'make
Packit ae235b
	distcheck').  Quick workaround for now until #549783 can be fixed.
Packit ae235b
Packit ae235b
2008-08-28  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
	Bug 548612 – g_strstr_len() should use memmem when available
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_strstr_len): fix off-by-one memory access error
Packit ae235b
	* glib/tests/strfuncs.c (test_bounds): add some new test cases that
Packit ae235b
	would catch problems like this
Packit ae235b
	* glib/tests/4096-random-bytes: test data for the previous
Packit ae235b
	* glib/tests/Makefile.am: add previous to EXTRA_DIST
Packit ae235b
	
Packit ae235b
2008-08-28  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
	[REVERT] Bug 548612 – g_strstr_len() should use memmem when available
Packit ae235b
Packit ae235b
	* configure.in:
Packit ae235b
	* glib/gstrfuncs.c (g_strstr_len): revert use of memmem (see bug)
Packit ae235b
Packit ae235b
2008-08-28  Matthias Clasen  <mclsaen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Change libselinux detection to not link libglib
Packit ae235b
	against it.
Packit ae235b
Packit ae235b
2008-08-28  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_parse_long_long): make "endptr" const since
Packit ae235b
	it's always a pointer into the const string passed. Remove some
Packit ae235b
	casting to (gchar*) in this function.
Packit ae235b
Packit ae235b
	(g_ascii_strtoull)
Packit ae235b
	(g_ascii_strtoll): cast "endptr" to (const gchar**) here when
Packit ae235b
	passing it to above function.
Packit ae235b
Packit ae235b
2008-08-28  Bastien Nocera  <hadess@hadess.net>
Packit ae235b
Packit ae235b
	Bug 548612 – g_strstr_len() should use memmem when available
Packit ae235b
Packit ae235b
	* glib/tests/strfuncs.c (test_strstr):
Packit ae235b
	* tests/string-test.c (main): Patch by Paolo Borelli
Packit ae235b
	<pborelli@katamail.com> to move the tests to the right place,
Packit ae235b
	and add more tests
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_strstr_len): Fix problem with memmem ignoring
Packit ae235b
	nul-terminators in strings, and using the haystack_len instead
Packit ae235b
Packit ae235b
2008-08-28  Bastien Nocera  <hadess@hadess.net>
Packit ae235b
Packit ae235b
	Bug 548612 – g_strstr_len() should use memmem when available
Packit ae235b
Packit ae235b
	* configure.in: detect whether memmem is available in the C library
Packit ae235b
	* glib/gstrfuncs.c (g_strstr_len): use memmem for g_strstr_len() if
Packit ae235b
	available in it's available, as it could be optimised by the C library
Packit ae235b
	* tests/string-test.c (main): Add a few tests for g_strstr_len()
Packit ae235b
Packit ae235b
2008-08-27  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c: Stylistic changes. Plug an unlikely memory leak
Packit ae235b
	that occurred in create_thread() if closing the thread handle
Packit ae235b
	failed. Add more error messages to g_io_win32_free() that are
Packit ae235b
	printed only when debugging. Plug handle leak, a socket channel's
Packit ae235b
	event was never closed.
Packit ae235b
Packit ae235b
2008-08-27  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* config.h.win32.in: Should not define HAVE_DIRENT_H when
Packit ae235b
	compiling with MSVC, as the only file which checks HAVE_DIRENT_H
Packit ae235b
	is gdir.c, and that includes the dirent.h and wdirent.c from
Packit ae235b
	build/win32/dirent explicitly anyway when being compiled with
Packit ae235b
	MSVC.
Packit ae235b
Packit ae235b
2008-08-22  Björn Lindqvist  <bjourne@gmail.com>
Packit ae235b
Packit ae235b
	Bug 523939 – Example program for GValue
Packit ae235b
Packit ae235b
	* gobject/gvalue.c: Add code example that demonstrates GValue's
Packit ae235b
	features.
Packit ae235b
Packit ae235b
2008-08-21  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c: Minor comment improvements. Improve run-time
Packit ae235b
	warning messages. Drop some #if 0 code. Don't bother compiling the
Packit ae235b
	binary compatibility g_io_channel_win32_new_stream_socket()
Packit ae235b
	function that has not been mentioned in any header since 2.0 on
Packit ae235b
	Win64.
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Mark it, too, private, and don't export it on
Packit ae235b
	Win64.
Packit ae235b
Packit ae235b
2008-08-21  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c: Rework the g_poll() implementation on Windows to
Packit ae235b
	match poll() semantics more closely. This makes the test program
Packit ae235b
	in bug #468910 behave better and doesn't seem to break anything
Packit ae235b
	else.
Packit ae235b
Packit ae235b
	If polling several GPollFDs, i.e. messages and/or waitable
Packit ae235b
	handles, first check if one or several of them are in the
Packit ae235b
	signalled state right away, with timeout zero. Return indication
Packit ae235b
	for all that are in that case. To check if several handles are
Packit ae235b
	signalled, we have to call the WaitForMultipleObjectsEx() function
Packit ae235b
	repeatedly, each time removing the handle it indicated was
Packit ae235b
	signalled last time, until WAIT_TIMEOUT is returned.
Packit ae235b
Packit ae235b
	If not, then poll with timeout and indicate only the single one
Packit ae235b
	that the Win32 wait function tells us as before.
Packit ae235b
Packit ae235b
	Remove unnecessary ifdefs, as we always have G_MAIN_POLL_DEBUG
Packit ae235b
	defined on Windows.
Packit ae235b
Packit ae235b
	Initialise g_main_poll_debug in g_main_context_new() so we have it
Packit ae235b
	before testing it in one case.
Packit ae235b
Packit ae235b
	Don't put several copies of a handle in the array of handles to
Packit ae235b
	wait for. The documentation says this is not allowed, although it
Packit ae235b
	did seem to work fine in practise. But do as the documentation
Packit ae235b
	says anyway.
Packit ae235b
Packit ae235b
2008-08-20  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 500246 - Bug fixes for giowin32
Packit ae235b
Packit ae235b
	* glib/giowin32.c (read_thread) (write_thread): Change the nbytes
Packit ae235b
	variables to signed.
Packit ae235b
	(g_io_channel_win32_make_pollfd): Fix an obvious error in the file
Packit ae235b
	descriptor case leftover after the patch from bug #333098 on
Packit ae235b
	2006-03-02. Thanks to Marcus Brinkmann.
Packit ae235b
Packit ae235b
2008-08-20  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 324234 - Using g_io_add_watch_full() to wait for connect() to
Packit ae235b
	return on a non-blocking socket returns prematurely
Packit ae235b
Packit ae235b
	Bug 548278 - Async GETs connections are always terminated
Packit ae235b
	unexpectedly on Windows
Packit ae235b
Packit ae235b
	* glib/giowin32.c: Add one more state variable to the
Packit ae235b
	GIOWin32Channel struct, ever_writable. Initialise it to FALSE, set
Packit ae235b
	to TRUE when the WSAEventSelect() indicates FD_WRITE, and never
Packit ae235b
	reset to FALSE.
Packit ae235b
Packit ae235b
	Don't do the WSASetEvent() in g_io_win32_prepare() unless
Packit ae235b
	ever_writable is TRUE. Don't automatically indicate G_IO_OUT in
Packit ae235b
	g_io_win32_check() unless ever_writable is TRUE.
Packit ae235b
Packit ae235b
	This fixes the behaviour of the test case program in bug #548278,
Packit ae235b
	and the "Testcase for the spurious OUT event bug" in bug
Packit ae235b
	#324234. It also doesn't seem to break anything. Not that there is
Packit ae235b
	any exhaustive test suite...
Packit ae235b
Packit ae235b
	Add a comment with a list of bugs that are related to the code in
Packit ae235b
	this file.
Packit ae235b
Packit ae235b
2008-08-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
2008-08-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* === Released 2.17.7 ===
Packit ae235b
Packit ae235b
2008-08-17  Sven Neumann  <sven@gimp.org>
Packit ae235b
Packit ae235b
	* NEWS: mention GWinHttpVfs.
Packit ae235b
Packit ae235b
2008-08-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-08-15 12:41:26  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gtestutils.c: changed assertion messages, so older emacsen
Packit ae235b
	can also detect failing source file and line, fixes:
Packit ae235b
	Bug 502498 – Test framework assertion failures should follow gcc error format
Packit ae235b
Packit ae235b
2008-08-14  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 547832 – gtk+-2.12.11 fails to build - AC_PROG_MMAP too strict,
Packit ae235b
	and unnecessary
Packit ae235b
Packit ae235b
	* configure.in: Be a little bit more forgiving when checking
Packit ae235b
	for mmap. Patch by Peter O'Gorman
Packit ae235b
Packit ae235b
2008-08-13  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 547337 – G_DISABLE_DEPRECATED breaks tests build
Packit ae235b
Packit ae235b
	* tests/testglib.c: Protect deprecated API by ifdefs.
Packit ae235b
	Patch by Kalle Vahlman
Packit ae235b
Packit ae235b
2008-08-13  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 547637 – unconditional #include of sys/statfs.h in configure
Packit ae235b
	impedes detection of statfs things if non-existant
Packit ae235b
Packit ae235b
	* configure.in: Protect the statfs.h include by guards.
Packit ae235b
Packit ae235b
2008-08-12  Federico Mena Quintero  <federico@novell.com>
Packit ae235b
Packit ae235b
	* glib/gi18n-lib.h: In the #error about having to define
Packit ae235b
	GETTEXT_PACKAGE, add a hint about a possibly-missing config.h.
Packit ae235b
Packit ae235b
2008-08-11  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	Bug 547200 – g_utf8_find_next_char() issues
Packit ae235b
Packit ae235b
	* glib/gutf8.c: Improve wording about @end arguments in str funcs.
Packit ae235b
Packit ae235b
2008-08-10  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gutf8.c: Fix docs to use "nul-terminated" consistently.
Packit ae235b
Packit ae235b
2008-08-08  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
	Fix 'fail' markup test cases to -not- be valid XML 1.1.
Packit ae235b
Packit ae235b
	* tests/markups/fail-32.gmarkup: change  to � since the
Packit ae235b
	former is no longer a failure.
Packit ae235b
Packit ae235b
2008-08-08  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
	Bug 546876 - Modify GMarkup parser to accept  .. 
Packit ae235b
Packit ae235b
	* glib/gmarkup.c: previously the parser only accepted character
Packit ae235b
	references for \t \n and \r (as per XML 1.0); now it accepts all
Packit ae235b
	of  .. .
Packit ae235b
Packit ae235b
2008-08-07  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Output comment clarifying GPid semantics to
Packit ae235b
	glibconfig.h.
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Ditto here.
Packit ae235b
Packit ae235b
2008-08-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 546329 – API docs for g_utf8_normalize() are incorrect
Packit ae235b
Packit ae235b
	* glib/gunidecomp.c: Remove inaccurate information about
Packit ae235b
	g_utf8_collate() from g_utf8_normalize() docs.
Packit ae235b
	Pointed out by Sven Neumann.
Packit ae235b
Packit ae235b
2008-08-04  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Make the union _GSystemThread::data array
Packit ae235b
	8 bytes on Win64. Not that it matters as the union contains a
Packit ae235b
	pointer also anyway, but for equivalence with the configure-
Packit ae235b
	generated glibconfig.h
Packit ae235b
Packit ae235b
2008-08-04  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_get_current_time): MSDN says: "Do not cast a
Packit ae235b
	pointer to a FILETIME structure to either a LARGE_INTEGER* or
Packit ae235b
	__int64* value because it can cause alignment faults on 64-bit
Packit ae235b
	Windows." So don't do that then. Indeed the code did work randomly
Packit ae235b
	on Win64 when compiled with optimisation.
Packit ae235b
Packit ae235b
2008-08-04  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c
Packit ae235b
	* glib/gmain.c
Packit ae235b
	* glib/gspawn-win32.c
Packit ae235b
	* glib/gspawn-win32-helper.c: Change gssize casts introduced on
Packit ae235b
	2008-07-28 to gintptr casts now that we have that. gssize is as
Packit ae235b
	such the same as gintptr on both 32- and 64-bit Windows, but the
Packit ae235b
	gintptr name indicates that it is used to hold pointers, i.e. also
Packit ae235b
	HANDLEs.
Packit ae235b
Packit ae235b
	* tests/testglib.c: Avoid warning on Win64 by using gintptr cast
Packit ae235b
	instead if long cast.
Packit ae235b
Packit ae235b
2008-08-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
2008-08-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* === Released 2.17.6 ===
Packit ae235b
Packit ae235b
2008-08-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* === Released 2.17.5 ===
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-08-02  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Add gintptr and guintptr typedefs here,
Packit ae235b
	too, appropriately ifdeffed for 32/64 bit, gcc/MSVC. Add 64-bit
Packit ae235b
	versions of GPOINTER_TO_INT(), GPOINTER_TO_UINT() and vice versa,
Packit ae235b
	too.
Packit ae235b
	
Packit ae235b
2008-08-01  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
	
Packit ae235b
2008-08-01  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 545798 – "Since: 2.18" mark is missing in g_set_error_literal
Packit ae235b
	documentation
Packit ae235b
Packit ae235b
	* glib/gerror.c (g_set_error_literal): Add a Since: marker.
Packit ae235b
	Pointed out by Kouhei Sutou
Packit ae235b
Packit ae235b
2008-07-30  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 545485 - Implicit declaration of utime()
Packit ae235b
Packit ae235b
	* glib/gstdio.c: Include <utime.h> on POSIX.
Packit ae235b
Packit ae235b
2008-07-28  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Output to glibconfig.h typedefs for gintptr as the
Packit ae235b
	signed integer type that can hold a pointer, and guintptr as the
Packit ae235b
	corresponding unsigned type. These types are portable equivalents
Packit ae235b
	to intptr_t and uintptr_t which are not available in all
Packit ae235b
	compilers.
Packit ae235b
Packit ae235b
	For all current platforms, they will presumably end up as the same
Packit ae235b
	types as gssize and gsize, but in theory size_t can be smaller
Packit ae235b
	than intptr_t. Also, the intended use case for gintptr and
Packit ae235b
	guintptr is different from that of gssize and gsize. As the name
Packit ae235b
	indicates, gintptr is for when one wants an integer type that can
Packit ae235b
	hold a pointer, and gsize is for when one wants an integer type
Packit ae235b
	that can hold the value of the sizeof operator.
Packit ae235b
Packit ae235b
2008-07-28  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 544465 – gmarkup makes it hard to use pre-rolled parsers
Packit ae235b
Packit ae235b
	* glib/glib.symbols:
Packit ae235b
	* glib/gmarkup.[hc]: Add g_markup_context_get_user_data.
Packit ae235b
	Patch by Ryan Lortie
Packit ae235b
Packit ae235b
2008-07-28  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib-zip.in: Message catalogs should always get installed into
Packit ae235b
	share/locale nowadays, don't bother with the convoluted logic
Packit ae235b
	checking if they are in lib/locale instead. Put the correct helper
Packit ae235b
	programs in the zipfile.
Packit ae235b
Packit ae235b
2008-07-28  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Fix problems on 64-bit Windows. Avoid warnings, some of which
Packit ae235b
	indicated actual problems, some which were just annoyances. 
Packit ae235b
Packit ae235b
	Where casts to an integer type are needed for pointers, use
Packit ae235b
	gssize. Technically intptr_t would be the more proper type, but we
Packit ae235b
	still want to be compilable with MSVS6 and 7 which don't have
Packit ae235b
	intptr_t. MSVS8 and 9 do have intptr_t, but in <crtdefs.h>, not
Packit ae235b
	<stdint.h>.
Packit ae235b
Packit ae235b
	Use %p to print out handles. Use gssize casts when assigning
Packit ae235b
	GPollFD::fd fields.
Packit ae235b
Packit ae235b
	Use G_GSIZE_FORMAT when printing size_t values.
Packit ae235b
	
Packit ae235b
	* configure.in: Define automake conditional G_OS_WIN32_X64 which
Packit ae235b
	is true on Win64.
Packit ae235b
Packit ae235b
	* glib/giochannel.h: Use slightly different prototype for
Packit ae235b
	g_io_channel_win32_new_messages() on Win64 with gsize instead of
Packit ae235b
	guint.
Packit ae235b
Packit ae235b
	* glib/giowin32.c
Packit ae235b
	* glib/gmain.c
Packit ae235b
	* glib/gspawn-win32.c
Packit ae235b
	* tests/testglib.c: Generic changes as described above.
Packit ae235b
Packit ae235b
	* glib/gmain.h: Don't bother mentioning GIMP in comment.
Packit ae235b
Packit ae235b
	* glib/grel.c (tuple_hash_2): Use all bits of pointer.
Packit ae235b
Packit ae235b
	* glib/gspawn-win32.c
Packit ae235b
	* glib/gspawn-win32-helper.c: Use gssize types in the
Packit ae235b
	communication between parent and helper process, so that we can
Packit ae235b
	pass process handles, which are pointers, also on Win64.
Packit ae235b
Packit ae235b
	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits on
Packit ae235b
	Win64 so we can't pass the address of a GTimeVal::tv_sec which is
Packit ae235b
	a long directly to gmtime(). On the other hand, changing
Packit ae235b
	GTimeVal::tv_sec to be a gint64 on Win64 is not really feasible
Packit ae235b
	either, as that would then require changes in much code that uses
Packit ae235b
	GTimeVals.
Packit ae235b
Packit ae235b
	* glib/gspawn-win32.c
Packit ae235b
	* glib/Makefile.am: Call the helper programs
Packit ae235b
	gspawn-win64-helper.exe and gspawn-win64-helper-console.exe on
Packit ae235b
	Win64, to avoid potential risk of running a 32-bit version of the
Packit ae235b
	helper.
Packit ae235b
Packit ae235b
2008-07-27  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/glib.symbols
Packit ae235b
	* glib/gconvert.c
Packit ae235b
	* glib/gdir.c
Packit ae235b
	* glib/gfileutils.c
Packit ae235b
	* glib/giowin32.c
Packit ae235b
	* glib/gspawn-win32.c
Packit ae235b
	* glib/gutils.c
Packit ae235b
	* glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on
Packit ae235b
	_WIN64. As there hasn't been any widely deployed 64-bit Windows
Packit ae235b
	builds of the really old GLib (pre-2.8.1) versions those refer to,
Packit ae235b
	there is no need to have the "ABI compatibility" versions in the
Packit ae235b
	DLL.
Packit ae235b
Packit ae235b
	* glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too.
Packit ae235b
Packit ae235b
2008-07-27  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Set LIB_EXE_MACHINE_FLAG to either X86 or X64 on
Packit ae235b
	Windows. AC_SUBST it.
Packit ae235b
Packit ae235b
	* glib/Makefile.am (glib-2.0.lib): Pass appropriate -machine flag
Packit ae235b
	to lib.exe.
Packit ae235b
Packit ae235b
2008-07-25 15:47:08  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* glib/tests/testing.c (test_random_conversions): added new sample
Packit ae235b
	test to prepare for extended range random tests.
Packit ae235b
Packit ae235b
2008-07-24  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gdir.c: Include <stdio.h> for FILENAME_MAX on newer mingw
Packit ae235b
	installations.
Packit ae235b
Packit ae235b
2008-07-24  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of
Packit ae235b
	the C99 "zu".
Packit ae235b
Packit ae235b
2008-07-24  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to
Packit ae235b
	glibconfig.h using the same two phase code as for the other
Packit ae235b
	defines in it. Can't check enable_included_printf directly in the
Packit ae235b
	shell code that is the first argument to AC_CONFIG_COMMANDS().
Packit ae235b
Packit ae235b
	Preset glib_cv_stack_grows=no on Windows to help
Packit ae235b
	cross-compilation.
Packit ae235b
Packit ae235b
	* configure.in: Enhancements for 64-bit Windows: 
Packit ae235b
Packit ae235b
	Handle also size_t being larger than long. It is long long
Packit ae235b
	a.k.a. __int64 on the LLP64 Win64.
Packit ae235b
Packit ae235b
	Set glib_void_p and glib_long correctly. Their assignments were
Packit ae235b
	crossed. It hasn't mattered on LP64 platforms like all (?) 64-bit
Packit ae235b
	UNIXes, but on the LLP Win64 it was wrong.
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Check also _WIN64.
Packit ae235b
Packit ae235b
2008-07-24  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Patch for 64-bit Windows from Richard
Packit ae235b
	Hult.
Packit ae235b
Packit ae235b
2008-07-23  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	544088 – option_test_LDADD is left in tests/Makefile.am
Packit ae235b
Packit ae235b
	* tests/Makefile.am: Remove leftovers. 
Packit ae235b
	Noticed by Hiroyuki Ikezoe
Packit ae235b
Packit ae235b
2008-07-22  Mathias Hasselmann  <mathias@openismus.com>
Packit ae235b
Packit ae235b
	Set LANG variable for group caption tests to get reproducable results.
Packit ae235b
Packit ae235b
	* glib/tests/option-context.c (group_captions()):
Packit ae235b
	  Set LANG variable to C in the forked process to get reproducable.
Packit ae235b
	  Don't silence the forked process in --verbose mode to support
Packit ae235b
	  debugging.
Packit ae235b
Packit ae235b
2008-07-21  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Fix detection of struct statfs fields.
Packit ae235b
Packit ae235b
2008-07-21  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
2008-07-21  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* === Released 2.17.4 ===
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gtimer.c (g_time_val_to_iso8601): Use the right format
Packit ae235b
	string to get leading zeros when converting to ISO 8601. (Sven
Packit ae235b
	Herzberg)
Packit ae235b
Packit ae235b
2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gbookmarkfile.c:
Packit ae235b
	(bookmark_app_info_new): Do not set the timestamp value
Packit ae235b
	using time(), as it will be overwritten anyway. (#535223,
Packit ae235b
	Michael Meeks)
Packit ae235b
Packit ae235b
	(parse_application_element),
Packit ae235b
	(bookmark_app_info_dump): Support the "modified" attribute,
Packit ae235b
	which takes an ISO-formatted string instead of a Unix time
Packit ae235b
	stamp, to keep the number of g_strdup_printf() calls to a
Packit ae235b
	minimum.
Packit ae235b
Packit ae235b
	* glib/gtimer.c:
Packit ae235b
	(g_time_val_to_iso8601): Do not use strftime(): we know
Packit ae235b
	the format and contents of the ISO 8601 date format we
Packit ae235b
	use.
Packit ae235b
Packit ae235b
	* tests/bookmarks/valid-03.xbel: Add a test file for the
Packit ae235b
	modified attribute.
Packit ae235b
Packit ae235b
2008-07-19  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/tests/Makefile.am:
Packit ae235b
	* glib/tests/array-test.c: Move array tests here.
Packit ae235b
Packit ae235b
	* tests/Makefile.am:
Packit ae235b
	* tests/array-test.c: Removed.
Packit ae235b
Packit ae235b
2008-07-20  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c (g_io_win32_prepare): Patch from Yu Kuan that
Packit ae235b
	makes watched sockets behave much better. See gtk-devel-list
Packit ae235b
	archives from May for the (unfortunately rather meager)
Packit ae235b
	discussion. This patch fixes the presented simple test program,
Packit ae235b
	which reasonably could be expected to work.
Packit ae235b
Packit ae235b
2008-07-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-07-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 536996 – Missing noop i18n macro equivalent to C_
Packit ae235b
Packit ae235b
	* glib/glib.symbols:
Packit ae235b
	* glib/gstrfuncs.[hc]: Add g_dpgettext2() which is a 
Packit ae235b
	variant of g_dpgettext() taking context and id as separate
Packit ae235b
	arguments.
Packit ae235b
Packit ae235b
	* glib/gi18n-lib.h:
Packit ae235b
	* glib/gi18n.h: Add an NC_() macro that is to C_() as N_()
Packit ae235b
	is to _().
Packit ae235b
Packit ae235b
2008-07-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/Makefile.am:
Packit ae235b
	* tests/keyfile-test.c:
Packit ae235b
	* tests/option-test.c: Remove
Packit ae235b
	* glib/tests/option-context.c: Add all GOptionContext tests here.
Packit ae235b
	* glib/tests/keyfile.c: Add all GKeyFile tests here.
Packit ae235b
Packit ae235b
2008-07-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 334234 – "printf" format error
Packit ae235b
Packit ae235b
	* glib/gslice.c (mem_error): Avoid a warning when printing a pid_t.
Packit ae235b
	Pointed out by Morten Welinder. 
Packit ae235b
Packit ae235b
2008-07-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 406120 – g_ascii_strtod
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_ascii_strtod): Document that this
Packit ae235b
	function does accept localized infinities and nans. Reported
Packit ae235b
	by Morten Welinder.
Packit ae235b
Packit ae235b
2008-07-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 482413 - get_contents_stdio -- overflow and memory corruption
Packit ae235b
Packit ae235b
	* glib/gfileutils.c (get_contents_stdio): Detect overflow and
Packit ae235b
	error out. Reported by Morten Welinder. 
Packit ae235b
Packit ae235b
2008-07-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 542332 – small fix for error message in GMarkup
Packit ae235b
	
Packit ae235b
	* glib/gmarkup.c: Improve an error message. 
Packit ae235b
	Patch by Ryan Lortie
Packit ae235b
Packit ae235b
2008-07-14  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 428048 – 2 of 51 tests fail on Solaris
Packit ae235b
Packit ae235b
	* tests/iochannel-test.c: Ignore the error if iconv doesn't
Packit ae235b
	support EUC-JP.
Packit ae235b
Packit ae235b
2008-07-14  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/option-test.c: Print error messages when something fails.
Packit ae235b
Packit ae235b
2008-07-14  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 467707 – test_iconv_state() in tests/convert-test.c fails on AIX 5.3
Packit ae235b
Packit ae235b
	* tests/convert-test.c (test_iconv_state): Skip this test if
Packit ae235b
	CP1255 is not supported.  
Packit ae235b
Packit ae235b
2008-07-10  Ryan Lortie  <desrt@desrt.ca>
Packit ae235b
Packit ae235b
 	* docs/reference/glib/glib-sections.txt:
Packit ae235b
 	* glib/glib.symbols:
Packit ae235b
 	* glib/gmarkup.c:
Packit ae235b
 	* glib/gmarkup.h: add functions g_markup_parse_context_{push,pop} in
Packit ae235b
 	order to provide some small hooks on which to build easy-to-use
Packit ae235b
 	subparsers.
Packit ae235b
 
Packit ae235b
 	* glib/tests/Makefile: add new test
Packit ae235b
 	* glib/tests/markup-subparser.c: new test for subparsers
Packit ae235b
 
Packit ae235b
 	Fixes bug #337518.
Packit ae235b
Packit ae235b
2008-07-05  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 528317 – GRegex does not allow recursion limit
Packit ae235b
Packit ae235b
	* glib/pcre/Makefile.am: Set a sane default recursion limit
Packit ae235b
	of 8192 instead of 1000000. 
Packit ae235b
	Patch by Mart Raudsepp.
Packit ae235b
Packit ae235b
2008-07-04  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	Bug 541507 – Ambiguous description of assigned characters in the Glib
Packit ae235b
	Unicode Manipulation reference
Packit ae235b
Packit ae235b
	* glib/guniprop.c
Packit ae235b
	(g_unichar_isgraph): Return true for PrivateUse too.
Packit ae235b
	(g_unichar_isprint): Return true for PrivateUse too.
Packit ae235b
	(g_unichar_isdefined): Return false for Surrogate.
Packit ae235b
Packit ae235b
2008-07-04  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	Bug 541208 – Functions to easily install and use signals without
Packit ae235b
	class struct slot
Packit ae235b
Packit ae235b
	* tests/gobject/override.c: added tests for the new gsignal
Packit ae235b
	overriding and chaining APIs.
Packit ae235b
Packit ae235b
2008-07-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* === Released 2.17.3 ===
Packit ae235b
Packit ae235b
2008-07-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Better endianness fix. From Tomas Mraz.
Packit ae235b
Packit ae235b
2008-07-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-07-02  Colin Walters  <walters@redhat.com>
Packit ae235b
Packit ae235b
	* gio/gcontenttype.c: Use UNLOCK to unlock, not LOCK.
Packit ae235b
Packit ae235b
2008-07-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Add a check for structfs.f_bavail
Packit ae235b
Packit ae235b
2008-07-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
Packit ae235b
	check in both versions. Proposed by Patrik Olsson in bug 540545.
Packit ae235b
Packit ae235b
2008-07-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
Packit ae235b
	Add a _cv_ to some variable names, since autoconf wants it.
Packit ae235b
Packit ae235b
2008-06-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
Packit ae235b
	fix a heap-based buffer overflow.
Packit ae235b
Packit ae235b
2008-06-29  Björn Lindqvist  <bjourne@gmail.com>
Packit ae235b
Packit ae235b
	Bug 539626 – Update docstrings for g_object_freeze_notify and
Packit ae235b
	g_object_thaw_notify
Packit ae235b
Packit ae235b
	* gobject/gobject.c: Explain how the freeze count works.
Packit ae235b
Packit ae235b
2008-06-26  Cody Russell  <bratsche@gnome.org>
Packit ae235b
Packit ae235b
	* configure.in: Add #define GLIB_USING_SYSTEM_PRINTF
Packit ae235b
	to glibconfig.h, which specifies if GLib is using
Packit ae235b
	the system printf functions for g_print*().
Packit ae235b
	(#539999, by Tim-Philipp Müller)
Packit ae235b
Packit ae235b
2008-06-24  Paolo Borelli  <pborelli@katamail.com>
Packit ae235b
Packit ae235b
	Bug 539770 - migrate gstrfunc unit tests to gtest
Packit ae235b
Packit ae235b
	* tests/strfunc-test.c:
Packit ae235b
	* tests/testglib.c:
Packit ae235b
	* tests/strtoll-test.c:
Packit ae235b
	* tests/strtod-test.c:
Packit ae235b
	* tests/string-test.c:
Packit ae235b
	* tests/Makefile.am:
Packit ae235b
	Removed old tests.
Packit ae235b
Packit ae235b
	* glib/tests/fileutils.c:
Packit ae235b
	* glib/tests/strfuncs.c:
Packit ae235b
	* glib/tests/Makefile.am:
Packit ae235b
	Added all the old tests migrated to the new unit test framework
Packit ae235b
	and add new unit tests for some of the functions.
Packit ae235b
Packit ae235b
2008-06-23  Kristian Rietveld  <kris@imendio.com>
Packit ae235b
Packit ae235b
	* gobject/glib-mkenums.in: introduce an ENUMPREFIX substitution.
Packit ae235b
Packit ae235b
	* gio/gioenumtypes.h.template: use @ENUMPREFIX@ instead of
Packit ae235b
	hard coding "G" as prefix.
Packit ae235b
Packit ae235b
2008-06-22  Stefan Kost  <ensonic@users.sf.net>
Packit ae235b
Packit ae235b
	* glib/gurifuncs.c:
Packit ae235b
	  Fix markup in comment.
Packit ae235b
Packit ae235b
2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
Packit ae235b
Packit ae235b
    * *.[ch]: Include "config.h" instead of <config.h>
Packit ae235b
    Command used:
Packit ae235b
    find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Packit ae235b
    Rubberstamped by Mitch
Packit ae235b
Packit ae235b
2008-06-20  Sebastian Dröge  <slomo@circular-chaos.org>
Packit ae235b
Packit ae235b
	Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
Packit ae235b
Packit ae235b
	* configure.in:
Packit ae235b
	* glib/gthread.h: Revert previous patch as it doesn't improve the
Packit ae235b
	situation and results in other warnings.
Packit ae235b
Packit ae235b
2008-06-16  Christian Persch  <chpe@gnome.org>
Packit ae235b
Packit ae235b
	Bug 539123 – annotate g_d[n]gettext with G_GNUC_FORMAT
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.h:
Packit ae235b
	* glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT. 
Packit ae235b
Packit ae235b
2008-06-19  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
Packit ae235b
Packit ae235b
	* glib/gspawn-win32-helper.c (main): Write also the exit status of
Packit ae235b
	the spawned process to the error report pipe. Patch by Hiroyuki
Packit ae235b
	Ikezoe.
Packit ae235b
Packit ae235b
2008-06-19  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 535949 – annotate g_strip_context and g_dpgettext with
Packit ae235b
	G_GNUC_FORMAT
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.h:
Packit ae235b
	* glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT.
Packit ae235b
	Patch by Christian Persch
Packit ae235b
Packit ae235b
2008-06-19  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 539067 – The document g_io_channel_win32_new_fd() says that "Your
Packit ae235b
	code should call only g_io_channel_read()." but gio_channel_read() is
Packit ae235b
	deprecated
Packit ae235b
Packit ae235b
	* glib/giochannel.h: Fix a reference in a comment
Packit ae235b
	Patch by Hiroyuki Ikezoe 
Packit ae235b
Packit ae235b
2008-06-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 537635 – Corrections and improvements to
Packit ae235b
	g_time_val_from_iso8601()/g_time_val_to_iso8601()
Packit ae235b
Packit ae235b
	* glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather 
Packit ae235b
	than 1 when a fraction of a second is not specified
Packit ae235b
	(g_time_val_from_iso8601): calculate a fraction of a second
Packit ae235b
	correctly even in case it does not happen to consist of exactly 
Packit ae235b
	six digits; do not allow random data after the ISO 8601 string,
Packit ae235b
	only whitespace
Packit ae235b
	(make g_time_val_to_iso8601): support fractions of a second
Packit ae235b
	Patch by Peter Kjellerstedt
Packit ae235b
Packit ae235b
	* tests/testglib.c: Update to match
Packit ae235b
Packit ae235b
2008-06-16  Christian Persch  <chpe@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gbookmarkfile.c
Packit ae235b
	* glib/gconvert.c
Packit ae235b
	* glib/gfileutils.c
Packit ae235b
	* glib/giochannel.c
Packit ae235b
	* glib/giounix.c
Packit ae235b
	* glib/giowin32.c
Packit ae235b
	* glib/gkeyfile.c
Packit ae235b
	* glib/gregex.c
Packit ae235b
	* glib/gshell.c
Packit ae235b
	* glib/gspawn-win32.c
Packit ae235b
	* glib/gutf8.c: Use g_set_error_literal where appropriate. Patch from 
Packit ae235b
	bug #535947.
Packit ae235b
Packit ae235b
2008-06-16  Christian Persch  <chpe@gnome.org>
Packit ae235b
Packit ae235b
	* docs/reference/glib/glib-sections.txt:
Packit ae235b
	* glib/gerror.c:
Packit ae235b
	* glib/gerror.h:
Packit ae235b
	* glib/glib.symbols: Add g_set_error_literal. Bug #535947.
Packit ae235b
Packit ae235b
2008-06-16  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* glib/goption.c (dgettext_swapped): changed return value to
Packit ae235b
	const gchar* to fix warning.
Packit ae235b
Packit ae235b
2008-06-14  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gtestutils.c: Move docs around
Packit ae235b
Packit ae235b
	* glib/gchecksum.h: Add docs.
Packit ae235b
Packit ae235b
2008-06-13  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 538119 – glib's mainloop leaks a pipe to sub-processes
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_main_context_init_pipe): Don't leak the
Packit ae235b
	pipes to child processes. Patch by Thiago Macieira.
Packit ae235b
Packit ae235b
2008-06-13  Hans Breuer  <hans@breuer.org>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c : to get the default translation target on
Packit ae235b
	win32 use g_win32_get_locale() instead of setlocale(LS_MESSAGES,NULL)
Packit ae235b
	Fixes bug #538044
Packit ae235b
Packit ae235b
	* glib/makefile.msc.in gio/makefile.msc : updated
Packit ae235b
Packit ae235b
2008-06-12  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
	
Packit ae235b
	* === Released 2.17.2 ===
Packit ae235b
Packit ae235b
	* configure.in: Fix LINGUAS conversion
Packit ae235b
Packit ae235b
2008-06-12  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* === Released 2.17.1 ===
Packit ae235b
Packit ae235b
2008-06-12  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gtestutils.c: Documentation fixups
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/glist.c: Tiny doc fix
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	Bug 503071 – Application direction changes to right to left even if
Packit ae235b
	theres no translation
Packit ae235b
Packit ae235b
	* glib/gi18n-lib.h:
Packit ae235b
	* glib/glib.symbols:
Packit ae235b
	* glib/gstrfuncs.h:
Packit ae235b
	* glib/gstrfuncs.c:
Packit ae235b
	Add new functions g_dgettext() and g_dngettext().
Packit ae235b
Packit ae235b
	* glib/gutils.c (glib_gettext):
Packit ae235b
	* glib/gfileutils.c (g_format_size_for_display):
Packit ae235b
	* glib/goption.c (dgettext_swapped):
Packit ae235b
	Use the new functions.
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 502511 – g_assert_cmphex prints invalid message
Packit ae235b
Packit ae235b
	* glib/gtestutils.c (g_assertion_message_cmpnum): Actually print
Packit ae235b
	hex numbers in hex. 
Packit ae235b
	Pointed out by Tor Lillqvist
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 338162 – [PATCH] Use po/LINGUAS
Packit ae235b
Packit ae235b
	* po/LINGUAS: New file
Packit ae235b
	* po/Makefile.in.in: Dist LINGUAS
Packit ae235b
	* configure.in: Use po/LINUAS
Packit ae235b
	Patch by Thomas Andersen
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 314453 – Nautilus crashes in Solaris when browsing the attached
Packit ae235b
	file
Packit ae235b
Packit ae235b
	* glib/gunicollate.c (g_utf8_collate_key): Handle strfxrm returning
Packit ae235b
	-1 a little better. Problem pointed out by Takao Fujiwara
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 529321 – make check fails in glib/pcre
Packit ae235b
Packit ae235b
	* glib/pcre/Makefile.am: include Makefile.decl to fix 'make check'.
Packit ae235b
	Patch by Hiroyuki Ikezoe
Packit ae235b
Packit ae235b
2008-06-11  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c: g_win32_error_message() works fine for the
Packit ae235b
	Winsock WSA* error codes, too, so drop the winsock_error_message()
Packit ae235b
	function.
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 455215 – g_get_user_special_dir: no reference about
Packit ae235b
	G_USER_DIRECTORY_DOWNLOAD fallback to $HOME/Desktop if 
Packit ae235b
	xdg-user-dirs is not in use
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_user_special_dir): Improve the docs.
Packit ae235b
	Proposed by Luca Ferretti
Packit ae235b
Packit ae235b
2008-06-11  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 498732 – g_key_file_to_data cannot fail
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c (g_key_file_to_data): Improve the docs.
Packit ae235b
	Proposed by Christian Persch
Packit ae235b
Packit ae235b
2008-06-11  Ross Burton  <ross@burtonini.com>
Packit ae235b
Packit ae235b
	Bug 511367 - add g_file_make_directory_with_parents.
Packit ae235b
	
Packit ae235b
	* gio/gfile.c:
Packit ae235b
	* gio/gfile.h:
Packit ae235b
	* gio/gio.symbols: Add g_file_make_directory_with_parents.
Packit ae235b
	
Packit ae235b
2008-06-11  Sebastian Dröge  <slomo@circular-chaos.org>
Packit ae235b
Packit ae235b
	Bug 531900 – Use __builtin_offsetof for G_STRUCT_OFFSET if building
Packit ae235b
	with gcc 4.0 or newer
Packit ae235b
Packit ae235b
	* glib/gmacros.h: Use __builtin_offsetof for G_STRUCT_OFFSET if
Packit ae235b
	building with gcc 4.0 or newer.
Packit ae235b
Packit ae235b
2008-06-11  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c
Packit ae235b
	* glib/gspawn.c: Clarify what a "child pid" is in the doc
Packit ae235b
	comments.
Packit ae235b
Packit ae235b
2008-06-10  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 536158 – also bump GHashTable version when a node is removed via
Packit ae235b
	g_hash_table_iter_remove()/g_hash_table_iter_steal()
Packit ae235b
Packit ae235b
	* glib/ghash.c (iter_remove_or_steal): Bump the hash table 
Packit ae235b
	version. Patch by Jean-Yves Lefort
Packit ae235b
Packit ae235b
2008-06-07  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gstdio.c (g_access): Define X_OK if necessary (MSVC).
Packit ae235b
Packit ae235b
2008-06-02  Yevgen Muntyan  <muntyan@tamu.edu>
Packit ae235b
Packit ae235b
	Bug 531403 – g_utf8_collate broken on Mac.
Packit ae235b
Packit ae235b
	* glib/gunicollate.c:  (g_utf8_collate): use UCCompareTextDefault;
Packit ae235b
        (collate_key_to_string), (carbon_collate_key_with_collator),
Packit ae235b
        (carbon_collate_key), (carbon_collate_key_for_filename): new
Packit ae235b
        functions using Carbon API to get collate key for g_utf8_collate_key()
Packit ae235b
        and g_utf8_collate_key_for_filename();
Packit ae235b
        (g_utf8_collate_key), (g_utf8_collate_key_for_filename): use those.
Packit ae235b
Packit ae235b
2008-05-30  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	Bug 535628 - test/patterntest.c still includes gpattern.h
Packit ae235b
	directly.
Packit ae235b
Packit ae235b
	* tests/patterntest.c: don't include "glib/gpattern.h" directly.
Packit ae235b
	Patch from Hiroyuki Ikezoe.
Packit ae235b
Packit ae235b
2008-05-30  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 535625 - alias.h:2648: error: 'utime' undeclared here (not in
Packit ae235b
	a function)
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Move g_utime inside #if !defined(G_OS_UNIX)
Packit ae235b
	|| defined(G_STDIO_NO_WRAP_ON_UNIX).
Packit ae235b
Packit ae235b
2008-05-30  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem
Packit ae235b
	on Vista. X_OK was just ignored by access() in earlier Microsoft C
Packit ae235b
	libraries. (Which is fine as executability has little meaning on
Packit ae235b
	Windows.) The one on Vista returns an error if X_OK is passed.
Packit ae235b
Packit ae235b
2008-05-29  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gstdio.h
Packit ae235b
	* glib/gstdio.c: Add g_utime(). No need to include <sys/utime.h>
Packit ae235b
	in gstdio.h, just use a forward struct declaration.
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add it.
Packit ae235b
Packit ae235b
2008-05-29  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on
Packit ae235b
	Windows, and gcc warns: "wint_t is promoted to int when passed
Packit ae235b
	through ... (so you should pass int not wint_t to va_arg)." And
Packit ae235b
	indeed g_print("%C", L'a') crashes. So do as gcc says then.
Packit ae235b
Packit ae235b
2008-05-28  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* configure.in: add G_DISABLE_SINGLE_INCLUDES to CPPFLAGS
Packit ae235b
	globally.
Packit ae235b
Packit ae235b
	* glib/tests/option-context.c
Packit ae235b
	* glib/tests/testing.c
Packit ae235b
	* tests/testingbase64.c: don't include <glib/gtestutils.h>
Packit ae235b
Packit ae235b
2008-05-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* === Released 2.17.0 ===
Packit ae235b
Packit ae235b
2008-05-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* README.in: Add a note about G_DISABLE_SINGLE_HEADERS.
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2008-05-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/casemap.txt:
Packit ae235b
	* tests/casefold.txt: Update for Unicode 5.1
Packit ae235b
Packit ae235b
2008-05-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* Revert the patch for bug 527214 and related changes. GTimer
Packit ae235b
	is supposed to work without threads.
Packit ae235b
Packit ae235b
2008-05-27  simon.zheng  <simon.zheng@sun.com>
Packit ae235b
Packit ae235b
	* configure.in: Fix #533369. Check whether memeber statvfs.f_basetype 
Packit ae235b
        available or not.
Packit ae235b
Packit ae235b
2008-05-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/pcre/*: Update to PCRE 7.7
Packit ae235b
Packit ae235b
2008-05-26  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gchecksum.c: Add Since: tag to g_checksum_reset
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add g_checksum_reset
Packit ae235b
Packit ae235b
2008-05-25  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 534137 – Typo in g_spawn_async_with_pipes doc
Packit ae235b
Packit ae235b
	* glib/gspawn.c: Fix a typo in the docs, pointed out by Ted Percival.
Packit ae235b
Packit ae235b
2008-05-25  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 534319 - GLib's .pc files could use Libs.private
Packit ae235b
Packit ae235b
	* glib-2.0-uninstalled.pc.in
Packit ae235b
	* glib-2.0.pc.in
Packit ae235b
	* gmodule-2.0-uninstalled.pc.in
Packit ae235b
	* gmodule-2.0.pc.in
Packit ae235b
	* gmodule-export-2.0.pc.in
Packit ae235b
	* gmodule-no-export-2.0.pc.in: Move ICONV_LIBS and G_MODULE_LIBS
Packit ae235b
	to Libs.private.
Packit ae235b
Packit ae235b
2008-05-24  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gfileutils.c (g_file_open_tmp): Small documention addition.
Packit ae235b
Packit ae235b
2008-05-22 10:49:37  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gmacros.h: implement G_STMT_START and G_STMT_END with
Packit ae235b
	do{}while(0), which is believed to be widely portable, fixes:
Packit ae235b
	Bug 519026 - G_STMT_START/G_STMT_END test a non-existent preprocessor symbol
Packit ae235b
Packit ae235b
2008-05-20  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	Bug 501651 – Update glib/libcharset
Packit ae235b
Packit ae235b
	* configure.in:
Packit ae235b
	* glib/libcharset/Makefile.am:
Packit ae235b
	* glib/libcharset/README:
Packit ae235b
	* glib/libcharset/codeset.m4:
Packit ae235b
	* glib/libcharset/config.charset:
Packit ae235b
	* glib/libcharset/glibc21.m4:
Packit ae235b
	* glib/libcharset/libcharset-glib.patch:
Packit ae235b
	* glib/libcharset/libcharset.h:
Packit ae235b
	* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases),
Packit ae235b
	(_g_locale_charset_raw):
Packit ae235b
	* glib/libcharset/localcharset.h:
Packit ae235b
	* glib/libcharset/make-patch.sh:
Packit ae235b
	* glib/libcharset/ref-add.sin:
Packit ae235b
	* glib/libcharset/ref-del.sin:
Packit ae235b
	* glib/libcharset/update.sh:
Packit ae235b
	Update libcharset to the one shipped with libiconv-0.12.
Packit ae235b
Packit ae235b
2008-05-20  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	Bug 459905 – Bug in wcwidth data
Packit ae235b
	Bug 534085 – g_unichar_iswide_cjk() has a totally wrong table
Packit ae235b
	* glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
Packit ae235b
	Regenrate wide and wide_cjk tables from Unicode 5.1.0 data directly.
Packit ae235b
	Not using Markus Kuhn's tables anymore.
Packit ae235b
Packit ae235b
2008-05-20 14:31:18  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* reverted recent unapproved changes by Yair Hershkovitz, regarding:
Packit ae235b
	Bug 503071 – Application direction changes to right to left even if theres no translation.
Packit ae235b
Packit ae235b
2008-05-20  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Don't need memory barriers when using a non-gcc
Packit ae235b
	compiler on Windows either.
Packit ae235b
Packit ae235b
2008-05-19  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gdir.c: Include the dirent.h and wdirent.c from
Packit ae235b
	../build/win32/dirent directly here when compiling with MSVC and
Packit ae235b
	without HAVE_DIRENT_H.
Packit ae235b
Packit ae235b
2008-05-19  Hans Breuer  <hans@breuer.org>
Packit ae235b
Packit ae235b
	* glib/makefile.msc : added gi18n.c
Packit ae235b
Packit ae235b
2008-05-19  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/Makefile.am: #define HELPER_CONSOLE in
Packit ae235b
	gspawn-win32-helper-console.c
Packit ae235b
Packit ae235b
	* glib/gspawn-win32-helper.c: Compile a main() instead of
Packit ae235b
	WinMain() if HELPER_CONSOLE is defined. MSVC insists on a console
Packit ae235b
	application having a main().
Packit ae235b
Packit ae235b
2008-05-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 527214 – g_timer_elapsed() returns random values.
Packit ae235b
Packit ae235b
	* glib/gtimer.c (g_timer_new()):
Packit ae235b
	Print warning if g_thread_init() has not been called yet. 
Packit ae235b
	Patch by Mathias Hasselmann
Packit ae235b
Packit ae235b
2008-05-12  Jeffrey Stedfast  <fejj@novell.com>
Packit ae235b
Packit ae235b
	* glib/gchecksum.c (g_checksum_reset): New function to reset the
Packit ae235b
	state of a GChecksum.
Packit ae235b
	(g_checksum_new): Call g_checksum_reset() instead of duplicating
Packit ae235b
	code.
Packit ae235b
Packit ae235b
2008-05-17  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 528667 – Typos in testing module documentation
Packit ae235b
Packit ae235b
	* glib/gtestutils.c: Fix typos in the documentation.
Packit ae235b
Packit ae235b
2008-05-17  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c: Make debugging printout more compact and add
Packit ae235b
	more information to it. No changes to actual functionality.
Packit ae235b
Packit ae235b
	* glib/gmain.c: Improve debugging printouts. When
Packit ae235b
	G_MAIN_POLL_DEBUG is defined, we check for an environment variable
Packit ae235b
	of the same name to decide whether to print out debugging
Packit ae235b
	information or not. G_MAIN_POLL_DEBUG is always defined on Windows
Packit ae235b
	as there is more often a need to debug this stuff there. On Unix
Packit ae235b
	the definition has to be uncommented (or done on the compile
Packit ae235b
	command line).
Packit ae235b
Packit ae235b
2008-05-17  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* build: Don't include the "build" module with svn:externals any
Packit ae235b
	longer. Instead add the still relevant directories and files from
Packit ae235b
	it for real here in GLib.
Packit ae235b
Packit ae235b
2008-05-17  Yair Hershkovitz  <yairhr@gmail.com>
Packit ae235b
Packit ae235b
	* glib/glib.symbols:
Packit ae235b
	* glib/gi18n.h: Added g_disable_setlocale().
Packit ae235b
Packit ae235b
	* glib/gi18n.c: Added g_disable_setlocale() API to disable setting
Packit ae235b
	the locale in g_i18n_init(). Dont disable translations if textdomain
Packit ae235b
	was not set before calling g_i18n_init(). Dont disable translations if
Packit ae235b
	the locale is "C".
Packit ae235b
Packit ae235b
2008-05-16  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* config.h.win32.in: Update to match the configure-produced one.
Packit ae235b
Packit ae235b
2008-05-14  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gatomic.c: #include "config.h" before using G_ATOMIC_ARM.
Packit ae235b
Packit ae235b
2008-05-13  Kjartan Maraas  <kmaraas@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gi18n.c: #include <locale.h> to fix the build.
Packit ae235b
Packit ae235b
2008-05-12  Yair Hershkovitz  <yairhr@gmail.com>
Packit ae235b
Packit ae235b
	* glib/gi18n.c (g_i18n_init): Coding convention fix. Space between
Packit ae235b
	a function name and its opening parenthesis.
Packit ae235b
Packit ae235b
2008-05-12  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add g_i18n_init.
Packit ae235b
Packit ae235b
2008-05-12  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped
Packit ae235b
Packit ae235b
	* glib/gutils.c (load_user_special_dirs): When running on Vista or
Packit ae235b
	later, use SHGetKnownFolderPath() to get the FOLDERID_Downloads
Packit ae235b
	folder for G_USER_DIRECTORY_DOWNLOAD, and FOLDERID_Public for
Packit ae235b
	G_USER_DIRECTORY_PUBLIC_SHARE.
Packit ae235b
Packit ae235b
2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>
Packit ae235b
Packit ae235b
	Bug 503071 - Application direction changes to right to left even if
Packit ae235b
	theres no translation. 
Packit ae235b
Packit ae235b
	* glib/gi18n.c: g_i18n_init() for initializing the glib i18n,
Packit ae235b
	checking if a translation is available for the calling app. wrappers for
Packit ae235b
	gettext, dgettext and dpgettext to check first if the application
Packit ae235b
	should be translated.
Packit ae235b
Packit ae235b
	* glib/gi18n.h: symbol declaration for gettext wrappers.
Packit ae235b
Packit ae235b
	* glib/gi18n-lib.h: include gi18n.h instead of libintl.h.
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c: moved g_dpgettext() to glib/gi18n.c.
Packit ae235b
Packit ae235b
	* glib/gutils.c: use g_dgettext() instead of dgettext().
Packit ae235b
Packit ae235b
	* glib/glibintl.h: include gi18n.h.
Packit ae235b
Packit ae235b
	* glib.symbols: added gettext wrappers.
Packit ae235b
Packit ae235b
	* glib/Makefile.am: added gi18n.c.
Packit ae235b
Packit ae235b
2008-05-05  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* glib/glib.h: #define __GLIB_H_INSIDE__ around including
Packit ae235b
	everything.
Packit ae235b
Packit ae235b
	* glib/*.h: check for that define instead of __G_LIB_H__ if
Packit ae235b
	G_DISABLE_SINGLE_INCLUDES is defined.
Packit ae235b
Packit ae235b
	* glib/gdatasetprivate.h: #include <glib.h> instead of
Packit ae235b
	<glib/gdataset.h>
Packit ae235b
Packit ae235b
2008-05-02 13:24:13  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c: renamed GMainDispatch.dispatching_sources to be more
Packit ae235b
	descriptive and distinguishable within the source file.
Packit ae235b
Packit ae235b
2008-04-21  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 528752 - Win32 build and SSL not working
Packit ae235b
Packit ae235b
	This bug report against libsoup points out an issue with the use
Packit ae235b
	of bitfields in the GIOChannel struct that should really be taken
Packit ae235b
	care of here in GLib.
Packit ae235b
Packit ae235b
	* configure.in: Add Autoconf variable GLIB_EXTRA_CFLAGS which will
Packit ae235b
	contain the -mms-bitfields flag on Windows.
Packit ae235b
	
Packit ae235b
	* glib-2.0.pc.in: Add it to Cflags.
Packit ae235b
Packit ae235b
2008-04-21  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in
Packit ae235b
	* */Makefile.am: More work on enabling static building on
Packit ae235b
	Windows. When building statically: Also define
Packit ae235b
	GOBJECT_STATIC_COMPILATION in glibconfig.h so that also the
Packit ae235b
	variables in gparamspecs.h get declared without any
Packit ae235b
	dllimport/dllexport decorations. Don't install .def files which
Packit ae235b
	obviously have no meaning for static libraries. Don't create MS
Packit ae235b
	import libraries. Don't do any resource object files.
Packit ae235b
Packit ae235b
2008-04-18 17:40:58  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* tests/testglib.c: fixed gstdio.h include.
Packit ae235b
Packit ae235b
	* tests/Makefile.am: properly list testglib.c SOURCES.
Packit ae235b
Packit ae235b
2008-04-17  Emmanuele Bassi  <ebassi@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gchecksum.c:
Packit ae235b
	(sha_byte_reverse): Use the macro GLib provides for byte-swapping
Packit ae235b
	as it can be optimized.
Packit ae235b
	
Packit ae235b
	(g_checksum_update): Fix a compiler warning.
Packit ae235b
Packit ae235b
2008-04-15  Mukund Sivaraman  <muks@mukund.org>
Packit ae235b
Packit ae235b
	* gio/gfile.c: Fixed typos in gtk-doc comments.
Packit ae235b
Packit ae235b
2008-04-10  Mathias Hasselmann  <mathias@openismus.com>
Packit ae235b
Packit ae235b
	Bug 519137 – g_slice_dup macro needs cast for 64-bit platform
Packit ae235b
Packit ae235b
	* glib/gslice.h (g_slice_copy): Apply type casts needed
Packit ae235b
	  for proper compilation on 64-bit platforms.
Packit ae235b
Packit ae235b
2008-04-09  Federico Mena Quintero  <federico@novell.com>
Packit ae235b
Packit ae235b
	* glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak
Packit ae235b
	the apps_by_name hash table if the applications list is empty.
Packit ae235b
Packit ae235b
2008-04-08  Behdad Esfahbod  <behdad@gnome.org>
Packit ae235b
Packit ae235b
	* glib/gunicode.h: Add ISO 15924 code comments for new scripts.
Packit ae235b
Packit ae235b
2008-04-07  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 491554 – Update to Unicode 5.1.0
Packit ae235b
Packit ae235b
	* glib/gunichartables.h:
Packit ae235b
	* glib/gunicode.h:
Packit ae235b
	* glib/gunibreak.h:
Packit ae235b
	* glib/gmirroringtable.h:
Packit ae235b
	* glib/gscripttable.h:
Packit ae235b
	* glib/gen-script-table.pl: Update to Unicode 5.1.0. Patch by
Packit ae235b
	Behdad Esfahbod
Packit ae235b
Packit ae235b
2008-04-07  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 526619 – make test-report crash
Packit ae235b
Packit ae235b
	* glib/gtester.c: Allocate enough space for argv. Patch by
Packit ae235b
	 Hiroyuki Ikezoe
Packit ae235b
Packit ae235b
2008-04-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c: Make the fix for bug 448943 work.
Packit ae235b
Packit ae235b
2008-04-04  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Make sure we don't build both shared and static at
Packit ae235b
	the same time on Windows. Put a #define for
Packit ae235b
	GLIB_STATIC_COMPILATION into glibconfig.h in the static case, so
Packit ae235b
	that the use of variables from libglib gets the GLIB_VAR macro in
Packit ae235b
	gtypes.h automatically correct. This means that a shared and
Packit ae235b
	static build of GLib can't be installed in the same prefix on
Packit ae235b
	Windows, which sucks a bit. But with variables in the GLib API,
Packit ae235b
	there isn't much we can do otherwise. The alternative would be to
Packit ae235b
	force the developer who compiles against a statically built GLib
Packit ae235b
	to use -DGLIB_STATIC_COMPILATION.
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Define GLIB_STATIC_COMPILATION here also,
Packit ae235b
	if needed.
Packit ae235b
Packit ae235b
2008-04-03  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Don't enforce shared library build only on
Packit ae235b
	Windows. It might well make sense to build static libraries in
Packit ae235b
	some use cases.
Packit ae235b
Packit ae235b
	* glib/gutils.c: Don't compile the DllMain if building libglib
Packit ae235b
	statically. Also in that case don't return NULL from
Packit ae235b
	_glib_get_installation_directory(), but return the installation
Packit ae235b
	directory of the program's .exe file.
Packit ae235b
Packit ae235b
2008-04-03  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 525972 - UCS-4 not in the new win_iconv implementation
Packit ae235b
Packit ae235b
	* glib/win_iconv.c: Add UCS-4. Also add spelling of UCS-2 without
Packit ae235b
	the hyphen.
Packit ae235b
Packit ae235b
2008-04-03  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 448943 – g_timeout_add_seconds() problems
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_timeout_set_expiration): Prevent expiration
Packit ae235b
	time going negative. Reported by Cody Russell, analyzed by
Packit ae235b
	Olivier Crete, patch by Sjoerd Simons.
Packit ae235b
Packit ae235b
2008-04-03  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 525674 – A typo in gmarkup.c
Packit ae235b
Packit ae235b
	* glib/gmarkup.c (g_markup_parse_context_get_element_stack): Fix
Packit ae235b
	the docs, reported by Hiroyuki Ikezoe
Packit ae235b
Packit ae235b
2008-04-03  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Bug 525732 – Error in documentation for g_list_first
Packit ae235b
Packit ae235b
	* glib/glist.c (g_list_first): Fix the docs, reported by 
Packit ae235b
	Salvatore Iovene
Packit ae235b
Packit ae235b
2008-04-02  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 524314 - g_convert() on Win32 implicitly converts full width
Packit ae235b
	alphanumerics into half width
Packit ae235b
	
Packit ae235b
	* glib/win_iconv.c: Update from Yukihiro Nakadaira. Use
Packit ae235b
	WC_NO_BEST_FIT_CHARS flag for WideCharToMultiByte() unless the
Packit ae235b
	//translit flag was suffixed to the codeset name.
Packit ae235b
Packit ae235b
	* glib/gconvert.c: Include win_iconv.c earlier so that its
Packit ae235b
	definition of WINVER before it includes <windows.h> is used.
Packit ae235b
Packit ae235b
2008-03-31  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_poll): Improve fix for #525192 below: Use
Packit ae235b
	SleepEx() so that the sleep is alertable. Thanks to John
Packit ae235b
	Ehresman.
Packit ae235b
Packit ae235b
2008-03-31  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib/gwin32.c
Packit ae235b
	(g_win32_get_package_installation_directory_of_module): Fix Cygwin
Packit ae235b
	breakage. Patch by Lieven van der Heide.
Packit ae235b
Packit ae235b
2008-03-31 10:39:17  Tim Janik  <timj@imendio.com>
Packit ae235b
Packit ae235b
	* glib/gutils.h: reapply inlining fix from r6333 to fix:
Packit ae235b
	Bug 522292 – Gives warnings in glib/gutils.h with GCC in C99 mode
Packit ae235b
	and again:
Packit ae235b
	Bug 315437 – extern inline -> static inline
Packit ae235b
Packit ae235b
2008-03-31  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 525192 - 100% CPU if run main loop with no IO sources
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_poll) [Win32]: Patch by Neil Roberts.
Packit ae235b
Packit ae235b
2008-03-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gtester.c: Don't use ARG_MAX.  (#522335, patch by 
Packit ae235b
	Samuel Thibault, adapted by Sebastian Dröge)
Packit ae235b
Packit ae235b
2008-03-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmacros.h: Add macros wrapping the gcc alloc_size 
Packit ae235b
	function attribute.  (#523019, Rodrigo Moya)
Packit ae235b
Packit ae235b
	* glib/gmem.h: 
Packit ae235b
	* glib/gslice.h:
Packit ae235b
	* glib/gstrfuncs.h: Use the new attribute where appropriate.
Packit ae235b
Packit ae235b
2008-03-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/glibintl.h:
Packit ae235b
	* glib/gstrfuncs.c:
Packit ae235b
	* glib/gutils.c: Simple fixes to help building GLib on 
Packit ae235b
	embedded systems without NLS.  (#524350, Peter Kjellerstedt)
Packit ae235b
Packit ae235b
2008-03-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
Packit ae235b
	(#525060, Arfrever Frehtes Taifersar Arahesis)
Packit ae235b
Packit ae235b
2008-03-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
	
Packit ae235b
	* glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
Packit ae235b
	by G_STRFUNC.  (#524344, Peter Kjellerstedt)
Packit ae235b
Packit ae235b
2008-03-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gtestutils.c: Fix a doc typo. (#524742, Hiroyuki Ikezoe)
Packit ae235b
Packit ae235b
2008-03-22  Claudio Saavedra  <csaavedra@gnome.org>
Packit ae235b
Packit ae235b
	Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
Packit ae235b
	other optimizations
Packit ae235b
Packit ae235b
	* glib/gbookmarkfile.c: (bookmark_metadata_dump),
Packit ae235b
	(bookmark_item_dump), (g_bookmark_file_dump), (expand_exec_line):
Packit ae235b
	Replace all calls to g_string_append_printf with g_strconcat () or
Packit ae235b
	g_string_append () where appropriate, to reduce the file creation time.
Packit ae235b
	Also, use g_string_sized_new () with an appropriate buffer size instead
Packit ae235b
	of g_string_new (NULL), to reduce time spent in memory reallocation.
Packit ae235b
	(#523877, Claudio Saavedra, Emmanuele Bassi)
Packit ae235b
Packit ae235b
2008-03-22  Emmanuele Bassi  <ebassi@gnome.org>
Packit ae235b
Packit ae235b
	Bug 518160 - replace two g_strdup_printf calls in GBookmarkFile
Packit ae235b
Packit ae235b
	* glib/gbookmarkfile.c (is_element_full): Compare the fragments
Packit ae235b
	instead of building two strings; this avoids two g_strdup_printf()
Packit ae235b
	per namespaced element enountered. (#518160, Felix Riemann)
Packit ae235b
Packit ae235b
2008-03-20  Alexander Larsson  <alexl@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in:
Packit ae235b
	Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
Packit ae235b
	Patch from ephraim_owns@hotmail.com
Packit ae235b
Packit ae235b
2008-03-19  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)
Packit ae235b
Packit ae235b
	* glib/win_iconv.c: Fixes for code page 54936 (GB18030)
Packit ae235b
	(mbtowc_flags): New function. Check if a code page is one of those
Packit ae235b
	for which the dwFlags parameter to MultiByteToWideChar() must be
Packit ae235b
	zero. Return 0 or MB_ERR_INVALID_CHARS.
Packit ae235b
	(mbcs_mblen): New function for multi-byte (more than two bytes for
Packit ae235b
	some characters) code pages. Only handles 54936 for now.
Packit ae235b
	(make_csconv): Use it for 54936.
Packit ae235b
	(kernel_mbtowc): Use mbtowc_flags().
Packit ae235b
Packit ae235b
2008-03-18  Sebastian Dröge  <slomo@circular-chaos.org>
Packit ae235b
Packit ae235b
	Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
Packit ae235b
Packit ae235b
	* glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
Packit ae235b
	if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
Packit ae235b
	gcc version prior to 4.3 no correct C99-inline was implemented which
Packit ae235b
	has semantic differences to GNU inline.
Packit ae235b
Packit ae235b
2008-03-16  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Don't bother defining Autoconf variables for
Packit ae235b
	glib.def, gmodule.def, gobject.def and gthread.def when this can
Packit ae235b
	be handled easily in */Makefile.am which are the only files that
Packit ae235b
	use them. Remove also TESTGMODULE_EXP which isn't used at all.
Packit ae235b
Packit ae235b
	* glib/Makefile.am: Corrsponding change.
Packit ae235b
	
Packit ae235b
2008-03-14  Michael Natterer  <mitch@imendio.com>
Packit ae235b
Packit ae235b
	* glib/*.h: make it possible to disable single-file includes by
Packit ae235b
	defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
Packit ae235b
	Approved by Tim Janik.
Packit ae235b
Packit ae235b
	* glib/glib.h: include <glib/gslice.h>.
Packit ae235b
Packit ae235b
	* glib/gi18n.h
Packit ae235b
	* glib/gi18n-lib.h
Packit ae235b
	* glib/gprintf.h: include <glib.h> so the above works when these
Packit ae235b
	files are included without including <glib.h> first.
Packit ae235b
Packit ae235b
2008-03-14  Alexander Larsson  <alexl@redhat.com>
Packit ae235b
Packit ae235b
        * configure.in:
Packit ae235b
	Add required includes for f_fstypename member check.
Packit ae235b
Packit ae235b
2008-03-14  Alexander Larsson  <alexl@redhat.com>
Packit ae235b
Packit ae235b
        * configure.in:
Packit ae235b
	Added checks for FEN (Solaris  File Event Notification)
Packit ae235b
Packit ae235b
2008-03-13  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* glib-zip.in: Add lib/gio-2.0.lib and lib/gio-2.0.def.
Packit ae235b
Packit ae235b
2008-03-12  Tor Lillqvist  <tml@novell.com>
Packit ae235b
Packit ae235b
	* configure.in: Expand gio/win32/Makefile.
Packit ae235b
Packit ae235b
2008-03-12  Matthias Clasen <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version to 2.17.0
Packit ae235b
Packit ae235b
	* ChangeLog.pre-2-16: rotate ChangeLog
Packit ae235b
	
Packit ae235b
	* === branch for 2.16 ===