Blame ChangeLog.pre-2-6

Packit ae235b
2004-12-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* === Released 2.6.0 ===
Packit ae235b
	
Packit ae235b
2004-12-15  Alexander Larsson  <alexl@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gconvert.c: (g_filename_display_basename):
Packit ae235b
	Fix spelling
Packit ae235b
	Add g_return_val_if_fail.
Packit ae235b
	
Packit ae235b
	* glib/glib.symbols:
Packit ae235b
	Add g_filename_display_basename
Packit ae235b
Packit ae235b
2004-12-15  Alexander Larsson  <alexl@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gconvert.[ch]:
Packit ae235b
	Add g_filename_display_basename.
Packit ae235b
Packit ae235b
2004-12-14  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* README.in: Updates
Packit ae235b
Packit ae235b
	* NEWS: Updates.
Packit ae235b
Packit ae235b
	* configure.in: Set version to 2.6.0
Packit ae235b
Packit ae235b
2004-12-13  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* NEWS: Update.
Packit ae235b
Packit ae235b
	* glib/glib.symbols
Packit ae235b
	* glib/gstdio.[ch]: Add g_rmdir().
Packit ae235b
Packit ae235b
2004-12-13  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2004-12-12  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/glib.symbols
Packit ae235b
	* glib/gconvert.[ch]: Implement Windows DLL ABI stability also for
Packit ae235b
	g_filename_{to,from}_uri().
Packit ae235b
Packit ae235b
2004-12-11  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gstdio.c (g_rename, g_unlink, g_remove): Add doc comments
Packit ae235b
	about Windows restrictions on renaming and removing.
Packit ae235b
Packit ae235b
	(g_remove): Mimic POSIX remove() on Windows: Try also to rmdir if
Packit ae235b
	removal as a file fails. Document this.
Packit ae235b
Packit ae235b
	* glib/gstdio.h: Clarify comment about file name encoding on
Packit ae235b
	Windows.
Packit ae235b
Packit ae235b
	* glib/gspawn-win32.c: Fix #157255. Also some refactoring of this
Packit ae235b
	still very ugly source file.
Packit ae235b
Packit ae235b
2004-12-09  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/goption.c (print_help): Don't print help options
Packit ae235b
	if the options of a specific group have been 
Packit ae235b
	requested.  (#160645, Glynn Foster)
Packit ae235b
Packit ae235b
2004-12-07  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_language_names): Update the returned
Packit ae235b
	value after locale changes.  (#160271, Christian Persch)
Packit ae235b
	(_g_utils_thread_init): Initialize the language name cache
Packit ae235b
	before going threaded.
Packit ae235b
Packit ae235b
	* glib/gthread.c (g_thread_init_glib): Call _g_utils_thread_init().
Packit ae235b
Packit ae235b
	* glib/gthreadinit.h: Add _g_utils_thread_init().
Packit ae235b
Packit ae235b
2004-12-06  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
Packit ae235b
	memory: Unlock the channel's mutex before unrefing the channel.
Packit ae235b
Packit ae235b
2004-12-06  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Remove a no longer needed hack for 
Packit ae235b
	libtool < 1.5.2.  (#100697, Owen Taylor, Sebastian Wilhelmi)
Packit ae235b
Packit ae235b
2004-12-05  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/glib.symbols
Packit ae235b
	* glib/gwin32.[hc]: Implement DLL ABI stability also for
Packit ae235b
	g_win32_get_package_installation_directory()) and
Packit ae235b
	g_win32_get_package_installation_subdirectory().
Packit ae235b
Packit ae235b
	* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
Packit ae235b
	binary compatibilty entries from the import library. They aren't
Packit ae235b
	used by newly compiled code, so no need to have them in the import
Packit ae235b
	library. (The "PRIVATE" keyword in the .def file is supposed to do
Packit ae235b
	this, but not implemented in the GNU linker yet.)
Packit ae235b
Packit ae235b
2004-12-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gqueue.c (g_queue_link_index): Return -1 if queue is 
Packit ae235b
	NULL.  (#159530, Philippe Blain)
Packit ae235b
Packit ae235b
2004-12-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version.
Packit ae235b
Packit ae235b
	* === Released 2.5.7 ===
Packit ae235b
	
Packit ae235b
2004-12-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Protect the the various push/pop allocator
Packit ae235b
	functions by #ifndef DISABLE_MEM_POOLS.  (#160215, Frederic Crozat)
Packit ae235b
Packit ae235b
	* glib/makegalias.pl: Support #ifndef'ed sections.
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_system_config_dirs): Don't forget to 
Packit ae235b
	initialize g_system_config_dirs.  (#160213, Frederic Crozat)
Packit ae235b
Packit ae235b
Wed Dec  1 17:04:37 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/gstring.h (g_string_append_c_inline): actually enable (and
Packit ae235b
	fix up the length test).
Packit ae235b
Packit ae235b
2004-11-30  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/Makefile.am (glib.def): gcc -E complains "linker input file
Packit ae235b
	unused because linking not done" if told to preprocess the
Packit ae235b
	glib.symbols file. Use '-' and redirection to pass it as standard
Packit ae235b
	input instead.
Packit ae235b
Packit ae235b
2004-11-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2004-11-30  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gspawn-win32-helper.c (WinMain): Also check errno to detect
Packit ae235b
	true errors from spawn*(). (#157258, reported by Bruce Hochstetler)
Packit ae235b
Packit ae235b
2004-11-29  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmacros.h (G_GNUC_MALLOC): Define empty for gcc 2.95.
Packit ae235b
Packit ae235b
	* glib/gmarkup.c (unescape_text_state_after_charref_hash): 
Packit ae235b
	Avoid a strndup() here, noticed by Morten Welinder.
Packit ae235b
Packit ae235b
2004-11-29  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmarkup.c: Remove leftover noinline attributes.
Packit ae235b
	(is_name_start_char, is_name_char): Avoid possible reads
Packit ae235b
	beyond the end of g_ascii_table.
Packit ae235b
Packit ae235b
	* glib/Makefile.am: Use the perl found by configure.  (#149826,
Packit ae235b
	Morten Welinder)
Packit ae235b
Packit ae235b
Sun Nov 28 13:13:56 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.
Packit ae235b
Packit ae235b
	* tests/utf8-validate.c: cast pointer math to gint for error print
Packit ae235b
	message.
Packit ae235b
Packit ae235b
Sun Nov 28 12:07:29 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* tests/utf8-validate.c: minor comment fix.
Packit ae235b
Packit ae235b
2004-11-28  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gconvert.h:
Packit ae235b
	* glib/gkeyfile.h:
Packit ae235b
	* glib/gmem.h: 
Packit ae235b
	* glib/gstrfuncs.h:
Packit ae235b
	* glib/gunicode.h:
Packit ae235b
	* glib/gutils.h: Mark functions with G_GNUC_MALLOC when appropriate.
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add G_GNUC_MALLOC annotations.
Packit ae235b
Packit ae235b
	* glib/gmacros.h (G_GNUC_MALLOC): Add a macro for 
Packit ae235b
	__attribute__((__malloc__)).  (#61780)
Packit ae235b
Packit ae235b
2004-11-28  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gutils.[hc]
Packit ae235b
	* glib/glib.symbols: [Win32] Make also g_get_user_name() and
Packit ae235b
	g_get_real() name return UTF-8. As for the similar changes to fix
Packit ae235b
	#101792, for DLL ABI stability we use preprocessor defines to get
Packit ae235b
	the new UTF-8 versions, and keep the old names for versions
Packit ae235b
	returning strings in the system codepage.
Packit ae235b
Packit ae235b
	Fix g_get_tmp_dir() and g_get_home_dir() to actually return UTF-8
Packit ae235b
	as was intended in the fix for bug #101792. (#159664, noticed by
Packit ae235b
	Robert Ɩgren)
Packit ae235b
Packit ae235b
2004-11-28  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmarkup.c: Optimizations; don't scan the entire text
Packit ae235b
	in find_current_text_end(), split unescape_text() into multiple
Packit ae235b
	functions.  (#159001, Havoc Pennington)
Packit ae235b
Packit ae235b
2004-11-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gspawn.c (g_spawn_async_with_pipes): Update the @flags
Packit ae235b
	documentation with references to GChildWatch and 
Packit ae235b
	g_spawn_close_pid().  (#136255, noted by Owen Taylor)
Packit ae235b
Packit ae235b
2004-11-26  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c (g_key_file_parse_value_as_string): 
Packit ae235b
	Don't access invalid memory address if p wasn't 
Packit ae235b
	increased.  (#159557, Frederic Crozat)
Packit ae235b
Packit ae235b
2004-11-25  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/strtod-test.c (main): Add a testcase for the previous fix.
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_ascii_strtod): Make it work again for floats
Packit ae235b
	starting with a decimal point, like .75  (#156421, Hans Breuer)
Packit ae235b
Packit ae235b
Thu Nov 25 14:02:43 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/abicheck.sh: filter out G_GNUC stuff when doing the compare.
Packit ae235b
Packit ae235b
	* glib/gmessages.c (g_assert_warning): call abort() at the end, so
Packit ae235b
	gcc doesn't warn.
Packit ae235b
Packit ae235b
2004-11-25  Kjartan Maraas  <kmaraas@gnome.org>
Packit ae235b
Packit ae235b
	* configure.in: Add Ā«nbĀ» to ALL_LINGUAS.
Packit ae235b
Packit ae235b
2004-11-24  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_error_message,
Packit ae235b
	get_package_directory_from_module,
Packit ae235b
	g_win32_get_package_installation_directory,
Packit ae235b
	g_win32_get_package_installation_subdirectory): Use wide character
Packit ae235b
	API when available. Document that string parameters and return
Packit ae235b
	values are in UTF-8.
Packit ae235b
Packit ae235b
2004-11-24  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutf8.c: Replace g_utf8_validate() with an
Packit ae235b
	optimized version, and clarify the docs a bit.  (#159131,
Packit ae235b
	Owen Taylor)
Packit ae235b
Packit ae235b
	* tests/Makefile.am (test_programs): Add utf8-validate.
Packit ae235b
Packit ae235b
	* tests/utf8-validate.c: Unit tests for g_utf8_validate().
Packit ae235b
Packit ae235b
2004-11-23  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/goption.h: Don't mark g_option_error_quark() as const,
Packit ae235b
	to be consistent with all the other error_quark functions. 
Packit ae235b
	(technically they are const, but since these are called only
Packit ae235b
	in error paths, giving the compiler better optimization 
Packit ae235b
	opportunities doesn't matter much)
Packit ae235b
Packit ae235b
2004-11-23  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Fix a problem with the PLT reduction changes which caused the
Packit ae235b
	internal aliases to lose all attributes.
Packit ae235b
	
Packit ae235b
	* glib/glib.symbols: Add attribute annotations.
Packit ae235b
	* glib/makegalias.pl: Keep attribute annotations, but strip PRIVATE.
Packit ae235b
	* glib/Makefile.am (glib.def): Strip attribute annotations, but keep 
Packit ae235b
	PRIVATE.
Packit ae235b
Packit ae235b
2004-11-21  Hans Breuer  <hans@breuer.org>
Packit ae235b
Packit ae235b
	* **/makefile.msc : updated
Packit ae235b
Packit ae235b
2004-11-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* m4macros/glib-2.0.m4 (AM_PATH_GLIB_2_0): Support gmodule-no-export.
Packit ae235b
Packit ae235b
	* Makefile.am (EXTRA_DIST): 
Packit ae235b
	* configure.in (AC_CONFIG_FILES): Add gmodule-no-export-2.0.pc.in 
Packit ae235b
Packit ae235b
	* gmodule-no-export-2.0.pc.in: Add a variants of gmodule-2.0.pc.in
Packit ae235b
	which doesn't add -Wl,--export-dynamic, since Pango or GTK+ don't
Packit ae235b
	need it.  (#125627, Owen Taylor)
Packit ae235b
Packit ae235b
2004-11-17  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Define S_ISREG() on windows, since it
Packit ae235b
	is not present there.  (#158469, Kazuki IWAMOTO)
Packit ae235b
Packit ae235b
2004-11-15  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
Packit ae235b
	S_IFMT and S_IFREG are apprarently missing on some systems (they 
Packit ae235b
	are SUS, but not Posix).  (#158263)
Packit ae235b
Packit ae235b
2004-11-12  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version.
Packit ae235b
Packit ae235b
	* === Released 2.5.6 ===
Packit ae235b
	
Packit ae235b
2004-11-11  J. Ali Harlow  <ali@juiblex.co.uk>
Packit ae235b
Packit ae235b
	* gobject/Makefile.am:
Packit ae235b
	* glib/Makefile.am (gtk.def): Use embedded tab rather than '\t'
Packit ae235b
	escape sequence. (#157951)
Packit ae235b
Packit ae235b
2004-11-10  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gconvert.c (g_get_filename_charsets): Fix typo in doc
Packit ae235b
	comment.
Packit ae235b
Packit ae235b
2004-11-10  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
Mon Nov  8 10:45:50 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/gasyncqueue.c
Packit ae235b
	* glib/ghook.c
Packit ae235b
	* glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
Packit ae235b
Packit ae235b
	* glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
Packit ae235b
	return the passed in pointer.
Packit ae235b
Packit ae235b
2004-11-08  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
Packit ae235b
	and G_TRAVERSE_NON_LEAVES as alternative names for 
Packit ae235b
	G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
Packit ae235b
	grammatically brutal.  (#138853, Morten Welinder)
Packit ae235b
	
Packit ae235b
	* glib/gasyncqueue.[hc]:
Packit ae235b
	* glib/ghook.[hc]: 
Packit ae235b
	* glib/gmain.[hc]:
Packit ae235b
	* glib/giochannel.[hc]: Make g_io_channel_ref(), 
Packit ae235b
	g_main_context_ref(), g_hook_ref(), g_async_queue_ref()
Packit ae235b
	return the passed in pointer. (#151663, Manish Singh)
Packit ae235b
Packit ae235b
	* glib/gmain.c: Initialize child_watch_count to 1, so 
Packit ae235b
	that we don't miss the very first child if it exits 
Packit ae235b
	before we set up the child watch. In that case we had 
Packit ae235b
	previously source->count == child_watch_count == 0, 
Packit ae235b
	causing g_child_watch_check() to skip the waitpid() 
Packit ae235b
	call.  (#154827, Gustavo Carneiro)
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_child_watch_source_init_single) 
Packit ae235b
	(g_child_watch_source_init_multi_threaded): Use sigaction()
Packit ae235b
	instead of signal().  (#136867, Jonas Jonsson, patch by
Packit ae235b
	Archana Shah)
Packit ae235b
Packit ae235b
2004-11-07  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_any_init): Work around an bug
Packit ae235b
	in Mac OS < 10.3.  (#156446, Dave MacLachlan)
Packit ae235b
Packit ae235b
2004-11-06  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL
Packit ae235b
	define to the same place where it is in a configure-generated
Packit ae235b
	glibconfig.h
Packit ae235b
Packit ae235b
2004-11-05  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/strtod-test.c: Portability fixes and extra sanity
Packit ae235b
	checks.  (#157453, Morten Welinder)
Packit ae235b
Packit ae235b
2004-11-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_ascii_strtod): Handle numbers like
Packit ae235b
	1e1, nan, -infinity. Also try harder to preserve errno.  
Packit ae235b
	(#156421, Morten Welinder)
Packit ae235b
Packit ae235b
	* tests/strtod-test.c: Add testcases.
Packit ae235b
Packit ae235b
2004-11-04  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/goption.h (enum GOptionFlags): Add G_OPTION_FLAG_REVERSE,
Packit ae235b
	to reverse the sense of a G_OPTION_ARG_NONE (boolean) option.
Packit ae235b
Packit ae235b
	* glib/goption.c (parse_arg): Obey the above flag.
Packit ae235b
Packit ae235b
	* glib/gconvert.c (g_filename_display_name): Document that the
Packit ae235b
	result is guaranteed to be non-NULL.
Packit ae235b
Packit ae235b
	* glib/gfileutils.c (get_contents_stdio, get_contents_regfile,
Packit ae235b
	get_contents_posix, get_contents_win32, g_file_open_tmp,
Packit ae235b
	g_file_read_link): Use g_filename_display_name() for error
Packit ae235b
	messages.
Packit ae235b
	(g_mkstemp): Document that the template should be in the GLib file
Packit ae235b
	name encoding.
Packit ae235b
	(g_file_open_tmp): Ditto. Also document that the actual name
Packit ae235b
	returned is also in the GLib file name encoding.
Packit ae235b
Packit ae235b
2004-11-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gconvert.c (g_filename_display_name): New function 
Packit ae235b
	to convert a filename to a UTF-8 string for display 
Packit ae235b
	purposes.  (requested by Alex Larsson)
Packit ae235b
	
Packit ae235b
	* glib/gconvert.c (g_get_filename_charsets): New function 
Packit ae235b
	to return the encodings which are tried when converting a 
Packit ae235b
	filename to UTF-8. (#151465, FranƧois GagnƩ)
Packit ae235b
Packit ae235b
2004-11-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version
Packit ae235b
Packit ae235b
	* === Released 2.5.5 ===
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
Packit ae235b
2004-11-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add new functions.
Packit ae235b
Packit ae235b
	* glib/gconvert.c: Fix doc comment for 
Packit ae235b
	g_get_filename_charsets().
Packit ae235b
Packit ae235b
	* glib/gconvert.c (g_filename_display_name): New function to
Packit ae235b
	convert a filename to a UTF-8 string for display purposes.
Packit ae235b
	(g_get_filename_charsets): New function to return the 
Packit ae235b
	encodings which are tried when converting a filename to 
Packit ae235b
	UTF-8.
Packit ae235b
Packit ae235b
	* glib/goption.c (g_option_context_parse): Document that
Packit ae235b
	this function may not return.
Packit ae235b
Packit ae235b
2004-11-01  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.h: Make gtkdoc-scan happy by removing spaces
Packit ae235b
	between gchar and *.
Packit ae235b
Packit ae235b
2004-11-01  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gstdio.c (g_lstat): Implement correctly also on Unix
Packit ae235b
	systems without lstat(). (#157038, Morten Welinder)
Packit ae235b
Packit ae235b
2004-11-01  Ray Strode <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c:
Packit ae235b
	(g_key_file_get_locale_string): don't return an
Packit ae235b
	error if we come across a value with invalid utf8 or
Packit ae235b
	if we don't find a translated string. Just fallback
Packit ae235b
	to the untranslated string (Mark McLoughlin, bug
Packit ae235b
	#156790).
Packit ae235b
	
Packit ae235b
	* glib/gkeyfile.c:
Packit ae235b
	(g_key_file_init), (g_key_file_clear): track the
Packit ae235b
	actual start GKeyFileGroup rather than just its name
Packit ae235b
	(g_key_file_parse_group): allow add_group() to
Packit ae235b
	update the start group.
Packit ae235b
	(g_key_file_remove_group_node): update the start
Packit ae235b
	group if it gets removed (Mark McLoughlin, bug
Packit ae235b
	#156790).
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c:
Packit ae235b
	(g_key_file_parse_string_as_value): Don't escape
Packit ae235b
	tabs and spaces in the middle of key values.
Packit ae235b
Packit ae235b
2004-11-01  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gconvert.c:
Packit ae235b
	* glib/gdebug.h
Packit ae235b
	* glib/gutils.c
Packit ae235b
	* gobject/gtype.c
Packit ae235b
	* gthread/gthread-posix.c
Packit ae235b
	* tests/timeloop-closure.c
Packit ae235b
	* tests/timeloop.c: Fix sparse warnings.  (#157014, Kjartan Maraas)
Packit ae235b
Packit ae235b
2004-11-01  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/goption.c: Documentation updates.
Packit ae235b
Packit ae235b
	Handle conflicts between options in different groups. (#156808)
Packit ae235b
	
Packit ae235b
	* glib/goption.c (g_option_context_parse): When a long option does not
Packit ae235b
	match exactly, try to parse it as --group-option.
Packit ae235b
	(g_option_context_add_group): Warn if a group name conflict occurs.
Packit ae235b
Packit ae235b
	* glib/goption.c (print_help): Print out the effective options, ie 
Packit ae235b
	don't print shadowed short options, and for long options print
Packit ae235b
	--group-option instead of --option if appropriate.
Packit ae235b
Packit ae235b
2004-10-31  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gwin32.c: Add bits of markup to g_win32_get_windows_version()
Packit ae235b
	docs.
Packit ae235b
Packit ae235b
2004-10-31  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gwin32.c: Document g_win32_get_windows_version().
Packit ae235b
Packit ae235b
	* glib/gstdio.[ch]: Add g_lstat().
Packit ae235b
Packit ae235b
2004-10-29  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/goption.c: Doc additions.
Packit ae235b
Packit ae235b
	* glib/goption.c (parse_arg): Convert filenames to UTF-8 on
Packit ae235b
	Windows.
Packit ae235b
Packit ae235b
2004-10-29  Hans Breuer  <hans@breuer.org>
Packit ae235b
Packit ae235b
	* glibconfig.h */makefile.msc.in : updated [and finally fixed my
Packit ae235b
	script to produce ready to go de-in(ed) files, w/o autotools]
Packit ae235b
Packit ae235b
	* */*.rc.in : updated copyrights to 2004
Packit ae235b
Packit ae235b
	* glib/gutils.c : some CSIDL_* defines lacking from older SDK;
Packit ae235b
	use the same fallback mecahnism as on *NIX where ever applicable
Packit ae235b
Packit ae235b
2004-10-29  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/option-test.c: Add tests for the handling of
Packit ae235b
	non-option arguments, "--" and G_OPTION_REMAINING.
Packit ae235b
Packit ae235b
	* glib/goption.[hc]: #define G_OPTION_REMAINING, which is
Packit ae235b
	a special long option name, which can be used for an option
Packit ae235b
	in the main group which collects the non-option arguments.
Packit ae235b
	It must be of type G_OPTION_ARG_STRING_ARRAY or 
Packit ae235b
	G_OPTION_ARG_FILENAME_ARRAY. If the main group doesn't contain
Packit ae235b
	an option whose name is G_OPTION_REMAINING, the non-option
Packit ae235b
	arguments are left behind in argv as before.
Packit ae235b
Packit ae235b
	* glib/goption.c: Add documentation.
Packit ae235b
Packit ae235b
2004-10-28  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmessages.h: Mark g_assert_warning as G_GNUC_NORETURN,
Packit ae235b
	to avoid compiler warnings.  (#156767, Owen Taylor)
Packit ae235b
Packit ae235b
2004-10-29  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gstdio.c: Include also <direct.h> for mkdir() prototype
Packit ae235b
	with MSVC. [156727, Kazuki IWAMOTO]
Packit ae235b
Packit ae235b
	* glib/giochannel.h (g_io_channel_new_file): Redefine also
Packit ae235b
	g_io_channel_new_file to the UTF-8 version on Win32. [156725,
Packit ae235b
	Kazuki IWAMOTO)
Packit ae235b
Packit ae235b
2004-10-28  Ray Strode  <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c
Packit ae235b
	(find_file_in_data_dirs): clean up a leak (#156652,
Packit ae235b
	Morten Welinder)
Packit ae235b
	(g_key_file_load_from_fd): propagate fstat() error
Packit ae235b
	conditions and retry read on EAGAIN (#156647, Morten
Packit ae235b
	Welinder).  Return error if file is NOT regular, not if
Packit ae235b
	it is regular (bug introduced from last commited bug
Packit ae235b
	fix). 
Packit ae235b
	(g_key_file_load_from_data_dirs): allocate enough space
Packit ae235b
	for the terminating NULL.
Packit ae235b
Packit ae235b
2004-10-28  Ray Strode  <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
Packit ae235b
	Kazuki IWAMOTO)
Packit ae235b
Packit ae235b
2004-10-28  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gstdio.c: Include galias.h before glib.h (#156697,
Packit ae235b
	Christophe Fergeau)
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Add a missing "Since: 2.6" comment.
Packit ae235b
Packit ae235b
2004-10-28  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gstdio.c: Include glib.h early to get G_OS_WIN32. Include
Packit ae235b
	errno.h for errno.
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Include gstdio.h and use g_open().
Packit ae235b
Packit ae235b
2004-10-27  Ray Strode  <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c:
Packit ae235b
	 (g_key_file_load_from_fd), 
Packit ae235b
	 (g_key_file_load_from_file): 
Packit ae235b
	 Move file is regular check to load_from_file to use
Packit ae235b
	 fstat() instead of race prone g_file_test().  Don't
Packit ae235b
	 clear/init until needed. Change error messages to be
Packit ae235b
	 more consistent.
Packit ae235b
	 (g_key_file_load_from_data),
Packit ae235b
	 (g_key_file_load_from_data_dirs),
Packit ae235b
	 (g_key_file_parse_data),
Packit ae235b
	 (g_key_file_get_value),
Packit ae235b
	 (g_key_file_get_string),
Packit ae235b
	 (g_key_file_set_string),
Packit ae235b
	 (g_key_file_get_string_list),
Packit ae235b
	 (g_key_file_set_string_list),
Packit ae235b
	 (g_key_file_set_locale_string),
Packit ae235b
	 (g_key_file_get_locale_string),
Packit ae235b
	 (g_key_file_set_locale_string_list),
Packit ae235b
	 (g_key_file_get_boolean),
Packit ae235b
	 (g_key_file_set_boolean),
Packit ae235b
	 (g_key_file_get_boolean_list),
Packit ae235b
	 (g_key_file_set_boolean_list),
Packit ae235b
	 (g_key_file_get_integer),
Packit ae235b
	 (g_key_file_get_integer_list),
Packit ae235b
	 (g_key_file_set_integer_list),
Packit ae235b
	 (g_key_file_remove_key):
Packit ae235b
	 Add more g_return_*if_fail checks for public functions.
Packit ae235b
Packit ae235b
2004-10-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version.
Packit ae235b
Packit ae235b
	* === Released 2.5.4 ===
Packit ae235b
Packit ae235b
2004-10-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/abicheck.sh: Strip Win32 specific defs file syntax.
Packit ae235b
Packit ae235b
	* NEWS: Updates. 
Packit ae235b
Packit ae235b
2004-10-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Introduce the idea of a filename encoding, which is 
Packit ae235b
	*literally* the filename encoding on Unix. On Windows, 
Packit ae235b
	use the Unicode name converted to UTF-8. (#101792,
Packit ae235b
	Tor Lillqvist, Owen Taylor)
Packit ae235b
	
Packit ae235b
	* glib/gdir.[hc]: 
Packit ae235b
	* glib/gconvert.[hc]: 
Packit ae235b
	* glib/gfileutils.[hc]: 
Packit ae235b
	* glib/gutils.[hc]: 
Packit ae235b
	* glib/giowin32.c: On Windows, keep old ABI versions 
Packit ae235b
	of GLib pathname api for DLL ABI stability. Use different 
Packit ae235b
	names for the new-style UTF-8 versions. Hide this through 
Packit ae235b
	a #define.
Packit ae235b
Packit ae235b
	* glib/gstdio.[hc]: New files containing wrappers for
Packit ae235b
	POSIX pathname api.
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add new symbols.
Packit ae235b
Packit ae235b
	* glib/makegalias.pl: Drop Win32 specific .def syntax,
Packit ae235b
	include gstdio.h
Packit ae235b
Packit ae235b
2004-10-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Fix includes. (#156500, #156499, 
Packit ae235b
	Kazuki IWAMOTO)
Packit ae235b
Packit ae235b
	* glib/Makefile.am (galias.h): Fix srcdir != builddir 
Packit ae235b
	builds.  (#156447, Thomas Fitzsimmons)
Packit ae235b
Packit ae235b
2004-10-26  Gora Mohanty  <gmohanty@cvs.gnome.org>
Packit ae235b
Packit ae235b
	* configure.in: Added 'or' to ALL_LINGUAS.
Packit ae235b
Packit ae235b
2004-10-26  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Include galias.h.
Packit ae235b
	
Packit ae235b
	* glib/gkeyfile.c (g_key_file_parse_value_as_comment): 
Packit ae235b
	Don't compare strings and chars.
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add new symbols.
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c (g_key_file_new): Fix docs.
Packit ae235b
Packit ae235b
	* glib/gkeyfile.h: Use the same parameter names as in
Packit ae235b
	the implementation and the docs.
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_get_windows_version): Make this
Packit ae235b
	function thread-safe in the GLib style.
Packit ae235b
	* glib/gthreadinit.h: 
Packit ae235b
	* glib/gwin32.c (_g_win32_thread_init): New function to
Packit ae235b
	initialize the version.
Packit ae235b
	* glib/gthread.c (g_thread_init_glib): Call 
Packit ae235b
	_g_win32_thread_init() from here.
Packit ae235b
Packit ae235b
2004-10-26  Ray Strode  <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c: Add Matthias to "Written by" lines
Packit ae235b
	 (GKeyFileGroup): add field to hold comments about groups
Packit ae235b
	 (g_key_file_load_from_fd): return TRUE on success and
Packit ae235b
	 FALSE on failure.  Don't close fd's opened by other
Packit ae235b
	 parent function.  
Packit ae235b
	 (g_key_file_load_from_file): run FILE_IS_REGULAR test
Packit ae235b
	 before trying to open file, to save an fd from being
Packit ae235b
	 leaked (would probably be better to use fstat()). Close
Packit ae235b
	 fd when done with it. Return TRUE on success and FALSE
Packit ae235b
	 on failure.
Packit ae235b
	 (g_key_file_load_from_data): Return TRUE on success and
Packit ae235b
	 FALSE on failure.
Packit ae235b
	 (g_key_file_load_from_data_dirs): remove superfluous
Packit ae235b
	 const modifier.  Return TRUE on success and FALSE on
Packit ae235b
	 failure.  Stop trying to load files when one succeeds.
Packit ae235b
	 (g_key_file_parse_key_value_pair): don't validate input
Packit ae235b
	 for UTF-8 until users uses a getter that does
Packit ae235b
	 validation.  Don't leak copy of start_group_name.
Packit ae235b
	 (g_key_file_to_data): serialize new comment field for
Packit ae235b
	 groups.
Packit ae235b
	 (g_key_file_get_keys): Remove convenience code to let
Packit ae235b
	 NULL group mean start group.  Get rid of unneeded NULL
Packit ae235b
	 check before g_strdup.
Packit ae235b
	 (g_key_file_get_groups): Reverse groups list before
Packit ae235b
	 sending to user because it is maintained in backward
Packit ae235b
	 order internally. 
Packit ae235b
	 (g_key_file_get_value),
Packit ae235b
	 (g_key_file_set_value): add g_return checks at top of
Packit ae235b
	 public functions.
Packit ae235b
	 (g_key_file_get_string), 
Packit ae235b
	 (g_key_file_get_string_list): validate key value is UTF-8.
Packit ae235b
	 (g_key_file_[sg]et_*comment): new functions for
Packit ae235b
	 setting/getting comments
Packit ae235b
	 (g_key_file_remove_comment): new function to remove
Packit ae235b
	 comment block
Packit ae235b
	 (g_key_file_remove_key_value_pair_node): new function to
Packit ae235b
	 pull a key-value pair out of the list and free it.
Packit ae235b
	 (g_key_file_remove_group_node): call
Packit ae235b
	 g_key_file_remove_key_value_pair_node instead of 
Packit ae235b
	 freeing the list immediately to get better statistics
Packit ae235b
	 for approximate_size.
Packit ae235b
	 (g_key_file_remove_group): use lookup_group_node instead
Packit ae235b
	 of lookup_group to prevent a g_list_find call.
Packit ae235b
	 (g_key_file_add_key): report group also when unable to
Packit ae235b
	 find key.
Packit ae235b
	 (g_key_file_lookup_group_node): new function to make
Packit ae235b
	 getting the group node from a group name easier.
Packit ae235b
	 (g_key_file_lookup_group): use lookup_group_node under
Packit ae235b
	 the hood.
Packit ae235b
	 (g_key_file_lookup_key_value_pair_node): new function to
Packit ae235b
	 make getting the key-value pair from a group and key
Packit ae235b
	 name eaiser.
Packit ae235b
	 (g_key_file_parse_comment_as_value): new function to add '#' to the
Packit ae235b
	 beginning of every line.
Packit ae235b
	 (g_key_file_parse_value_as_comment): new function that
Packit ae235b
	 attempts to be the inverse of comment as value.
Packit ae235b
Packit ae235b
2004-10-26  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.c: 
Packit ae235b
	* glib/gkeyfile.c: Don't include ctype.h needlessly.  (#156424,
Packit ae235b
	Morten Welinder)
Packit ae235b
Packit ae235b
	* tests/strtod-test.c (test_string): Improve error reporting.
Packit ae235b
Packit ae235b
Mon Oct 25 15:05:18 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* autogen.sh: rm autom4te.cache, since it might interfere with
Packit ae235b
	differing autoconf versions.
Packit ae235b
Packit ae235b
	* tests/child-test.c: use GINT_TO_POINTER for g_child_watch_add
Packit ae235b
	user data.
Packit ae235b
Packit ae235b
	* glib/gfileutils.c: G_IS_DIR_SEPARATOR is defined in gutils.h now,
Packit ae235b
	don't redefine it here.
Packit ae235b
Packit ae235b
2004-10-24  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
Packit ae235b
	destroy the lookup map if it is NULL.
Packit ae235b
Packit ae235b
2004-10-23  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c, 
Packit ae235b
	glib/giochannel.c, glib/gmain.c, glib/gspawn.c, 
Packit ae235b
	glib/libcharset/localcharset.c: Apply a patch to fix
Packit ae235b
	sparse warnings. (#154696, Kjartan Maraas)
Packit ae235b
Packit ae235b
	* glib/gnulib/g-gnulib.h: Undef libc functions before defining
Packit ae235b
	them, since they may also be macros.  (#155177, Andrea Campi)
Packit ae235b
Packit ae235b
	* glib/gkeyfile.h: 
Packit ae235b
	* glib/gkeyfile.c: Add a parser for desktop entries and
Packit ae235b
	similar files with a .ini-like syntax.  (#139974, Ray Strode)
Packit ae235b
Packit ae235b
	* glib/glib.h: Include gkeyfile.h
Packit ae235b
Packit ae235b
	* glib/Makefile.am (libglib_2_0_la_SOURCES): Add gkeyfile.c
Packit ae235b
	(glibsubinclude_HEADERS): Add gkeyfile.h
Packit ae235b
Packit ae235b
	* glib/gutils.c (_g_compute_locale_variants): Make this 
Packit ae235b
	non-static and use it in gkeyfile.c
Packit ae235b
Packit ae235b
2004-10-22  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/uri-test.c (run_uri_list_tests): Add some
Packit ae235b
	uri list tests.c.
Packit ae235b
Packit ae235b
	* glib/gconvert.h:
Packit ae235b
	* glib/gconvert.c (g_uri_list_extract_uris): New function to
Packit ae235b
	split a text/uri-list data into individual uris and strip comments.
Packit ae235b
Packit ae235b
2004-10-20  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/goption.c (get_change): Don't return the wrong 
Packit ae235b
	change.  (#155856, Lucas Rocha)
Packit ae235b
Packit ae235b
2004-10-17  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.h (G_IS_DIR_SEPARATOR): 
Packit ae235b
	* glib/gutils.c: Make public.  (#155589, Tim-Philipp MĆ¼ller) 
Packit ae235b
Packit ae235b
2004-10-08  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_child_watch_add_full): 
Packit ae235b
	* glib/gmain.c (g_child_watch_add): Document that GLib supports only
Packit ae235b
	a single callback per pid. (#154828, Gustavo Carneiro)
Packit ae235b
Packit ae235b
2004-10-06  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gfileutils.c: Fix some C99isms.  (#154676, Kjartan Maraas)
Packit ae235b
Packit ae235b
2004-10-05  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/goption.c: (g_option_context_parse):
Packit ae235b
	Add check for if argc is 0.
Packit ae235b
	
Packit ae235b
	* tests/option-test.c: (empty_test3), (main):
Packit ae235b
	Add test case.
Packit ae235b
	
Packit ae235b
2004-10-05  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Update
Packit ae235b
Packit ae235b
2004-10-04  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
Packit ae235b
	vtable is set.  (#154352, Philippe Blain)
Packit ae235b
Packit ae235b
2004-10-03  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/goption.c: (parse_arg):
Packit ae235b
	Set arg_data on filenames. (Discovered by Mats-Ola Persson).
Packit ae235b
	
Packit ae235b
	* tests/option-test.c: (arg_test3), (ignore_test3), (main):
Packit ae235b
	Add test for filename args.
Packit ae235b
	
Packit ae235b
2004-10-01  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/goption.c (g_option_context_parse): Use
Packit ae235b
	g_path_get_basename() instead of strrchr(), so that either slash
Packit ae235b
	is accepted on Windows.
Packit ae235b
Packit ae235b
2004-09-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gfileutils.c: Convert filenames to UTF-8 before 
Packit ae235b
	putting them in GErrors.  (#154078, Morten Welinder)
Packit ae235b
Packit ae235b
2004-09-29  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/glib.symbols: Add g_assert_warning.
Packit ae235b
Packit ae235b
	* glib/gmessages.h:
Packit ae235b
	* glib/gmessages.c (g_assert_warning): Treat g_assert 
Packit ae235b
	in the same way as g_return_if_fail and move the string 
Packit ae235b
	constants into a helper function, which also takes 
Packit ae235b
	care of removing the "IA__" prefix from internal aliases.
Packit ae235b
Packit ae235b
	* glib/gmessages.h: Move the declaration of 
Packit ae235b
	g_return_if_fail_warning() out of the ifdefs, so that
Packit ae235b
	building with G_DISABLE_ASSERT works.
Packit ae235b
Packit ae235b
2004-09-27  Murray Cumming  <murrayc@murrayc.com>
Packit ae235b
Packit ae235b
	* glib/goptions.[h|c], glib/glib.symbols: Rename 
Packit ae235b
	g_context_option_error_quark() to g_option_error_quark(), because that 
Packit ae235b
	is consistent with normal naming conventions, and what bindings expect.
Packit ae235b
Packit ae235b
.2004-09-26  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Fix #153649, Hidetaka Iwai:
Packit ae235b
	
Packit ae235b
	* glib/goption.c (parse_long_option): Don't forget to set parsed
Packit ae235b
	to TRUE when parsing a long ARG_NONE option. 
Packit ae235b
	(free_changes_list): Fix the memory management for string
Packit ae235b
	and filename arrays.
Packit ae235b
Packit ae235b
2004-09-22  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gmessages.c: [Win32] Don't ever open a console
Packit ae235b
	window. (Which we used to do if standard output or standard error
Packit ae235b
	are invalid, as they are for GUI applications.) These console
Packit ae235b
	windows that open up unexpectedly have caused endless amounts of
Packit ae235b
	confusion among end-users. (#141102, #151175)
Packit ae235b
Packit ae235b
	Don't output the process id on Windows. Only output the program
Packit ae235b
	name. If not set with g_set_prgname(), fetch the application
Packit ae235b
	executable's name and use that.
Packit ae235b
Packit ae235b
Mon Sep 20 00:35:14 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
Packit ae235b
	convert UTF-16 byte stream of ambiguous endianness.  (#152954,
Packit ae235b
	Linus Walleij)
Packit ae235b
Packit ae235b
Mon Sep 20 00:17:37 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* tests/option-test.c (error_test3_post_parse): 
Packit ae235b
	* tests/option-test.c (error_test2_post_parse): 
Packit ae235b
	* tests/option-test.c (error_test1_post_parse): Don't call 
Packit ae235b
	g_set_error () with a NULL format.  (#153103, Robert Ɩgren) 
Packit ae235b
Packit ae235b
Mon Sep 20 00:13:48 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	Make GOption remove long options completely. (#153113, Robert Ɩgren)
Packit ae235b
Packit ae235b
	* glib/goption.c (parse_long_option): Fix a wrong index.
Packit ae235b
Packit ae235b
	* tests/option-test.c (ignore_test3): Test handling of unknown
Packit ae235b
	options some more.
Packit ae235b
Packit ae235b
Sun Sep 19 23:56:15 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/goption.c (g_option_context_parse): Call error_func
Packit ae235b
	on error, not post_parse_func again.  (#153107, Robert Ɩgren)
Packit ae235b
Packit ae235b
Sun Sep 19 23:52:35 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gmessages.c (mklevel_prefix): 
Packit ae235b
	* glib/gmessages.c (g_logv): Fix the types of some variables
Packit ae235b
	to be GLogLevelFlags instead of guint.  (#153042, Philippe Blain)
Packit ae235b
Packit ae235b
2004-09-18  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* Version bump
Packit ae235b
Packit ae235b
	* === Released 2.5.3 ===
Packit ae235b
Packit ae235b
2004-09-17  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: More updates.
Packit ae235b
Packit ae235b
Thu Sep 16 18:42:46 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/abicheck.sh: don't hardcode lengths for cut, instead split on
Packit ae235b
	the third field.
Packit ae235b
Packit ae235b
Thu Sep 16 18:15:32 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_strncasecmp): Make it take a guint for number
Packit ae235b
	of characters, instead of a gsize. Technically this is incorrect,
Packit ae235b
	but this makes it match the prototype, and this is a deprecated
Packit ae235b
	function anyway.
Packit ae235b
Packit ae235b
2004-09-16  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/Makefile.am (EXTRA_DIST): Add abicheck.sh
Packit ae235b
Packit ae235b
Thu Sep 16 02:03:15 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	Implement the same PLT reduction technique used in GTK+:
Packit ae235b
	
Packit ae235b
	* glib/glib.symbols: Master list of symbols
Packit ae235b
Packit ae235b
	* glib/makegalias.pl: Perl script which creates galias.h
Packit ae235b
Packit ae235b
	* glib/abicheck.sh: Compares actual exports against glib.symbols 
Packit ae235b
Packit ae235b
	* glib/glib.def: Removed. This file is now generated from
Packit ae235b
	glib.symbols
Packit ae235b
	
Packit ae235b
	* glib/Makefile.am: Add rules to generate galias.h and glib.def,
Packit ae235b
	and add abicheck.sh to TESTS. Don't export _-prefixed symbols.
Packit ae235b
	
Packit ae235b
	* configure.in: Add --disable-visibility to suppress the 
Packit ae235b
	use of ELF visibility attributes.
Packit ae235b
Packit ae235b
	* glib/*.c: Include galias.h
Packit ae235b
Packit ae235b
2004-09-15  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_error_message): Convert message to
Packit ae235b
	UTF-8. Technically this breaks API, but the actual use cases in
Packit ae235b
	gdk/win32 have assumed it is UTF-8 anyway. Fix
Packit ae235b
	documentation. (#152618, Kazuki Iwamoto)
Packit ae235b
Packit ae235b
	* glib/gwin32.h: Don't define ftruncate as a macro. Was never a
Packit ae235b
	good idea, and it clashes with newest mingw headers, which have a
Packit ae235b
	ftruncate implementation as an inline function. Thanks to Dominik R.
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_ftruncate): Simplify implementation, just
Packit ae235b
	call _chsize() in the C library.
Packit ae235b
Packit ae235b
2004-09-15  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* NEWS: Update.
Packit ae235b
Packit ae235b
2004-09-09  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmessages.c (g_return_if_fail_warning): Strip the
Packit ae235b
	prefix "IA__" from function names, since that is what
Packit ae235b
	GTK+ uses for the PLT-reduction aliases. 
Packit ae235b
Packit ae235b
Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmessages.c (g_return_if_fail_warning): 
Packit ae235b
	Include implementation of g_return_if_fail_internal().
Packit ae235b
Packit ae235b
Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmessages.h (g_return_[val_]if_fail): Use
Packit ae235b
	a helper function to reduce code size; omit FILE/LINE
Packit ae235b
	when we have __PRETTY_FUNCTION__.
Packit ae235b
Packit ae235b
2004-09-09  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_home_dir): Remove a misleading comment.
Packit ae235b
Packit ae235b
Thu Sep  9 00:10:40 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.h: 
Packit ae235b
	* glib/gstrfuncs.c (g_strv_length): Add a function to 
Packit ae235b
	calculate the length of a NULL-terminated string 
Packit ae235b
	array.  (#150455, Tim-Philipp MĆ¼ller)
Packit ae235b
Packit ae235b
	* tests/strfunc-test.c (main): Add a test for g_strv_length().
Packit ae235b
Packit ae235b
2004-09-08  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gutils.c (guess_category_value): On Win32, as last resort
Packit ae235b
	call g_win32_getlocale() to get the current thread locale. There
Packit ae235b
	usually aren't any POSIXish LANG or LC_* environment variables
Packit ae235b
	present on Windows machines.
Packit ae235b
Packit ae235b
	* glib/glib.def: Add g_get_language_names.
Packit ae235b
Packit ae235b
2004-09-07  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.h: 
Packit ae235b
	* glib/gutils.c (g_get_language_names): Add a function to
Packit ae235b
	return a list of applicable locale names.  (#95587, 
Packit ae235b
	Hidetoshi Tajima)
Packit ae235b
	(guess_category_value, compute_locale_variants):
Packit ae235b
	(explode_locale, unalias_lang, read_aliases): Helper 
Packit ae235b
	functions for g_get_language_names()
Packit ae235b
Packit ae235b
	* tests/testglib.c (main): Show the results of 
Packit ae235b
	g_get_language_names()
Packit ae235b
Packit ae235b
Sun Sep  5 01:46:11 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/glib.def: 
Packit ae235b
	* glib/gmessages.h: 
Packit ae235b
	* glib/gmessages.c (g_log_set_default_handler): New
Packit ae235b
	function to install an alternate default log 
Packit ae235b
	handler.  (#66387, Darin Adler)
Packit ae235b
Packit ae235b
2004-09-03  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/glib.def: Update.
Packit ae235b
Packit ae235b
Wed Sep  1 20:22:39 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gdate.h:
Packit ae235b
	* glib/gdate.c (g_date_get_iso8601_week_of_year): Add
Packit ae235b
	a function to calculate the ISO 8601 week number of 
Packit ae235b
	a date.  (#92579, Niklas Lundell)
Packit ae235b
Packit ae235b
2004-09-01  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/goption.c: (g_option_context_parse):
Packit ae235b
	Set program name before calling the pre-parse hooks.
Packit ae235b
	
Packit ae235b
2004-09-01  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/goption.c: (g_option_context_free), (print_help),
Packit ae235b
	(g_option_context_parse):
Packit ae235b
	Handle option contexts without a main group.
Packit ae235b
	
Packit ae235b
	* tests/option-test.c: (empty_test2), (main):
Packit ae235b
	Add test case for that.
Packit ae235b
	
Packit ae235b
2004-08-30  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/goption.c: (g_option_context_parse):
Packit ae235b
	Set prgname to <unknown> if argc and argv are NULL.
Packit ae235b
	
Packit ae235b
	* tests/option-test.c: (empty_test1), (main):
Packit ae235b
	Add test case for that.
Packit ae235b
	
Packit ae235b
Sun Aug 29 23:58:38 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/ghash.c (g_hash_table_lookup): Point to 
Packit ae235b
	g_hash_table_lookup_extended() for differentiation between
Packit ae235b
	not-found and value-is-NULL.  (#150960, Morten Welinder)
Packit ae235b
Packit ae235b
2004-08-27  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Fix #151193, Stepan Kasal:
Packit ae235b
	
Packit ae235b
	* glib/gfileutils.c (g_file_error_from_errno): 
Packit ae235b
	* glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
Packit ae235b
Packit ae235b
Fri Aug 27 00:45:41 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/goption.c (g_option_context_parse): Set the program name
Packit ae235b
	from argv[0], noticed by Masatake YAMATO.
Packit ae235b
Packit ae235b
2004-08-26  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* tests/testglib.c (main): Test the new XDG basedir functions.
Packit ae235b
Packit ae235b
2004-08-25  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_get_windows_version): New
Packit ae235b
	function. Returns the Windows version code like GetVersion(),
Packit ae235b
	except that one can pretend to be running on Win9x by setting the
Packit ae235b
	G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
Packit ae235b
	debugging purposed.
Packit ae235b
Packit ae235b
	* glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED 
Packit ae235b
	and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
Packit ae235b
Packit ae235b
2004-08-25  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Post-release version bump.
Packit ae235b
Packit ae235b
	* === Released 2.5.2 ===
Packit ae235b
Packit ae235b
Wed Aug 25 00:25:08 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* NEWS: Update for 2.5.2
Packit ae235b
Packit ae235b
2004-08-25  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	Win32 equivalences of the XDG folders
Packit ae235b
	
Packit ae235b
	* glib/gutils.c (get_special_folder): New function, calls
Packit ae235b
	SHGetSpecialFolderLocation() to get path to places like the My
Packit ae235b
	Documents folder.
Packit ae235b
	(g_get_any_init): Use CSIDL_PROFILE as HOME if not
Packit ae235b
	overridden by env vars.
Packit ae235b
	(g_get_user_data_dir): Use CSIDL_PERSONAL.
Packit ae235b
	(g_get_user_config_dir): Use CSIDL_APPDATA.
Packit ae235b
	(g_get_user_cache_dir): Use CSIDL_INTERNET_CACHE. Debatable...
Packit ae235b
	(g_get_system_data_dirs): Use CSIDL_COMMON_APPDATA and
Packit ae235b
	CSIDL_COMMON_DOCUMENTS.
Packit ae235b
	(g_get_system_config_dirs): Use CSIDL_COMMON_APPDATA.
Packit ae235b
Packit ae235b
	* configure.in: Add -lole32 to G_LIBS_EXTRA for mingw.
Packit ae235b
Packit ae235b
	* glib/glib.def: Add the new functions.
Packit ae235b
Packit ae235b
Mon Aug 23 16:16:35 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/goption.c (g_option_group_add_entries): remove unused
Packit ae235b
	variable.
Packit ae235b
Packit ae235b
Mon Aug 23 01:35:18 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_user_cache_dir): 
Packit ae235b
	* glib/gutils.c (g_get_user_config_dir): 
Packit ae235b
	* glib/gutils.c (g_get_user_data_dir): Don't call g_get_home_dir()
Packit ae235b
	while holding the g_utils_global lock, simply use g_home_dir. 
Packit ae235b
	(#150695, Jody Goldberg)
Packit ae235b
Packit ae235b
2004-08-21  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/giowin32.c (g_io_win32_finalize): Tell select_thread to
Packit ae235b
	break out of its loop. Prevents a thread leak. (#147392, Peter
Packit ae235b
	Zelezny)
Packit ae235b
Packit ae235b
	* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
Packit ae235b
	return value from strxfrm(). For instance Microsoft's strxfrm()
Packit ae235b
	returns INT_MAX on errors. (#141124)
Packit ae235b
Packit ae235b
2004-08-19  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
Packit ae235b
	source and destination charset parameter order in g_convert()
Packit ae235b
	call. (#150394, possibly also #141124)
Packit ae235b
Packit ae235b
2004-08-20  Jon K Hellan  <hellan@acm.org>
Packit ae235b
Packit ae235b
	* glib/goption.h: Remove trailing commas.
Packit ae235b
Packit ae235b
2004-08-17  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Check for all four values of the
Packit ae235b
	visibility attribute; gcc 2.96 seems to miss 
Packit ae235b
	"default".  (#150379, Vincent Noel)
Packit ae235b
Packit ae235b
2004-08-16  Christian Rose  <menthos@menthos.com>
Packit ae235b
Packit ae235b
	* configure.in: Added "bs" to ALL_LINGUAS.
Packit ae235b
Packit ae235b
2004-08-11  Ray Strode  <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* docs/reference/glib/glib-sections.txt: 
Packit ae235b
	* glib/gutils.[ch] (g_get_user_data_dir),
Packit ae235b
	(g_get_user_config_dir), (g_get_user_cache_dir),
Packit ae235b
	(g_get_system_data_dirs), (g_get_system_config_dirs): 
Packit ae235b
	Add new XDG basedir API (bug 139973).
Packit ae235b
Packit ae235b
2004-08-10  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmacros.h: Remove G_GNUC_INTERNAL from here.
Packit ae235b
	* configure.in: Check whether the visibility attribute
Packit ae235b
	works and define G_HAVE_GNUC_VISIBILITY and 
Packit ae235b
	G_GNUC_INTERNAL in glibconfig.h correspondingly.
Packit ae235b
Packit ae235b
Mon Aug  9 17:37:56 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gmacros.h (G_GNUC_INTERNAL): Define empty if gcc is too old.
Packit ae235b
Packit ae235b
2004-08-06  Hans Breuer  <hans@breuer.org>
Packit ae235b
Packit ae235b
	* glib/makefile.msc.in glib/glib.def : updated
Packit ae235b
Packit ae235b
	* glib/gutils.c : avoid 'inconsitent dll linkage' by not
Packit ae235b
	defining extern char** environ with msvc
Packit ae235b
Packit ae235b
2004-08-06  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* m4macros/glib-gettext.m4: Require ngettext.  (#123847,
Packit ae235b
	Danilo Segan)
Packit ae235b
Packit ae235b
Thu Aug  5 20:53:00 2004  Ray Strode  <rstrode@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gutils.h (g_get_codeset): strdup result so caller
Packit ae235b
	doesn't free internally managed memory.
Packit ae235b
Packit ae235b
2004-08-04  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/glib.def: Add glib_check_version.
Packit ae235b
Packit ae235b
	* config.h.win32.in: Update to match what configure produces. Add
Packit ae235b
	the G_ATOMIC_*. Define G_ATOMIC_I486 when compiling with gcc. Move
Packit ae235b
	HAVE_INT64_AND_I64 to where the configure script puts it. Add
Packit ae235b
	HAVE_INTTYPES_H_WITH_UINTMAX. Define intmax_t as __int64 for MSVC.
Packit ae235b
Packit ae235b
Tue Aug  3 16:19:44 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/goption.c: Mark user visible strings for translation.
Packit ae235b
Packit ae235b
Tue Aug  3 15:50:55 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/goption.[hc]: Pedantically use g types throughout.
Packit ae235b
Packit ae235b
Tue Aug  3 14:58:20 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gutils.h: 
Packit ae235b
	* glib/gutils.c (glib_check_version): New function to
Packit ae235b
	check the version of GLib at runtime.  (#149175, Michael Natterer)
Packit ae235b
Packit ae235b
2004-08-03  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/goption.h:
Packit ae235b
	* glib/gtypes.h:
Packit ae235b
	Move GTranslateFunc to gtypes.h
Packit ae235b
	
Packit ae235b
2004-08-02  Anders Carlsson  <andersca@gnome.org>
Packit ae235b
Packit ae235b
	* glib/Makefile.am:
Packit ae235b
	* glib/glib.h:
Packit ae235b
	* glib/goption.c:
Packit ae235b
	* glib/goption.h:
Packit ae235b
	* tests/.cvsignore:
Packit ae235b
	* tests/Makefile.am:
Packit ae235b
	* tests/option-test.c: 
Packit ae235b
	Add GOption.
Packit ae235b
Packit ae235b
2004-08-02  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
Packit ae235b
	declarations as internal and avoid PLT indirections for 
Packit ae235b
	them.  (#145465, Arjan van de Ven)
Packit ae235b
Packit ae235b
	* glib/gunicodeprivate.h: 
Packit ae235b
	* glib/gthreadinit.h: 
Packit ae235b
	* glib/gmessages.h: 
Packit ae235b
	* glib/gdebug.h: 
Packit ae235b
	* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
Packit ae235b
	_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
Packit ae235b
	_g_messages_thread_init(), _g_convert_thread_init(), 
Packit ae235b
	_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
Packit ae235b
	_g_mem_thread_private_init(), _g_messages_thread_private_init(),
Packit ae235b
	_g_utf8_normalize_wc() and _g_unichar_combining_class().
Packit ae235b
Packit ae235b
	* glib/gatomic.c: Include gthreadinit.h here to see the declaration
Packit ae235b
	for _g_atomic_thread_init().
Packit ae235b
Packit ae235b
Sun Aug  1 13:19:18 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* tests/uri-test.c: move newline printing from run_from_uri_tests()
Packit ae235b
	to run_roundtrip_tests().
Packit ae235b
Packit ae235b
2004-08-01 Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* Post-release version bump
Packit ae235b
Packit ae235b
        * === Released 2.5.1 ===
Packit ae235b
Packit ae235b
Sat Jul 31 23:17:05 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* NEWS: Updates.
Packit ae235b
Packit ae235b
Sat Jul 31 20:33:07 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* tests/shell-test.c: Include a test involving consecutive
Packit ae235b
	backslashes followed by a non-escaped doublequote.
Packit ae235b
	
Packit ae235b
	* glib/gshell.c (tokenize_command_line): Count consecutive
Packit ae235b
	backslashes mod 2 to detect escaped doubleqotes.  (#127306)
Packit ae235b
Packit ae235b
2004-07-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gconvert.c (g_unescape_uri_string): Don't validate
Packit ae235b
	for UTF-8 here.  (#148420, Robert Ɩgren)
Packit ae235b
Packit ae235b
	* tests/uri-test.c (run_roundtrip_tests): Add tests for 
Packit ae235b
	roundtrip compatibility. Going from filename to uri and 
Packit ae235b
	back should always give you the same filename back. 
Packit ae235b
Packit ae235b
2004-07-28  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/markups/valid-{9,10,11}.gmarkup: 
Packit ae235b
	* tests/markups/fail-{37,38,39}.gmarkup: Tests for handling
Packit ae235b
	of whitespace inside tags.
Packit ae235b
Packit ae235b
	* glib/gmarkup.c (enum GMarkupParseState): Add 
Packit ae235b
	STATE_AFTER_ATTRIBUTE_NAME and STATE_AFTER_CLOSE_TAG_NAME.
Packit ae235b
	(g_markup_parse_context_parse): Accept whitespace between
Packit ae235b
	attribute names, '=' and attribute values and between
Packit ae235b
	close tag name and '>'. (#148646, Hiroyuki Ikezoe)
Packit ae235b
Packit ae235b
Tue Jul 27 02:01:31 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_strsplit_set): s/g_strsplit/g_strsplit_set/
Packit ae235b
	as well.
Packit ae235b
Packit ae235b
Sat Jul 24 17:50:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_strsplit_set):
Packit ae235b
	s/g_strtokenize/g_strsplit_set/ in docs.
Packit ae235b
Packit ae235b
Fri Jul 23 10:37:50 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* tests/type-test.c (main): Actually test G_MAXSIZE with
Packit ae235b
	a gsize variable.
Packit ae235b
Packit ae235b
2004-07-21  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Fix #132858, Sven Neumann, patch by James Henstridge:
Packit ae235b
	
Packit ae235b
	* glib-gettextize.in: modify so that mkinstalldirs will 
Packit ae235b
	get installed into auxdir.
Packit ae235b
Packit ae235b
	* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.
Packit ae235b
Packit ae235b
2004-07-21  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Fix #147651, reported by Oliver Guntermann:
Packit ae235b
Packit ae235b
	* glib/gprintfint.h (_g_vasprintf): Don't wrap vasprintf(),
Packit ae235b
	_g_gnulib_vasprintf() in a macro, since they behave 
Packit ae235b
	differently wrt. to memory allocation.
Packit ae235b
Packit ae235b
	* glib/gprintf.c (g_vasprintf): Instead, differentiate 
Packit ae235b
	here between the three cases: system vasprintf(), 
Packit ae235b
	_g_gnulib_vasprintf(), no vasprintf().  
Packit ae235b
Packit ae235b
2004-07-20  Crispin Flowerday  <gnome@flowerday.cx>
Packit ae235b
Packit ae235b
	* NEWS: Fix a typo in my name
Packit ae235b
Packit ae235b
Tue Jul 20 04:31:40 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
Packit ae235b
Packit ae235b
	* configure.in: Bump version number
Packit ae235b
Packit ae235b
Sun Jul 18 19:40:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
Packit ae235b
Packit ae235b
	* === Released 2.5.0 ===
Packit ae235b
Packit ae235b
	* Makefile.am (BUILT_EXTRA_DIST): move gtk-doc.make here.
Packit ae235b
Packit ae235b
Sun Jul 18 01:40:28 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* NEWS: Updates for 2.5.0
Packit ae235b
Packit ae235b
Mon Jul 12 00:02:40 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gi18n-lib.h: Remove the ENABLE_NLS check here as well.
Packit ae235b
Packit ae235b
2004-07-09  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gdir.c (g_dir_open): Convert filename to UTF-8 
Packit ae235b
	before using it in the error message.  (#146054, Federico
Packit ae235b
	Mena Quintero)
Packit ae235b
Packit ae235b
Thu Jul  8 00:54:32 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gi18n.h: Remove the ENABLE_NLS check, since GLib can't
Packit ae235b
	be built without anyway.  (#135899, Murray Cumming)
Packit ae235b
Packit ae235b
Mon Jul  5 18:50:27 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gmessages.h (g_debug): Complete the g_log() 
Packit ae235b
	family.  (#135730, Sven Herzberg)
Packit ae235b
Packit ae235b
Mon Jul  5 18:42:30 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to 
Packit ae235b
	make srcdir != . work.  (#145166, Kaz Sasayama)
Packit ae235b
Packit ae235b
Sun Jul  4 01:52:18 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* configure.in: Use a small test library instead of
Packit ae235b
	libpthread.so for testing RTLD_GLOBAL brokenness.  (#139567,
Packit ae235b
	Julio M. Merino Vidal)
Packit ae235b
	
Packit ae235b
2004-07-02  Sebastian Wilhelmi  <seppi@seppi.de>
Packit ae235b
Packit ae235b
	* glib/gatomic.c: Rename __asm to __asm__ and __volatile to
Packit ae235b
	__volatile__ to make the file consistent. Spotted by Benoit
Packit ae235b
	Carpentier <gtkool_2kx@yahoo.fr>.
Packit ae235b
Packit ae235b
2004-07-01  John Ehresman  <jpe@wingide.com>
Packit ae235b
Packit ae235b
	* glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
Packit ae235b
	Initialize reset_send & reset_recv fields and don't close
Packit ae235b
	sockets unless they were created.  (#145153)
Packit ae235b
Packit ae235b
Fri Jun 11 22:56:46 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gscanner.c (g_scanner_get_token_ll): Ignore a 
Packit ae235b
	missing newline at EOF for single line comments.  
Packit ae235b
	(#83674, Sven Neumann)
Packit ae235b
Packit ae235b
Thu Jun 10 23:38:02 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* tests/printf-test.c (TEST): Actually set any_failed on 
Packit ae235b
	failure.  (#143552, Philippe Blain)
Packit ae235b
Packit ae235b
2004-06-09  Federico Mena Quintero  <federico@ximian.com>
Packit ae235b
Packit ae235b
	* tests/uri-test.c (to_uri_tests): Fix expected results (ha ha)
Packit ae235b
	for URIs that *should* have been invalid, or viceversa.
Packit ae235b
	(from_uri_tests): Likewise.
Packit ae235b
Packit ae235b
2004-06-07  Federico Mena Quintero  <federico@ximian.com>
Packit ae235b
Packit ae235b
	Fixes #140532.
Packit ae235b
Packit ae235b
	* glib/gconvert.c (is_asciialphanum): Renamed from
Packit ae235b
	is_escalphanum(); ensures that this is an ASCII character.
Packit ae235b
	(is_asciiescalpha): Renamed from is_escalpha().
Packit ae235b
	(hostname_validate): Use the two functions above.
Packit ae235b
	(g_filename_to_uri): Don't convert the filename to UTF-8.
Packit ae235b
	(g_filename_from_uri): Don't convert the filename from UTF-8.
Packit ae235b
Packit ae235b
Mon Jun  7 22:25:24 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* tests/run-markup-tests.sh: Default to silence, but support
Packit ae235b
	a -v argument to get the old output back. 
Packit ae235b
Packit ae235b
2004-06-06  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_any_init): Check home for being
Packit ae235b
	NULL. (#143812, Ivan Wong)
Packit ae235b
Packit ae235b
Sun Jun  6 15:23:00 2004  Pawan Chitrakr  <pawan@nplinu.org>
Packit ae235b
Packit ae235b
	* configure.in: Added "ne" (Nepali) in ALL_LINGUAS
Packit ae235b
Packit ae235b
Fri Jun  4 19:26:47 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
        * glib/galloca.h: cpp #directives should always have the "#" in the
Packit ae235b
        first column of the the line. Do that for "#pragma alloca". Fixes
Packit ae235b
        bug #143744.
Packit ae235b
Packit ae235b
Wed Jun  2 00:57:16 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gtypes.h: Use higher precision for the mathematical
Packit ae235b
	constants.  (#141941, Morten Welinder)
Packit ae235b
Packit ae235b
Tue Jun  1 22:01:40 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gmarkup.c (advance_char): Fix an off-by-one error 
Packit ae235b
	in g_markup_parse_context_parse().  (#142794, Morten Welinder)
Packit ae235b
Packit ae235b
Sun May 16 23:23:29 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
        Merged from 2.4:
Packit ae235b
	
Packit ae235b
	* glib/gcompletion.c (g_completion_add_items):
Packit ae235b
	(g_completion_remove_items): Remove unnecessary 
Packit ae235b
	checks.  (#142559, Morten Welinder)
Packit ae235b
Packit ae235b
2004-05-15  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_get_any_init): [Win32] Only believe HOME if it
Packit ae235b
	is an absolute path and exists. (#138618)
Packit ae235b
Packit ae235b
2004-05-14  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gnulib/vasnprintf.c (vasnprintf): Handle empty digit string
Packit ae235b
	for precision correctly. (#142400)
Packit ae235b
Packit ae235b
	For backward compatibility with the Trio implementation, make "ll"
Packit ae235b
	format modifer work on Win32, too. Change into "I64" before
Packit ae235b
	passing to the system printf. (#142433)
Packit ae235b
Packit ae235b
	* tests/printf-test.c (main): Add tests for the above.
Packit ae235b
Packit ae235b
2004-05-10  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	Merge from 2.4:
Packit ae235b
	
Packit ae235b
	* glib/gmain.c (block_source, unblock_source): Make these 
Packit ae235b
	static.  (#142230, Morten Welinder)
Packit ae235b
Packit ae235b
2004-05-10  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/giowin32.c (g_win32_print_gioflags): Remove two duplicated
Packit ae235b
	lines. Thanks to BenoƮt Carpentier.
Packit ae235b
Packit ae235b
Sun May  9 02:04:14 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	Merge from 2.4:
Packit ae235b
	
Packit ae235b
	* glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
Packit ae235b
	memleak.  (#141998, Nikolai Weibull)
Packit ae235b
Packit ae235b
Sat May  8 23:02:26 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	Merge from 2.4:
Packit ae235b
	
Packit ae235b
	* glib/gutils.h: Remove vestigial g_get_codeset().
Packit ae235b
	* glib/gutils.c (g_get_codeset): Call g_get_charset().
Packit ae235b
	(#137703, Owen Taylor)
Packit ae235b
Packit ae235b
2004-05-06  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* configure.in: Bump version number to 2.5.0.
Packit ae235b
Packit ae235b
Wed May  5 23:35:44 2004  Matthias Clasen  <maclas@gmx.de>
Packit ae235b
Packit ae235b
	* glib/gconvert.c (g_filename_from_uri): Quote the file
Packit ae235b
	scheme to mark it as untranslatable. String change.  
Packit ae235b
	(#133144, Danilo Segan)
Packit ae235b
Packit ae235b
2004-05-03  Pablo Saratxaga  <pablo@mandrakesoft.com>
Packit ae235b
Packit ae235b
	* configure.in: Added Walloon (wa) to ALL_LINGUAS
Packit ae235b
Packit ae235b
Sun May  2 03:51:59 2004  Manish Singh  <yosh@gimp.org>
Packit ae235b
Packit ae235b
	* glib/gtypes.h: check for __pentium4__ when deciding whether to
Packit ae235b
	use bswap for GUINT32_SWAP_LE_BE_IA32(). Fixes bug #141620.
Packit ae235b
Packit ae235b
2004-05-01  Hans Breuer  <hans@breuer.org>
Packit ae235b
Packit ae235b
	* glib/gnulib/Makefile.am : added makefile.msc to EXTRA_DIST
Packit ae235b
	fixes #141563, Steve Lhomme
Packit ae235b
Packit ae235b
2004-04-30  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* === Released 2.4.1 ===
Packit ae235b
Packit ae235b
	* configure.in: Version 2.4.1, interface age 1. 
Packit ae235b
Packit ae235b
	* NEWS: Updates
Packit ae235b
	
Packit ae235b
2004-04-25  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_get_package_installation_subdirectory):
Packit ae235b
	Plug memory leak. (#140770, John Ehresman)
Packit ae235b
Packit ae235b
2004-04-23  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
Packit ae235b
	Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
Packit ae235b
	point.  (#139134, Piotr Klaban)
Packit ae235b
Packit ae235b
	* glib/gconvert.c (open_converter): Don't call g_strerror() here, 
Packit ae235b
	since it can lead to infinite recursion.  (#139133, Piotr Klaban)
Packit ae235b
Packit ae235b
2004-04-22  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/testglib.c (main): Trivial warning fix.  (#140345)
Packit ae235b
Packit ae235b
	* tests/queue-test.c (main): Add some tests for off-by-one errors.
Packit ae235b
Packit ae235b
	* glib/gqueue.c (g_queue_pop_nth_link): Fix an off-by-one 
Packit ae235b
	error.  (#139703, Philippe Blain)
Packit ae235b
Packit ae235b
	* tests/testglib.c (main): Add testcases for g_message() involving
Packit ae235b
	non-printable and unsafe characters.
Packit ae235b
Packit ae235b
	* glib/gmessages.c (escape_string): Don't assume that
Packit ae235b
	string->str remains unchanged over g_string_insert() 
Packit ae235b
	calls.  (#139030, Christophe Saout)
Packit ae235b
Packit ae235b
	* glib/gstrfuncs.c (g_ascii_strtod): Fix problems when a 
Packit ae235b
	locale-specific decimal separator directly follows a 
Packit ae235b
	number.  (#138424, Nickolay V. Shmyrev)
Packit ae235b
Packit ae235b
	* tests/strtod-test.c (main): Add some more testcases.
Packit ae235b
Packit ae235b
	* glib/gmain.c (g_main_context_query): Only set time_is_current to 
Packit ae235b
	FALSE if context->timeout is not zero.  (#137795, Christian Krause)
Packit ae235b
Packit ae235b
2004-04-21  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/printf-test.c (main): Comment out a nonessential testcase
Packit ae235b
	which fails on HP-UX.  (#136283, Jonas Jonsson)
Packit ae235b
Packit ae235b
2004-04-15  Matthias Clasen  <mclasen@redhat.com>
Packit ae235b
Packit ae235b
	* tests/patterntest.c (main): Add tests for the empty pattern.
Packit ae235b
Packit ae235b
	* glib/gpattern.c (g_pattern_spec_new): Don't read and write out 
Packit ae235b
	of bounds when the pattern is empty.  (#140032, Stanislav Brabec,
Packit ae235b
	Stefan Fent)
Packit ae235b
Packit ae235b
2004-04-10  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gwin32.c (g_win32_getlocale): Add new language and
Packit ae235b
	sublanguage codes, from GNU gettext. (#137958)
Packit ae235b
	
Packit ae235b
	* glib/giowin32.c
Packit ae235b
	* glib/gmain.c
Packit ae235b
	* glib/gstrfuncs.c
Packit ae235b
	* glib/gthread.c: Decorating variable definitions with
Packit ae235b
	__declspec(dllexport) causes problems on Cygwin build, and isn't
Packit ae235b
	really needed for a native Win32 build with mingw or MSVC, so
Packit ae235b
	remove. (#138402, Roger Leigh)
Packit ae235b
Packit ae235b
	* glib/libcharset/localcharset.c: Use Win32-specific code also on
Packit ae235b
	Cygwin.
Packit ae235b
	* tests/uri-test.c: Don't assume that local filenames are in UTF-8
Packit ae235b
	on Cygwin, either. (#138412, Roger Leigh)
Packit ae235b
Packit ae235b
2004-04-08  Guntupalli Karunakar  <karunakar@freedomink.org>
Packit ae235b
Packit ae235b
        * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
Packit ae235b
Packit ae235b
2004-04-03  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* configure.in: Remove AC_CYGWIN, obsolete. Don't let pthreads be
Packit ae235b
	found on Cygwin, they don't work. (#138401, Roger Leigh)
Packit ae235b
Packit ae235b
2004-03-31  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* tests/spawn-test-win32-gui.c: Minor Cygwin fix. (#138405, Roger
Packit ae235b
	Leigh)
Packit ae235b
Packit ae235b
	* tests/unicode-encoding.c (process): Use UTF-16LE explicitly also
Packit ae235b
	on Cygwin. (#138423, Roger Leigh)
Packit ae235b
Packit ae235b
2004-03-30  Adam Weinberger  <adamw@gnome.org>
Packit ae235b
Packit ae235b
	* configure.in: Added en_CA to ALL_LINGUAS.
Packit ae235b
Packit ae235b
2004-03-21  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* glib/gutils.c (g_path_get_dirname): Fix Win32 behaviour in some
Packit ae235b
	cases where a drive letter is present. For 'a:' or 'a:foo', return
Packit ae235b
	'a:.'. This is mostly just for consistency with the behaviour
Packit ae235b
	without a drive letter. But very important is to for 'a:\foo' or
Packit ae235b
	'a:\', return 'a:\', and not 'a:'. (Ditto for forward slashes
Packit ae235b
	instead of backslashes.) (#137316)
Packit ae235b
Packit ae235b
	* tests/dirname-test.c (main): More complete testing on Win32. If
Packit ae235b
	a test fails, include expected and actual result in error message.
Packit ae235b
Packit ae235b
Fri Mar 19 15:21:09 2004  Owen Taylor  <otaylor@redhat.com>
Packit ae235b
Packit ae235b
	* glib/gmain.c: Fix the accidental revert of the
Packit ae235b
	fixes from #112222 that happened when the GChildWatch
Packit ae235b
	code was added. (Caught by Christian Persch)
Packit ae235b
Packit ae235b
Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
Packit ae235b
Packit ae235b
	* tests/atomic-test.c (main): Make computation
Packit ae235b
	of "biggest_pointer" vaguely more portable.
Packit ae235b
	(#137498, Jonas Jonsson)
Packit ae235b
Packit ae235b
2004-03-16  Tor Lillqvist  <tml@iki.fi>
Packit ae235b
Packit ae235b
	* configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
Packit ae235b
	on Win32) case, where the 64-bit type is called long long, but the
Packit ae235b
	system printf/scanf format modifier for 64-bit integers is still I64.
Packit ae235b
Packit ae235b
2004-03-16  Gareth Owen  <gowen72@yahoo.com>
Packit ae235b
Packit ae235b
	* configure.in: Added en_GB to ALL_LINGUAS
Packit ae235b