-2004-12-02 Matthias Clasen <mclasen@redhat.com>
+2005-08-12 Matthias Clasen <mclasen@redhat.com>
- * glib/gutils.c (g_get_system_config_dirs): Don't forget to
- initialize g_system_config_dirs. (#160213, Frederic Crozat)
+ * configure.in: Bump version
-Wed Dec 1 17:04:37 2004 Manish Singh <yosh@gimp.org>
+ * === Released 2.8.0 ===
- * glib/gstring.h (g_string_append_c_inline): actually enable (and
- fix up the length test).
+ * NEWS: Updates
-2004-11-30 Tor Lillqvist <tml@iki.fi>
+2005-08-12 Tim-Philipp Müller <tim at centricular dot net>
- * glib/Makefile.am (glib.def): gcc -E complains "linker input file
- unused because linking not done" if told to preprocess the
- glib.symbols file. Use '-' and redirection to pass it as standard
- input instead.
+ * gobject/genums.c: (g_flags_get_first_value): Special-case flag
+ value of 0. Instead of returning the first random GFlagsValue
+ we come across, return the GFlagsValue for 0 if it exists or
+ NULL if it does not exist. Never return the GFlagsValue for 0
+ if the requested flags value is nonzero.
-2004-11-30 Matthias Clasen <mclasen@redhat.com>
+2005-08-12 Matthias Clasen <mclasen@redhat.com>
- * NEWS: Updates
+ * configure.in: Bump version to 2.8.0
-2004-11-30 Tor Lillqvist <tml@iki.fi>
+2005-08-11 Tor Lillqvist <tml@novell.com>
- * glib/gspawn-win32-helper.c (WinMain): Also check errno to detect
- true errors from spawn*(). (#157258, reported by Bruce Hochstetler)
+ * glib/gutils.c (g_get_any_init): Use "localhost" as fallback for
+ g_get_host_name(), not "unknown".
-2004-11-29 Matthias Clasen <mclasen@redhat.com>
+2005-08-10 Stepan Kasal <kasal@ucw.cz>
- * glib/gmacros.h (G_GNUC_MALLOC): Define empty for gcc 2.95.
+ Fix typos: Invokation --> Invocation (in various places)
- * glib/gmarkup.c (unescape_text_state_after_charref_hash):
- Avoid a strndup() here, noticed by Morten Welinder.
+2005-08-10 Matthias Clasen <mclasen@redhat.com>
-2004-11-29 Matthias Clasen <mclasen@redhat.com>
+ * glib/gfileutils.c (g_build_path_va, g_build_pathname_va):
+ Take a va_list*, not a va_list, to avoid compiler warnings
+ about uninitialized variables.
- * glib/gmarkup.c: Remove leftover noinline attributes.
- (is_name_start_char, is_name_char): Avoid possible reads
- beyond the end of g_ascii_table.
+2005-08-09 Matthias Clasen <mclasen@redhat.com>
- * glib/Makefile.am: Use the perl found by configure. (#149826,
- Morten Welinder)
+ * tests/gobject/Makefile.am (test_programs): Add it here.
-Sun Nov 28 13:13:56 2004 Manish Singh <yosh@gimp.org>
+ * tests/gobject/gvalue-test.c: Beginning of a test suite
+ for GValue.
- * glib/abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.
+ * NEWS: Updates
- * tests/utf8-validate.c: cast pointer math to gint for error print
- message.
+2005-08-08 Matthias Clasen <mclasen@redhat.com>
-Sun Nov 28 12:07:29 2004 Manish Singh <yosh@gimp.org>
+ * glib/gutils.c (_g_compute_locale_variants): Initialize
+ variables to not make gcc nervous.
- * tests/utf8-validate.c: minor comment fix.
+2005-08-08 Manish Singh <yosh@gimp.org>
-2004-11-28 Matthias Clasen <mclasen@redhat.com>
+ * glib/abicheck.sh: remove stray -V option to grep so it actually
+ works.
- * glib/gconvert.h:
- * glib/gkeyfile.h:
- * glib/gmem.h:
- * glib/gstrfuncs.h:
- * glib/gunicode.h:
- * glib/gutils.h: Mark functions with G_GNUC_MALLOC when appropriate.
+2005-08-08 Matthias Clasen <mclasen@redhat.com>
- * glib/glib.symbols: Add G_GNUC_MALLOC annotations.
+ * tests/convert-test.c: Enable the endianness test.
- * glib/gmacros.h (G_GNUC_MALLOC): Add a macro for
- __attribute__((__malloc__)). (#61780)
+ * glib/gconvert.c: Make the caching of iconv descriptors
+ optional.
-2004-11-28 Tor Lillqvist <tml@iki.fi>
+ * configure.in: Add an --enable-iconv-cache option, and
+ default to disabling iconv caching on new enough glibc.
+ Somebody with access to Solaris systems will need to test
+ if opening/closing of iconv descriptors is enough of
+ a performance problem to warrant the caching on that
+ platform. Note that the caching is causing correctness
+ problems in some corner cases, thus turning it off
+ is desirable unless it has severe performance implications.
- * glib/gutils.[hc]
- * glib/glib.symbols: [Win32] Make also g_get_user_name() and
- g_get_real() name return UTF-8. As for the similar changes to fix
- #101792, for DLL ABI stability we use preprocessor defines to get
- the new UTF-8 versions, and keep the old names for versions
- returning strings in the system codepage.
+ * tests/convert-test.c: Add a test for
+ endianness handling.
- Fix g_get_tmp_dir() and g_get_home_dir() to actually return UTF-8
- as was intended in the fix for bug #101792. (#159664, noticed by
- Robert Ögren)
+2005-08-08 Sunil Mohan Adapa <sunil@atc.tcs.co.in>
-2004-11-28 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Added "te" to ALL_LINGUAS.
- * glib/gmarkup.c: Optimizations; don't scan the entire text
- in find_current_text_end(), split unescape_text() into multiple
- functions. (#159001, Havoc Pennington)
+2005-08-08 Matthias Clasen <mclasen@redhat.com>
-2004-11-27 Matthias Clasen <mclasen@redhat.com>
+ * tests/Makefile.am: Add convert-test here.
- * glib/gspawn.c (g_spawn_async_with_pipes): Update the @flags
- documentation with references to GChildWatch and
- g_spawn_close_pid(). (#136255, noted by Owen Taylor)
+ * tests/convert-test.c: Add the beginning of a testsuite
+ for g_convert() and friends.
-2004-11-26 Matthias Clasen <mclasen@redhat.com>
+2005-08-06 Matthias Clasen <mclasen@redhat.com>
- * glib/gkeyfile.c (g_key_file_parse_value_as_string):
- Don't access invalid memory address if p wasn't
- increased. (#159557, Frederic Crozat)
+ * glib/glib.symbols: Include glib_on_error_halt.
+
+ * glib/abicheck.sh: Also check exported variables.
-2004-11-25 Matthias Clasen <mclasen@redhat.com>
+2005-08-05 Manish Singh <yosh@gimp.org>
- * tests/strtod-test.c (main): Add a testcase for the previous fix.
+ * tests/refcount/closures.c: remove unused n_threads variable.
- * glib/gstrfuncs.c (g_ascii_strtod): Make it work again for floats
- starting with a decimal point, like .75 (#156421, Hans Breuer)
+2005-08-05 Matthias Clasen <mclasen@redhat.com>
-Thu Nov 25 14:02:43 2004 Manish Singh <yosh@gimp.org>
+ * configure.in: Bump version
- * glib/abicheck.sh: filter out G_GNUC stuff when doing the compare.
+ * === Released 2.7.7 ===
- * glib/gmessages.c (g_assert_warning): call abort() at the end, so
- gcc doesn't warn.
+ * NEWS: Updates
+
+2005-08-04 Matthias Clasen <mclasen@redhat.com>
-2004-11-25 Kjartan Maraas <kmaraas@gnome.org>
+ * glib/glib.symbols:
+ * glib/gatomic.[hc]: Always export g_atomic_int_get and
+ g_atomic_pointer_get as functions, even if we have macros,
+ to avoid changing the ABI depending on configuration.
+
+ * glib/gatomic.c: Fix the s390 implementations of
+ g_atomic_pointer_compare_and_exchange.
- * configure.in: Add «nb» to ALL_LINGUAS.
+2005-08-04 Tor Lillqvist <tml@novell.com>
-2004-11-24 Tor Lillqvist <tml@iki.fi>
+ * glib/gstdio.h: Move the G_BEGIN_DECLS/G_END_DECLS pair outside
+ the #if/#else/#endif block. Otherwise we had G_BEGIN_DECLS without
+ matching G_END_DECLS on Unix, and G_END_DECLS without matching
+ G_BEGIN_DECLS on Win32.
- * glib/gwin32.c (g_win32_error_message,
- get_package_directory_from_module,
- g_win32_get_package_installation_directory,
- g_win32_get_package_installation_subdirectory): Use wide character
- API when available. Document that string parameters and return
- values are in UTF-8.
+2005-08-03 Matthias Clasen <mclasen@redhat.com>
-2004-11-24 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Bump version
- * glib/gutf8.c: Replace g_utf8_validate() with an
- optimized version, and clarify the docs a bit. (#159131,
- Owen Taylor)
+ * === Released 2.7.6 ===
- * tests/Makefile.am (test_programs): Add utf8-validate.
+ * NEWS: Updates
- * tests/utf8-validate.c: Unit tests for g_utf8_validate().
+2005-08-03 Ross Burton <ross@burtonini.com>
-2004-11-23 Matthias Clasen <mclasen@redhat.com>
+ * docs/reference/glib/tmpl/windows.sgml:
+ Add a long description, pointing people at Cygwin for a complete
+ Unix library.
- * glib/goption.h: Don't mark g_option_error_quark() as const,
- to be consistent with all the other error_quark functions.
- (technically they are const, but since these are called only
- in error paths, giving the compiler better optimization
- opportunities doesn't matter much)
+ * glib/gutils.c:
+ Document return value of g_get_host_name().
-2004-11-23 Matthias Clasen <mclasen@redhat.com>
+2005-08-03 Matthias Clasen <mclasen@redhat.com>
- Fix a problem with the PLT reduction changes which caused the
- internal aliases to lose all attributes.
-
- * glib/glib.symbols: Add attribute annotations.
- * glib/makegalias.pl: Keep attribute annotations, but strip PRIVATE.
- * glib/Makefile.am (glib.def): Strip attribute annotations, but keep
- PRIVATE.
+ * glib/gatomic.c: Add native atomic operations
+ for s390.
-2004-11-21 Hans Breuer <hans@breuer.org>
+ * configure.in: ... and use them on s390.
- * **/makefile.msc : updated
+2005-08-03 Ross Burton <ross@burtonini.com>
-2004-11-16 Matthias Clasen <mclasen@redhat.com>
+ * glib/gstdio.c:
+ Fix DocBook tag typo. (#311966)
- * m4macros/glib-2.0.m4 (AM_PATH_GLIB_2_0): Support gmodule-no-export.
+2005-08-03 Matthias Clasen <mclasen@redhat.com>
- * Makefile.am (EXTRA_DIST):
- * configure.in (AC_CONFIG_FILES): Add gmodule-no-export-2.0.pc.in
+ * glib/gstdio.h: Add G_BEGIN_DECLS/G_END_DECLS. (#312424)
- * gmodule-no-export-2.0.pc.in: Add a variants of gmodule-2.0.pc.in
- which doesn't add -Wl,--export-dynamic, since Pango or GTK+ don't
- need it. (#125627, Owen Taylor)
+2005-08-02 Matthias Clasen <mclasen@redhat.com>
-2004-11-17 Matthias Clasen <mclasen@redhat.com>
+ * glib/gconvert.c (g_convert_with_iconv): Don't go in an
+ infinite loop if the input text ends in an incomplete multibyte
+ character. (#312402, Sebastien Bacher)
- * glib/gkeyfile.c: Define S_ISREG() on windows, since it
- is not present there. (#158469, Kazuki IWAMOTO)
+ * Bump version
-2004-11-15 Matthias Clasen <mclasen@redhat.com>
+ * === Released 2.7.5 ===
- * glib/gkeyfile.c (g_key_file_load_from_fd): Use S_ISREG(), since
- S_IFMT and S_IFREG are apprarently missing on some systems (they
- are SUS, but not Posix). (#158263)
+ * NEWS: Updates
-2004-11-12 Matthias Clasen <mclasen@redhat.com>
+2005-08-02 Matthias Clasen <mclasen@redhat.com>
- * configure.in: Bump version.
+ * glib/gconvert.c (g_convert_with_iconv, g_convert_with_fallback):
+ Cleanup converter state after the conversion. Document streaming
+ conversion pitfalls. (#311337)
- * === Released 2.5.6 ===
-
-2004-11-11 J. Ali Harlow <ali@juiblex.co.uk>
+2005-08-02 Tor Lillqvist <tml@novell.com>
- * gobject/Makefile.am:
- * glib/Makefile.am (gtk.def): Use embedded tab rather than '\t'
- escape sequence. (#157951)
+ * tests/refcount/objects.c
+ * tests/refcount/properties.c
+ * tests/refcount/signals.c: Use g_usleep() instead of sleep() for
+ portability.
-2004-11-10 Tor Lillqvist <tml@iki.fi>
+Mon Aug 1 23:33:47 2005 Tim Janik <timj@imendio.com>
- * glib/gconvert.c (g_get_filename_charsets): Fix typo in doc
- comment.
+ * tests/refcount/closures.c: test high contention on closure
+ reference counts to trigger and catch non-atomic updates.
-2004-11-10 Matthias Clasen <mclasen@redhat.com>
+ * tests/refcount/objects.c:
+ * tests/refcount/objects2.c:
+ * tests/refcount/properties.c:
+ * tests/refcount/properties2.c:
+ * tests/refcount/signals.c:
+ fixed up test and threading fundamentals. variables accessed from all
+ threads need to be volatile. context switches are enforced by using
+ g_thread_yield(), not g_usleep(1) which may result in busy waits on
+ some platforms. for testcode, always consider all warnings and
+ critical messages fatal. issue the currently running program on
+ stdout. improved progress indicators.
- * NEWS: Updates
+ * tests/refcount/properties.c:
+ * tests/refcount/objects.c:
+ don't overdo the number of testing threads to keep the testing machine
+ usable, 2 threads can produce as much contention as 20 if executing the
+ same code.
-Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org>
+ * tests/refcount/signals.c: only start 1 thread per object. GObject
+ doesn't provide mutually exclusive object access, but only mutually
+ exclusive reference count modification.
- * glib/gasyncqueue.c
- * glib/ghook.c
- * glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail
+ * tests/Makefile.am: added closures test.
- * glib/gmain.c: Ditto, plus also make g_main_context_ref() actually
- return the passed in pointer.
+2005-08-01 Tor Lillqvist <tml@novell.com>
-2004-11-08 Matthias Clasen <mclasen@redhat.com>
+ * tests/uri-test.c: Make it pass on Win32.
+ (from_uri_tests[]): Take into consideration that on Win32 we don't
+ return "localhost" hostnames.
+ (safe_strcmp_filename): New function that considers slash and
+ backslash equal on Win32.
+ (safe_strcmp_hostname): New function that considers "localhost"
+ equal NULL on Win32.
+ (run_roundtrip_tests): Use safe_strcmp_filename() and
+ safe_strcmp_hostname().
- * glib/gnode.h (enum GTraverseFlags): Add G_TRAVERSE_LEAVES
- and G_TRAVERSE_NON_LEAVES as alternative names for
- G_TRAVERSE_LEAFS and G_TRAVERSE_NON_LEAFS, which are
- grammatically brutal. (#138853, Morten Welinder)
-
- * glib/gasyncqueue.[hc]:
- * glib/ghook.[hc]:
- * glib/gmain.[hc]:
- * glib/giochannel.[hc]: Make g_io_channel_ref(),
- g_main_context_ref(), g_hook_ref(), g_async_queue_ref()
- return the passed in pointer. (#151663, Manish Singh)
+Sun Jul 31 01:50:20 2005 Tim Janik <timj@gtk.org>
- * glib/gmain.c: Initialize child_watch_count to 1, so
- that we don't miss the very first child if it exits
- before we set up the child watch. In that case we had
- previously source->count == child_watch_count == 0,
- causing g_child_watch_check() to skip the waitpid()
- call. (#154827, Gustavo Carneiro)
+ * glib/gdataset.c:
+ moved G_DATALIST_*_POINTER() macros here, because proper use requires
+ the global g_dataset_global mutex to be acquired.
+ g_datalist_id_get_data():
+ g_datalist_unset_flags():
+ g_datalist_set_flags(): properly acquire and release dataset mutex.
- * glib/gmain.c (g_child_watch_source_init_single)
- (g_child_watch_source_init_multi_threaded): Use sigaction()
- instead of signal(). (#136867, Jonas Jonsson, patch by
- Archana Shah)
+ * glib/gdatasetprivate.h: implement G_DATALIST_GET_FLAGS() via atomic
+ pointer access to account for memory barriers. moved all other macros.
-2004-11-07 Matthias Clasen <mclasen@redhat.com>
+2005-07-26 Matthias Clasen <mclasen@redhat.com>
- * glib/gutils.c (g_get_any_init): Work around an bug
- in Mac OS < 10.3. (#156446, Dave MacLachlan)
+ * glib/goption.c: Include glibintl.h, not gi18n.h, noticed
+ by Dan Winship.
-2004-11-06 Tor Lillqvist <tml@iki.fi>
+ * configure.in: Try -mt as compiler flag for threads, needed
+ for the HP C compiler on HP-UX. (#163051, Paul Cornett)
- * glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL
- define to the same place where it is in a configure-generated
- glibconfig.h
+ * glib/ghash.c (g_hash_table_foreach): Fix a typo in the
+ docs. (#311569, Ross Burton)
-2004-11-05 Matthias Clasen <mclasen@redhat.com>
+2005-07-21 Matthias Clasen <mclasen@redhat.com>
- * tests/strtod-test.c: Portability fixes and extra sanity
- checks. (#157453, Morten Welinder)
+ * configure.in: Bump version
-2004-11-04 Matthias Clasen <mclasen@redhat.com>
+ * === Released 2.7.4 ===
- * glib/gstrfuncs.c (g_ascii_strtod): Handle numbers like
- 1e1, nan, -infinity. Also try harder to preserve errno.
- (#156421, Morten Welinder)
+ * NEWS: Updates
- * tests/strtod-test.c: Add testcases.
+2005-07-20 Manish Singh <yosh@gimp.org>
-2004-11-04 Tor Lillqvist <tml@iki.fi>
+ * tests/refcount/signals.c: use G_CALLBACK for signal connections.
- * glib/goption.h (enum GOptionFlags): Add G_OPTION_FLAG_REVERSE,
- to reverse the sense of a G_OPTION_ARG_NONE (boolean) option.
+2005-07-20 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.c (parse_arg): Obey the above flag.
+ * glib/gthreadpool.c (g_thread_pool_free): Don't get
+ stuck in here if immediate is TRUE. (#310954,
+ Hong Jen Yee)
- * glib/gconvert.c (g_filename_display_name): Document that the
- result is guaranteed to be non-NULL.
+ * tests/threadpool-test.c (main): Test immediate == TRUE.
- * glib/gfileutils.c (get_contents_stdio, get_contents_regfile,
- get_contents_posix, get_contents_win32, g_file_open_tmp,
- g_file_read_link): Use g_filename_display_name() for error
- messages.
- (g_mkstemp): Document that the template should be in the GLib file
- name encoding.
- (g_file_open_tmp): Ditto. Also document that the actual name
- returned is also in the GLib file name encoding.
+2005-07-20 Tor Lillqvist <tml@novell.com>
-2004-11-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/gutils.h (g_win32_get_system_data_dirs): Make this an
+ inline function. Define it only if G_CAN_INLINE and not
+ C++. (#173098)
- * glib/gconvert.c (g_filename_display_name): New function
- to convert a filename to a UTF-8 string for display
- purposes. (requested by Alex Larsson)
-
- * glib/gconvert.c (g_get_filename_charsets): New function
- to return the encodings which are tried when converting a
- filename to UTF-8. (#151465, François Gagné)
+2005-07-19 Matthias Clasen <mclasen@redhat.com>
-2004-11-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/gstring.c (g_string_chunk_insert_len): Avoid
+ an unnecessary strlen if len is -1. (#169692,
+ Benoit Dejean)
+
+ * glib/gatomic.c (g_atomic_pointer_compare_and_exchange):
+ Fix g_atomic_pointer_compare_and_exchange on sparc64.
+ (#167572, Gert Doering)
+
+2005-07-15 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
- * === Released 2.5.5 ===
+ * === Released 2.7.3 ===
+
+2005-07-15 Matthias Clasen <mclasen@redhat.com>
- * NEWS: Updates
+ * tests/Makefile.am (SUBDIRS): Add tests/refcount
-2004-11-02 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Add tests/refcount
- * glib/glib.symbols: Add new functions.
+ * tests/refcount/properties.c: Test property changes
+ from multiple threads.
- * glib/gconvert.c: Fix doc comment for
- g_get_filename_charsets().
+ * tests/refcount/signals.c: Test signal emission from
+ multiple threads.
- * glib/gconvert.c (g_filename_display_name): New function to
- convert a filename to a UTF-8 string for display purposes.
- (g_get_filename_charsets): New function to return the
- encodings which are tried when converting a filename to
- UTF-8.
+ * tests/refcount/objects.c: Test refcounting from
+ multiple threads.
- * glib/goption.c (g_option_context_parse): Document that
- this function may not return.
+ * tests/refcount/objects2.c:
+ * tests/refcount/properties2.c: Tests to measure the
+ overhead of threadsafe refcounting.
+
+ * glib/giochannel.c (g_io_channel_ref, g_io_channel_unref):
+ Use atomic operations to make refcounting
+ threadsafe. (#166020, Wim Taymans)
-2004-11-01 Matthias Clasen <mclasen@redhat.com>
+ * NEWS: Updates
- * glib/gutils.h: Make gtkdoc-scan happy by removing spaces
- between gchar and *.
+2005-07-14 Matthias Clasen <mclasen@redhat.com>
-2004-11-01 Tor Lillqvist <tml@iki.fi>
+ * tests/spawn-test.c:
+ * tests/uri-test.c:
+ * tests/thread-test.c:
+ * tests/queue-test.c:
+ * tests/mainloop-test.c:
+ * tests/iochannel-test.c:
+ * tests/gio-test.c:
+ * tests/child-test.c: Make the tests silent on success.
- * glib/gstdio.c (g_lstat): Implement correctly also on Unix
- systems without lstat(). (#157038, Morten Welinder)
+2005-07-13 Matthias Clasen <mclasen@redhat.com>
-2004-11-01 Ray Strode <rstrode@redhat.com>
+ * glib/gfileutils.c (g_mkdir_with_parents): Fix a
+ typo. (#310243, Richard Laager)
- * glib/gkeyfile.c:
- (g_key_file_get_locale_string): don't return an
- error if we come across a value with invalid utf8 or
- if we don't find a translated string. Just fallback
- to the untranslated string (Mark McLoughlin, bug
- #156790).
-
- * glib/gkeyfile.c:
- (g_key_file_init), (g_key_file_clear): track the
- actual start GKeyFileGroup rather than just its name
- (g_key_file_parse_group): allow add_group() to
- update the start group.
- (g_key_file_remove_group_node): update the start
- group if it gets removed (Mark McLoughlin, bug
- #156790).
-
- * glib/gkeyfile.c:
- (g_key_file_parse_string_as_value): Don't escape
- tabs and spaces in the middle of key values.
-
-2004-11-01 Matthias Clasen <mclasen@redhat.com>
-
- * glib/gconvert.c:
- * glib/gdebug.h
- * glib/gutils.c
- * gobject/gtype.c
- * gthread/gthread-posix.c
- * tests/timeloop-closure.c
- * tests/timeloop.c: Fix sparse warnings. (#157014, Kjartan Maraas)
-
-2004-11-01 Matthias Clasen <mclasen@redhat.com>
-
- * glib/goption.c: Documentation updates.
-
- Handle conflicts between options in different groups. (#156808)
-
- * glib/goption.c (g_option_context_parse): When a long option does not
- match exactly, try to parse it as --group-option.
- (g_option_context_add_group): Warn if a group name conflict occurs.
+ * glib/goption.c (g_option_group_add_entries): Warn if a
+ short name is not acceptable.
- * glib/goption.c (print_help): Print out the effective options, ie
- don't print shadowed short options, and for long options print
- --group-option instead of --option if appropriate.
+2005-07-12 Matthias Clasen <mclasen@redhat.com>
-2004-10-31 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.h (G_OPTION_FLAG_NOALIAS):
+ * glib/goption.c: Add and implement a new flag
+ to turn off the automatic <groupname>- prefixing
+ for conflict resolution of long option names. (#171840,
+ Adam McLaurin)
+
+ All optional callback arguments (#308886, Pawel
+ Sliwowski)
- * glib/gwin32.c: Add bits of markup to g_win32_get_windows_version()
- docs.
+ * glib/goption.h (G_OPTION_FLAG_OPTIONAL_ARG):
+ * glib/goption.c: Add and implement a new flag
+ to indicate that a callback *optionally* takes another
+ argument.
-2004-10-31 Tor Lillqvist <tml@iki.fi>
+ * tests/option-test.c: Add tests for optional arguments.
- * glib/gwin32.c: Document g_win32_get_windows_version().
+2005-07-12 Matthias Clasen <mclasen@redhat.com>
- * glib/gstdio.[ch]: Add g_lstat().
+ * glib/gthread.c (g_static_rec_mutex_lock_full): Don't lock
+ if depth is zero. (#310148, Wim Taymans)
-2004-10-29 Matthias Clasen <mclasen@redhat.com>
+2005-07-10 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.c: Doc additions.
+ * glib/gutils.c (g_listenv): Ignore anomalous environment
+ entries which are not of the form variable=value. (#309859,
+ Morten Welinder)
- * glib/goption.c (parse_arg): Convert filenames to UTF-8 on
- Windows.
+2005-07-09 Tor Lillqvist <tml@novell.com>
-2004-10-29 Hans Breuer <hans@breuer.org>
+ * glib/giowin32.c: Totally rewritten socket channel
+ implementation. See discussion in bug #147392.
- * glibconfig.h */makefile.msc.in : updated [and finally fixed my
- script to produce ready to go de-in(ed) files, w/o autotools]
+ * configure.in: Don't use autoconf variables for the resource
+ object files on Win32 any longer. Instead handle that in the
+ Makefile.am files. Check for windres.
- * */*.rc.in : updated copyrights to 2004
+ * glibconfig.h.win32.in: Minor tuning to match the
+ configure-produced glibconfig.h closely.
- * glib/gutils.c : some CSIDL_* defines lacking from older SDK;
- use the same fallback mecahnism as on *NIX where ever applicable
+ * glib/Makefile.am: Don't use the scripts in build/win32 to
+ compile glib.rc into a resource object file. (This means we lose
+ the build number increment magic, but I doubt it was that useful
+ anyway.) Instead use windres directly. To pass the normal .o file
+ produced by windres through libtool, which wants .lo files, pass
+ it directly to the linker using a -Wl option.
-2004-10-29 Matthias Clasen <mclasen@redhat.com>
+ * glib/glib.rc.in: Thus replace BUILDNUMBER with 0.
- * tests/option-test.c: Add tests for the handling of
- non-option arguments, "--" and G_OPTION_REMAINING.
+2005-07-08 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.[hc]: #define G_OPTION_REMAINING, which is
- a special long option name, which can be used for an option
- in the main group which collects the non-option arguments.
- It must be of type G_OPTION_ARG_STRING_ARRAY or
- G_OPTION_ARG_FILENAME_ARRAY. If the main group doesn't contain
- an option whose name is G_OPTION_REMAINING, the non-option
- arguments are left behind in argv as before.
+ * configure.in: Bump version
+
+ * === Released 2.7.2 ===
- * glib/goption.c: Add documentation.
+ * NEWS: Updates
-2004-10-28 Matthias Clasen <mclasen@redhat.com>
+2005-07-07 Matthias Clasen <mclasen@redhat.com>
- * glib/gmessages.h: Mark g_assert_warning as G_GNUC_NORETURN,
- to avoid compiler warnings. (#156767, Owen Taylor)
+ * configure.in: Make the size_t size detection work on AIX.
+ (#309725)
-2004-10-29 Tor Lillqvist <tml@iki.fi>
+2005-07-06 Matthias Clasen <mclasen@redhat.com>
- * glib/gstdio.c: Include also <direct.h> for mkdir() prototype
- with MSVC. [156727, Kazuki IWAMOTO]
+ * configure.in: Require a newer gtk-doc.
- * glib/giochannel.h (g_io_channel_new_file): Redefine also
- g_io_channel_new_file to the UTF-8 version on Win32. [156725,
- Kazuki IWAMOTO)
+2005-07-01 Hans Breuer <hans@breuer.org>
-2004-10-28 Ray Strode <rstrode@redhat.com>
+ * glib/gmessages.c : include <process.h> for getpid()
+ * glib/gmappedfile.c : include <io.h> for close() etc.
+ * glib/makefile.msc.in : add gmappedfile.obj
- * glib/gkeyfile.c
- (find_file_in_data_dirs): clean up a leak (#156652,
- Morten Welinder)
- (g_key_file_load_from_fd): propagate fstat() error
- conditions and retry read on EAGAIN (#156647, Morten
- Welinder). Return error if file is NOT regular, not if
- it is regular (bug introduced from last commited bug
- fix).
- (g_key_file_load_from_data_dirs): allocate enough space
- for the terminating NULL.
+2005-07-01 Matthias Clasen <mclasen@redhat.com>
-2004-10-28 Ray Strode <rstrode@redhat.com>
+ * glib/gkeyfile.c (g_key_file_get_key_comment):
+ (g_key_file_get_top_comment): Don't reverse the order of multiline
+ comments.
+ (g_key_file_get_group_comment): Actually get the group comment.
- * glib/gkeyfile.c: Don't use S_ISREG macro (#156728,
- Kazuki IWAMOTO)
+ * tests/keyfile-test.c (test_comments): Test that comments are
+ handled properly. (#309263, Mikael Magnusson)
-2004-10-28 Matthias Clasen <mclasen@redhat.com>
+2005-06-30 Matthias Clasen <mclasen@redhat.com>
- * glib/gstdio.c: Include galias.h before glib.h (#156697,
- Christophe Fergeau)
+ * configure.in: Bump version
- * glib/gkeyfile.c: Add a missing "Since: 2.6" comment.
+ * === Released 2.7.1 ===
-2004-10-28 Tor Lillqvist <tml@iki.fi>
+2005-06-30 Matthias Clasen <mclasen@redhat.com>
- * glib/gstdio.c: Include glib.h early to get G_OS_WIN32. Include
- errno.h for errno.
+ * glib/gstring.c (g_str_hash): Fix portability issues.
+ (#307064, Morten Welinder)
- * glib/gkeyfile.c: Include gstdio.h and use g_open().
+ Apply a patch which may make GLib work on BeOS again.
+ (#309157, Kian Duffy)
-2004-10-27 Ray Strode <rstrode@redhat.com>
+ * glib/gmain.c: Update the BeOS includes.
- * glib/gkeyfile.c:
- (g_key_file_load_from_fd),
- (g_key_file_load_from_file):
- Move file is regular check to load_from_file to use
- fstat() instead of race prone g_file_test(). Don't
- clear/init until needed. Change error messages to be
- more consistent.
- (g_key_file_load_from_data),
- (g_key_file_load_from_data_dirs),
- (g_key_file_parse_data),
- (g_key_file_get_value),
- (g_key_file_get_string),
- (g_key_file_set_string),
- (g_key_file_get_string_list),
- (g_key_file_set_string_list),
- (g_key_file_set_locale_string),
- (g_key_file_get_locale_string),
- (g_key_file_set_locale_string_list),
- (g_key_file_get_boolean),
- (g_key_file_set_boolean),
- (g_key_file_get_boolean_list),
- (g_key_file_set_boolean_list),
- (g_key_file_get_integer),
- (g_key_file_get_integer_list),
- (g_key_file_set_integer_list),
- (g_key_file_remove_key):
- Add more g_return_*if_fail checks for public functions.
+ * glib/gstdio.c:
+ * glib/gutils.c (g_find_program_in_path):
+ * glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
+ implementation on BeOS, as well.
-2004-10-27 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
+ on BeOS.
- * configure.in: Bump version.
+ * NEWS: Updates
- * === Released 2.5.4 ===
+2005-06-26 Tor Lillqvist <tml@novell.com>
-2004-10-27 Matthias Clasen <mclasen@redhat.com>
+ * glib/Makefile.am: libtool installs/uninstalls the import
+ library, no need to do it ourselves. Do still install/uninstall
+ the .def file, though.
- * glib/abicheck.sh: Strip Win32 specific defs file syntax.
+ * glib/gmappedfile.c: Add Win32 implementation.
+ (g_mapped_file_free): Don't mention writable shared mappings in
+ the doc comment. Free the GMappedFile struct.
- * NEWS: Updates.
+ * tests/mapping-test.c (main): No kill() or SIGUSR1 on Win32, use
+ a flag file instead to stop the child. Use g_usleep() instead of
+ sleep().
-2004-10-27 Matthias Clasen <mclasen@redhat.com>
+2005-06-24 Matthias Clasen <mclasen@redhat.com>
- Introduce the idea of a filename encoding, which is
- *literally* the filename encoding on Unix. On Windows,
- use the Unicode name converted to UTF-8. (#101792,
- Tor Lillqvist, Owen Taylor)
+ Add an mmap() wrapper called GMappedFile. (#148218,
+ David Schleef, Behdad Esfahbod)
- * glib/gdir.[hc]:
- * glib/gconvert.[hc]:
- * glib/gfileutils.[hc]:
- * glib/gutils.[hc]:
- * glib/giowin32.c: On Windows, keep old ABI versions
- of GLib pathname api for DLL ABI stability. Use different
- names for the new-style UTF-8 versions. Hide this through
- a #define.
+ * glib/gmappedfile.[hc]: New files.
- * glib/gstdio.[hc]: New files containing wrappers for
- POSIX pathname api.
+ * configure.in: Check for mmap.
+
+ * glib/Makefile.am: Add new files.
+
+ * glib/glib.symbols: Add new functions.
- * glib/glib.symbols: Add new symbols.
+ * glib/glib.h: Include gmappedfile.h
- * glib/makegalias.pl: Drop Win32 specific .def syntax,
- include gstdio.h
+ * tests/mapping-test.c: Tests for GMappedFile.
-2004-10-27 Matthias Clasen <mclasen@redhat.com>
+ * tests/Makefile.am: Add new file.
- * glib/gkeyfile.c: Fix includes. (#156500, #156499,
- Kazuki IWAMOTO)
+ * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-man.
- * glib/Makefile.am (galias.h): Fix srcdir != builddir
- builds. (#156447, Thomas Fitzsimmons)
+2005-06-24 Tor Lillqvist <tml@novell.com>
-2004-10-26 Gora Mohanty <gmohanty@cvs.gnome.org>
+ * glib/Makefile.am (install-libtool-import-lib): Current GNU tools
+ do understand the PRIVATE keyword.
- * configure.in: Added 'or' to ALL_LINGUAS.
+ * glib/gfileutils.c (g_mkdir_with_parents): Return error with
+ EINVAL also for empty pathnames.
+ (g_build_pathname_va): Fix typo.
-2004-10-26 Matthias Clasen <mclasen@redhat.com>
+Thu Jun 23 15:52:08 2005 Manish Singh <yosh@gimp.org>
- * glib/gkeyfile.c: Include galias.h.
-
- * glib/gkeyfile.c (g_key_file_parse_value_as_comment):
- Don't compare strings and chars.
-
- * glib/glib.symbols: Add new symbols.
-
- * glib/gkeyfile.c (g_key_file_new): Fix docs.
-
- * glib/gkeyfile.h: Use the same parameter names as in
- the implementation and the docs.
-
- * glib/gwin32.c (g_win32_get_windows_version): Make this
- function thread-safe in the GLib style.
- * glib/gthreadinit.h:
- * glib/gwin32.c (_g_win32_thread_init): New function to
- initialize the version.
- * glib/gthread.c (g_thread_init_glib): Call
- _g_win32_thread_init() from here.
-
-2004-10-26 Ray Strode <rstrode@redhat.com>
-
- * glib/gkeyfile.c: Add Matthias to "Written by" lines
- (GKeyFileGroup): add field to hold comments about groups
- (g_key_file_load_from_fd): return TRUE on success and
- FALSE on failure. Don't close fd's opened by other
- parent function.
- (g_key_file_load_from_file): run FILE_IS_REGULAR test
- before trying to open file, to save an fd from being
- leaked (would probably be better to use fstat()). Close
- fd when done with it. Return TRUE on success and FALSE
- on failure.
- (g_key_file_load_from_data): Return TRUE on success and
- FALSE on failure.
- (g_key_file_load_from_data_dirs): remove superfluous
- const modifier. Return TRUE on success and FALSE on
- failure. Stop trying to load files when one succeeds.
- (g_key_file_parse_key_value_pair): don't validate input
- for UTF-8 until users uses a getter that does
- validation. Don't leak copy of start_group_name.
- (g_key_file_to_data): serialize new comment field for
- groups.
- (g_key_file_get_keys): Remove convenience code to let
- NULL group mean start group. Get rid of unneeded NULL
- check before g_strdup.
- (g_key_file_get_groups): Reverse groups list before
- sending to user because it is maintained in backward
- order internally.
- (g_key_file_get_value),
- (g_key_file_set_value): add g_return checks at top of
- public functions.
- (g_key_file_get_string),
- (g_key_file_get_string_list): validate key value is UTF-8.
- (g_key_file_[sg]et_*comment): new functions for
- setting/getting comments
- (g_key_file_remove_comment): new function to remove
- comment block
- (g_key_file_remove_key_value_pair_node): new function to
- pull a key-value pair out of the list and free it.
- (g_key_file_remove_group_node): call
- g_key_file_remove_key_value_pair_node instead of
- freeing the list immediately to get better statistics
- for approximate_size.
- (g_key_file_remove_group): use lookup_group_node instead
- of lookup_group to prevent a g_list_find call.
- (g_key_file_add_key): report group also when unable to
- find key.
- (g_key_file_lookup_group_node): new function to make
- getting the group node from a group name easier.
- (g_key_file_lookup_group): use lookup_group_node under
- the hood.
- (g_key_file_lookup_key_value_pair_node): new function to
- make getting the key-value pair from a group and key
- name eaiser.
- (g_key_file_parse_comment_as_value): new function to add '#' to the
- beginning of every line.
- (g_key_file_parse_value_as_comment): new function that
- attempts to be the inverse of comment as value.
-
-2004-10-26 Matthias Clasen <mclasen@redhat.com>
+ * glib/gfileutils.c: g_build_filename_va is only use in the G_OS_WIN32
+ case, so compile it conditionally.
- * glib/gutils.c:
- * glib/gkeyfile.c: Don't include ctype.h needlessly. (#156424,
- Morten Welinder)
+2005-06-23 Matthias Clasen <mclasen@redhat.com>
+
+ * tests/keyfile-test.c (test_group_remove): Don't leak
+ memory here.
- * tests/strtod-test.c (test_string): Improve error reporting.
+ * glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't
+ leak output_path. (#308546, Kjartan Maraas)
-Mon Oct 25 15:05:18 2004 Manish Singh <yosh@gimp.org>
+ * glib/glib.symbols:
+ * glib/gfileutils.h:
+ * glib/gfileutils.c (g_build_pathv, g_build_filenamev):
+ Variants of g_build_path() and g_build_filename()
+ which take a string array instead of varargs.
+ (#149092, Todd A. Fisher)
- * autogen.sh: rm autom4te.cache, since it might interfere with
- differing autoconf versions.
+ * tests/strfunc-test.c: Add tests for g_build_pathv()
+ and g_build_filenamev().
- * tests/child-test.c: use GINT_TO_POINTER for g_child_watch_add
- user data.
+2005-06-22 Tor Lillqvist <tml@novell.com>
- * glib/gfileutils.c: G_IS_DIR_SEPARATOR is defined in gutils.h now,
- don't redefine it here.
+ * glib/gfileutils.c
+ * glib/gfileutils.h
+ * glib/glib.symbols
+ * tests/testglib.c: Rename g_makepath() to g_mkdir_with_parents().
-2004-10-24 Matthias Clasen <mclasen@redhat.com>
+2005-06-22 Matthias Clasen <mclasen@redhat.com>
- * glib/gkeyfile.c (g_key_file_remove_group_node): Don't
- destroy the lookup map if it is NULL.
+ * glib/goption.c (parse_short_option, parse_long_option):
+ Pass the option name also in the NO_ARG case. (#308602,
+ Masatake YAMATO)
+ (parse_arg): Properly store changes for arrays. (#308528,
+ Roger Leigh)
-2004-10-23 Matthias Clasen <mclasen@redhat.com>
+2005-06-22 Tor Lillqvist <tml@novell.com>
- * glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,
- glib/giochannel.c, glib/gmain.c, glib/gspawn.c,
- glib/libcharset/localcharset.c: Apply a patch to fix
- sparse warnings. (#154696, Kjartan Maraas)
+ * glib/gfileutils.c (g_makepath): New function. Creates a
+ directory including intermediate parent directories as
+ needed. (#60509)
- * glib/gnulib/g-gnulib.h: Undef libc functions before defining
- them, since they may also be macros. (#155177, Andrea Campi)
+ * glib/gfileutils.h: Declare it.
- * glib/gkeyfile.h:
- * glib/gkeyfile.c: Add a parser for desktop entries and
- similar files with a .ini-like syntax. (#139974, Ray Strode)
+ * glib/gutils.c (g_get_host_name): New function. Returns the
+ machine's name, or one of its names. Document that it is
+ best-effort only, and not guaranteed to be unique or anything.
+ (g_get_any_init): Get the host name here. On Unix use
+ gethostname(), on Windows use GetComputerName(). (#5200)
- * glib/glib.h: Include gkeyfile.h
+ * glib/gutils.h: Declare it.
- * glib/Makefile.am (libglib_2_0_la_SOURCES): Add gkeyfile.c
- (glibsubinclude_HEADERS): Add gkeyfile.h
+ * glib/glib.symbols: Add new functions.
- * glib/gutils.c (_g_compute_locale_variants): Make this
- non-static and use it in gkeyfile.c
+ * tests/testglib.c: Test g_makepath() and g_get_host_name().
+
+2005-06-18 Matthias Clasen <mclasen@redhat.com>
-2004-10-22 Matthias Clasen <mclasen@redhat.com>
+ * glib/goption.h:
+ * glib/goption.c: Add G_OPTION_FLAG_NO_ARG and
+ G_OPTION_FLAG_FILENAME to allow greater control of
+ G_OPTION_ARG_CALLBACK options. (#302632, Dan Winship)
- * tests/uri-test.c (run_uri_list_tests): Add some
- uri list tests.c.
+ * tests/option-test.c: test callback args
- * glib/gconvert.h:
- * glib/gconvert.c (g_uri_list_extract_uris): New function to
- split a text/uri-list data into individual uris and strip comments.
+2005-06-14 Theppitak Karoonboonyanan <thep@linux.thai.net>
-2004-10-20 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Added 'th' (Thai) to ALL_LINGUAS.
- * glib/goption.c (get_change): Don't return the wrong
- change. (#155856, Lucas Rocha)
+2005-06-10 Matthias Clasen <mclasen@redhat.com>
-2004-10-17 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Bump version
- * glib/gutils.h (G_IS_DIR_SEPARATOR):
- * glib/gutils.c: Make public. (#155589, Tim-Philipp Müller)
+ * === Released 2.7.0 ===
-2004-10-08 Matthias Clasen <mclasen@redhat.com>
+ * NEWS: Updates
- * glib/gmain.c (g_child_watch_add_full):
- * glib/gmain.c (g_child_watch_add): Document that GLib supports only
- a single callback per pid. (#154828, Gustavo Carneiro)
+2005-06-09 Matthias Clasen <mclasen@redhat.com>
-2004-10-06 Matthias Clasen <mclasen@redhat.com>
+ * glib/gkeyfile.c (g_key_file_parse_value_as_integer): Better
+ error checking. (#306389, Morten Welinder)
- * glib/gfileutils.c: Fix some C99isms. (#154676, Kjartan Maraas)
+ * glib/goption.c (parse_int): Set errno to 0 before calling
+ strtol. (#306388, Morten Welinder)
-2004-10-05 Anders Carlsson <andersca@gnome.org>
+2005-06-09 Tor Lillqvist <tml@novell.com>
- * glib/goption.c: (g_option_context_parse):
- Add check for if argc is 0.
-
- * tests/option-test.c: (empty_test3), (main):
- Add test case.
-
-2004-10-05 Matthias Clasen <mclasen@redhat.com>
+ * glib/gstdio.h
+ * glib/gstdio.c
+ * glib/glib.symbols: Add a chdir() wrapper, too.
- * NEWS: Update
+ * glib/glib.symbols: Add g_win32_locale_filename_from_utf8().
-2004-10-04 Matthias Clasen <mclasen@redhat.com>
+ * glib/gwin32.c (g_win32_locale_filename_from_utf8): Clarify doc
+ comment.
- * glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
- vtable is set. (#154352, Philippe Blain)
+2005-06-08 Tor Lillqvist <tml@novell.com>
-2004-10-03 Anders Carlsson <andersca@gnome.org>
+ * glib/gutils.c (get_windows_directory_root): New helper function
+ on Win32, returns the root of the drive (or possibly share) where
+ the Windows directory is. (In the case of Terminal Server sessions
+ the Windows directory is a per-user folder.)
+ (g_get_any_init): Use get_windows_directory_root() as last resort
+ for both temp directory and home directory. g_get_home_dir() now
+ never returns NULL on Win32. Don't look at HOMEDRIVE and
+ HOMEPATH. HOME, USERPROFILE, CSIDL_PROFILE and Windows directory
+ drive root should be enough.
- * glib/goption.c: (parse_arg):
- Set arg_data on filenames. (Discovered by Mats-Ola Persson).
-
- * tests/option-test.c: (arg_test3), (ignore_test3), (main):
- Add test for filename args.
-
-2004-10-01 Tor Lillqvist <tml@iki.fi>
+2005-06-08 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.c (g_option_context_parse): Use
- g_path_get_basename() instead of strrchr(), so that either slash
- is accepted on Windows.
+ * glib/glib.symbols:
+ * glib/gunicode.h:
+ * glib/gunicollate.c (g_utf8_collate_key_for_filename):
+ New function to calculate collation keys which are more
+ suitable for sorting filenames. (#172690, Ole Laursen)
-2004-09-30 Matthias Clasen <mclasen@redhat.com>
+Fri May 27 17:18:00 2005 Manish Singh <yosh@gimp.org>
- * glib/gfileutils.c: Convert filenames to UTF-8 before
- putting them in GErrors. (#154078, Morten Welinder)
+ * glib/goption.c (parse_short_option): initialize option_name
+ before using it.
-2004-09-29 Matthias Clasen <mclasen@redhat.com>
+2005-05-27 Matthias Clasen <mclasen@redhat.com>
- * glib/glib.symbols: Add g_assert_warning.
+ * glib/goption.c (parse_short_option, parse_long_option):
+ Return an error if an option is missing its argument. (#305576,
+ Björn Lindqvist)
- * glib/gmessages.h:
- * glib/gmessages.c (g_assert_warning): Treat g_assert
- in the same way as g_return_if_fail and move the string
- constants into a helper function, which also takes
- care of removing the "IA__" prefix from internal aliases.
+ * tests/option-test.c (missing_arg_test): Add a testcase.
- * glib/gmessages.h: Move the declaration of
- g_return_if_fail_warning() out of the ifdefs, so that
- building with G_DISABLE_ASSERT works.
+Wed May 25 15:33:51 2005 Manish Singh <yosh@gimp.org>
-2004-09-27 Murray Cumming <murrayc@murrayc.com>
+ * glib/goption.c (print_help): rest_description should be const.
- * glib/goptions.[h|c], glib/glib.symbols: Rename
- g_context_option_error_quark() to g_option_error_quark(), because that
- is consistent with normal naming conventions, and what bindings expect.
+2005-05-25 Matthias Clasen <mclasen@redhat.com>
-.2004-09-26 Matthias Clasen <mclasen@redhat.com>
+ * glib/gunidecomp.c (combine_hangul): Don't eat Hangul
+ when normalizing. (#301742, reported by Christian Biere,
+ patch by Noah Levitt)
- Fix #153649, Hidetaka Iwai:
-
- * glib/goption.c (parse_long_option): Don't forget to set parsed
- to TRUE when parsing a long ARG_NONE option.
- (free_changes_list): Fix the memory management for string
- and filename arrays.
+2005-05-24 Matthias Clasen <mclasen@redhat.com>
-2004-09-22 Tor Lillqvist <tml@iki.fi>
+ * glib/goption.c (print_help): If the remaining argument
+ has an arg_description, display the synopsis as
+ PROGNAME [OPTION...] REST (#305346, Noah Levitt)
- * glib/gmessages.c: [Win32] Don't ever open a console
- window. (Which we used to do if standard output or standard error
- are invalid, as they are for GUI applications.) These console
- windows that open up unexpectedly have caused endless amounts of
- confusion among end-users. (#141102, #151175)
+2005-05-20 Federico Mena Quintero <federico@ximian.com>
- Don't output the process id on Windows. Only output the program
- name. If not set with g_set_prgname(), fetch the application
- executable's name and use that.
+ Merged from glib-2-6:
-Mon Sep 20 00:35:14 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
+ of exit_status(); it's not the return code from the child, but
+ rather the waitpid() status.
- * glib/gutf8.c (g_utf16_to_utf8): Add a note explaining how to
- convert UTF-16 byte stream of ambiguous endianness. (#152954,
- Linus Walleij)
+2005-05-18 Matthias Clasen <mclasen@redhat.com>
-Mon Sep 20 00:17:37 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gunidecomp.c: Correct the end of the Hangul
+ Syllables range, from 0xd7af to 0xd7a3, in several
+ places. (#301984, Changwoo Ryu)
- * tests/option-test.c (error_test3_post_parse):
- * tests/option-test.c (error_test2_post_parse):
- * tests/option-test.c (error_test1_post_parse): Don't call
- g_set_error () with a NULL format. (#153103, Robert Ögren)
+2005-05-17 Matthias Clasen <mclasen@redhat.com>
-Mon Sep 20 00:13:48 2004 Matthias Clasen <maclas@gmx.de>
+ * tests/tree-test.c (main): Check the return values of
+ g_tree_remove().
- Make GOption remove long options completely. (#153113, Robert Ögren)
+ * glib/gtree.c (g_tree_remove, g_tree_steal): Return
+ a boolean indicating wether the key was found. (#302545,
+ Matthew F. Barnes)
- * glib/goption.c (parse_long_option): Fix a wrong index.
+2005-05-06 Brian Cameron <brian.cameron@sun.com>
- * tests/option-test.c (ignore_test3): Test handling of unknown
- options some more.
+ * configure.in, gmodule-no-export-2.0-uninstalled.pc.in,
+ Makefile.am: Added gmodule-no-export-2.0-uninstalled.pc.in
+ to allow building of other libraries like pango when
+ glib is uninstalled.
-Sun Sep 19 23:56:15 2004 Matthias Clasen <maclas@gmx.de>
+2005-05-06 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.c (g_option_context_parse): Call error_func
- on error, not post_parse_func again. (#153107, Robert Ögren)
+ * tests/option-test.c: Add a testcase.
+
+ * glib/goption.c (g_option_context_parse): Treat '-'
+ on its own as a non-option argument. (#168008, Tim Musson,
+ Thomas Leonard and others)
-Sun Sep 19 23:52:35 2004 Matthias Clasen <maclas@gmx.de>
+2005-05-05 Owen Taylor <otaylor@redhat.com>
- * glib/gmessages.c (mklevel_prefix):
- * glib/gmessages.c (g_logv): Fix the types of some variables
- to be GLogLevelFlags instead of guint. (#153042, Philippe Blain)
+ * glib/gdataset.[ch] glib/gdatasetprivate.h: Add
+ g_datalist_set/unset_flags(), g_datalist_get_flags() functions
+ to squeeze some bits into a GDataSet... this is needed for
+ efficient implementation of toggle references in GObject.
-2004-09-18 Matthias Clasen <mclasen@redhat.com>
+ * tests/gobject/references.c tests/gobject/Makefile.am:
+ Add a test case for weak and toggle references.
- * Version bump
+ * glib/gfileutils.[ch]: Rename g_file_replace() back
+ to g_file_set_contents().
- * === Released 2.5.3 ===
+ * glib/glib.symbols: Update.
-2004-09-17 Matthias Clasen <mclasen@redhat.com>
+2005-05-02 Matthias Clasen <mclasen@redhat.com>
- * NEWS: More updates.
+ * glib/gstring.c (g_str_equal, g_str_hash): Move docs
+ inline.
-Thu Sep 16 18:42:46 2004 Manish Singh <yosh@gimp.org>
+2005-05-01 Matthias Clasen <mclasen@redhat.com>
- * glib/abicheck.sh: don't hardcode lengths for cut, instead split on
- the third field.
+ * glib/ghash.h: Rename some parameters to make gtk-doc
+ happy.
-Thu Sep 16 18:15:32 2004 Manish Singh <yosh@gimp.org>
+ * glib/gutils.c:
+ * glib/gwin32.c:
+ * glib/gstdio.c: Fix some typos, mark new API as "Since 2.8".
- * glib/gstrfuncs.c (g_strncasecmp): Make it take a guint for number
- of characters, instead of a gsize. Technically this is incorrect,
- but this makes it match the prototype, and this is a deprecated
- function anyway.
+2005-04-29 Matthias Clasen <mclasen@redhat.com>
-2004-09-16 Matthias Clasen <mclasen@redhat.com>
+ * glib/gtree.c: Clarify some docs. (#302062, Matthew F. Barnes)
- * glib/Makefile.am (EXTRA_DIST): Add abicheck.sh
+2005-04-28 Matthias Clasen <mclasen@redhat.com>
-Thu Sep 16 02:03:15 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gstrfuncs.c (g_strcompress): Warn and don't crash
+ when meeting a trailing \\. (#301373, Benjamin Otte)
- Implement the same PLT reduction technique used in GTK+:
-
- * glib/glib.symbols: Master list of symbols
+2005-04-27 Tor Lillqvist <tml@novell.com>
- * glib/makegalias.pl: Perl script which creates galias.h
+ * glib/gconvert.c (open_converter, g_convert_with_iconv): Don't
+ call g_set_error() unless the GError pointer is non-NULL. This
+ avoids infinite recursion problems in certain rare situations on
+ Windows, when g_locale_from_utf8() is called from
+ _glib_get_locale_dir() after the change below. It's the
+ _glib_gettext() calls to translate error messages that are
+ parameters to g_set_error() that cause the recursion, not
+ g_set_error() itself.
- * glib/abicheck.sh: Compares actual exports against glib.symbols
+ * glib/gwin32.c (g_win32_locale_filename_from_utf8): New
+ function. Converts a filename to the system codepage, and if a
+ straight conversion isn't possible (because the filename contains
+ characters not in the system codepage), try looking up the
+ filename (which should refer to an existing file for this to
+ succeed) with short (8.3) pathname components.
- * glib/glib.def: Removed. This file is now generated from
- glib.symbols
-
- * glib/Makefile.am: Add rules to generate galias.h and glib.def,
- and add abicheck.sh to TESTS. Don't export _-prefixed symbols.
-
- * configure.in: Add --disable-visibility to suppress the
- use of ELF visibility attributes.
+ * glib/gutils.c (_glib_get_locale_dir): No need to cache the
+ result, this function is normally called only once. Return the
+ path to the locale directory in system codepage, not UTF-8. The
+ path is passed to bindtextdomain(), which doesn't use UTF-8 file
+ names. Use g_win32_locale_filename_from_utf8(). (#301772)
- * glib/*.c: Include galias.h
+ Don't do run-time lookup of message catalog directory on
+ Cygwin. Cygwin is supposed to look and feel like Unix, and on Unix
+ we use paths fixed at configure time.
-2004-09-15 Tor Lillqvist <tml@iki.fi>
+2005-04-19 Tor Lillqvist <tml@novell.com>
- * glib/gwin32.c (g_win32_error_message): Convert message to
- UTF-8. Technically this breaks API, but the actual use cases in
- gdk/win32 have assumed it is UTF-8 anyway. Fix
- documentation. (#152618, Kazuki Iwamoto)
+ * glib/gutils.h: Minor comment improvement.
- * glib/gwin32.h: Don't define ftruncate as a macro. Was never a
- good idea, and it clashes with newest mingw headers, which have a
- ftruncate implementation as an inline function. Thanks to Dominik R.
+2005-04-18 Tor Lillqvist <tml@novell.com>
- * glib/gwin32.c (g_win32_ftruncate): Simplify implementation, just
- call _chsize() in the C library.
+ * glib/gfileutils.c: No <sys/wait.h> on Win32. Definition of
+ save_errno was missing in one place.
-2004-09-15 Matthias Clasen <mclasen@redhat.com>
+Sat Apr 16 20:15:44 2005 Soeren Sandmann <sandmann@redhat.com>
- * NEWS: Update.
+ * glib/gfileutils.c (g_file_replace): Save the errno in various
+ places
-2004-09-09 Matthias Clasen <mclasen@redhat.com>
+ * glib/gfileutils.c (set_umask_permissions): Fork a child and do
+ chmod() to the umask() permissions there.
- * glib/gmessages.c (g_return_if_fail_warning): Strip the
- prefix "IA__" from function names, since that is what
- GTK+ uses for the PLT-reduction aliases.
+2005-04-10 Matthias Clasen <mclasen@redhat.com>
-Thu Sep 9 13:52:26 2004 Owen Taylor <otaylor@redhat.com>
+ * glib/gmessages.h (g_debug): Use G_LOG_LEVEL_DEBUG in
+ both definitions. (#300071, Tommi Komulainen)
- * glib/gmessages.c (g_return_if_fail_warning):
- Include implementation of g_return_if_fail_internal().
+2005-04-09 Tor Lillqvist <tml@novell.com>
-Thu Sep 9 10:37:41 2004 Owen Taylor <otaylor@redhat.com>
+ * glib/gutils.c: Include <process.h> on Win32 for getpid(). (#173094)
- * glib/gmessages.h (g_return_[val_]if_fail): Use
- a helper function to reduce code size; omit FILE/LINE
- when we have __PRETTY_FUNCTION__.
+2005-04-08 Tor Lillqvist <tml@novell.com>
-2004-09-09 Matthias Clasen <mclasen@redhat.com>
+ * glib/gstdio.h
+ * glib/gstdio.c
+ * glib/glib.symbols (g_access, g_chmod, g_creat): Wrap also
+ access(), chmod() and creat(). (#169623, #171285)
- * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
+2005-04-08 Tor Lillqvist <tml@novell.com>
-Thu Sep 9 00:10:40 2004 Matthias Clasen <maclas@gmx.de>
+ Improve g_get_system_data_dirs() on Windows. A library that calls
+ g_get_system_data_dirs() might be installed in a different
+ top-level prefix than GLib or the application being run.
- * glib/gstrfuncs.h:
- * glib/gstrfuncs.c (g_strv_length): Add a function to
- calculate the length of a NULL-terminated string
- array. (#150455, Tim-Philipp Müller)
+ * glib/gutils.h (g_win32_get_system_data_dirs): New static
+ function defined in this header. Calls
+ g_win32_get_system_data_dirs_for_module() passing the address of
+ itself as parameter. g_get_system_data_dirs() is #defined as this
+ function.
- * tests/strfunc-test.c (main): Add a test for g_strv_length().
+ * glib/gutils.c (g_win32_get_system_data_dirs_for_module): New
+ function. If the address parameter is non-NULL, the corresponding
+ module's installation location is used for one of the returned
+ path names, in addition to the COMMON_APPDATA, COMMON_DOCUMENTS,
+ glib top-level and application top-level folders.
+ (g_get_system_data_dirs): Now just for backward compatibility on
+ Win32. Just call g_win32_get_system_data_dirs_for_module(NULL).
-2004-09-08 Tor Lillqvist <tml@iki.fi>
+ * glib/glib.symbols: Add g_win32_get_system_data_dirs_for_module.
- * glib/gutils.c (guess_category_value): On Win32, as last resort
- call g_win32_getlocale() to get the current thread locale. There
- usually aren't any POSIXish LANG or LC_* environment variables
- present on Windows machines.
+ * glib/gutils.c (read_aliases): Not used on Windows.
+ (unalias_lang): Don't do anything on Windows, there is no
+ /usr/share/locale/locale.alias file..
+
+Thu Apr 7 22:51:15 2005 <yosh@gimp.org>
- * glib/glib.def: Add g_get_language_names.
+ * glib/gutils.c (g_get_system_data_dirs): Declare glib_top_share_dir
+ and exe_top_share_dir only in G_OS_WIN32.
-2004-09-07 Matthias Clasen <mclasen@redhat.com>
+2005-04-08 Tor Lillqvist <tml@novell.com>
- * glib/gutils.h:
- * glib/gutils.c (g_get_language_names): Add a function to
- return a list of applicable locale names. (#95587,
- Hidetoshi Tajima)
- (guess_category_value, compute_locale_variants):
- (explode_locale, unalias_lang, read_aliases): Helper
- functions for g_get_language_names()
+ * glib/gutils.c (g_get_system_data_dirs): After investigating more
+ closely the actual use cases of this function, I understand better
+ what it needs to do on Windows. In addition to the Windows
+ COMMON_APPDATA and COMMON_DOCUMENTS folders, also return the
+ "share" subfolders of GLib's installation location and the
+ application .exe's installation location, hoping that either
+ matches what the function's caller is looking for.
- * tests/testglib.c (main): Show the results of
- g_get_language_names()
+ * glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME): Use wide char API
+ if available, and store dll name in UTF-8.
-Sun Sep 5 01:46:11 2004 Matthias Clasen <maclas@gmx.de>
+2005-04-05 Matthias Clasen <mclasen@redhat.com>
- * glib/glib.def:
- * glib/gmessages.h:
- * glib/gmessages.c (g_log_set_default_handler): New
- function to install an alternate default log
- handler. (#66387, Darin Adler)
+ * glib/gfileutils.c (get_contents_stdio): Avoid memory
+ leaks in borderline cases. (#172612, Morten Welinder)
-2004-09-03 Tor Lillqvist <tml@iki.fi>
+2005-04-04 Matthias Clasen <mclasen@redhat.com>
- * glib/glib.def: Update.
+ * glib/gconvert.c: Clarify docs in some places. (#172404,
+ Morten Welinder)
-Wed Sep 1 20:22:39 2004 Matthias Clasen <maclas@gmx.de>
+2005-04-03 Matthias Clasen <mclasen@redhat.com>
- * glib/gdate.h:
- * glib/gdate.c (g_date_get_iso8601_week_of_year): Add
- a function to calculate the ISO 8601 week number of
- a date. (#92579, Niklas Lundell)
+ * glib/gutils.h: Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is
+ defined. This was the pre-2.6 behaviour, and without it,
+ G_IMPLEMENT_INLINES cannot be used in multiple .c files
+ at all. (#165852, Dave Benson)
-2004-09-01 Anders Carlsson <andersca@gnome.org>
+2005-04-01 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.c: (g_option_context_parse):
- Set program name before calling the pre-parse hooks.
-
-2004-09-01 Anders Carlsson <andersca@gnome.org>
+ * glib/gmain.c (g_child_watch_source_new): Add a note regarding
+ waitpid(-1).
+ (g_child_watch_source_init_multi_threaded):
+ (g_child_watch_source_init_single): Don't use SA_RESTART,
+ since it causes problems on at least one platform. (#168352)
- * glib/goption.c: (g_option_context_free), (print_help),
- (g_option_context_parse):
- Handle option contexts without a main group.
-
- * tests/option-test.c: (empty_test2), (main):
- Add test case for that.
-
-2004-08-30 Anders Carlsson <andersca@gnome.org>
+2005-03-30 Steve Murphy <murf@e-tools.com>
- * glib/goption.c: (g_option_context_parse):
- Set prgname to <unknown> if argc and argv are NULL.
-
- * tests/option-test.c: (empty_test1), (main):
- Add test case for that.
-
-Sun Aug 29 23:58:38 2004 Matthias Clasen <maclas@gmx.de>
+ * configure.in: Added "rw" to ALL_LINGUAS.
- * glib/ghash.c (g_hash_table_lookup): Point to
- g_hash_table_lookup_extended() for differentiation between
- not-found and value-is-NULL. (#150960, Morten Welinder)
+2005-03-30 Sven Neumann <sven@gimp.org>
-2004-08-27 Matthias Clasen <mclasen@redhat.com>
+ * glib/gfileutils.c (get_contents_stdio): handle the unlikely case
+ that no bytes are read from the file and allocate an empty string.
- Fix #151193, Stepan Kasal:
-
- * glib/gfileutils.c (g_file_error_from_errno):
- * glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
+2005-03-30 Tor Lillqvist <tml@novell.com>
-Fri Aug 27 00:45:41 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
+ file descriptors open to devices are readable, since we can't
+ know. fstat() doesn't give any useful information. (#145326)
- * glib/goption.c (g_option_context_parse): Set the program name
- from argv[0], noticed by Masatake YAMATO.
+2005-03-29 Tor Lillqvist <tml@novell.com>
-2004-08-26 Tor Lillqvist <tml@iki.fi>
+ * glib/gmain.c (g_poll): [Win32] If the event fired, assign
+ f->revents=f->events. We can't know whether the upper layer using
+ the event actually is readable, writeable or what, so say that all
+ the conditions hold. Remove the ResetEvent() call that has been
+ ifdeffed out anyway for a long time. Remove an "#ifdef 1" and
+ #endif pair of lines, that code is not optional.
+ (g_get_current_time): [Win32] Use GetSystemTimeAsFileTime()
+ instead of time() and GetTickCount(). Much simpler.
- * tests/testglib.c (main): Test the new XDG basedir functions.
+2005-03-28 Matthias Clasen <mclasen@redhat.com>
-2004-08-25 Tor Lillqvist <tml@iki.fi>
+ * tests/date-test.c:
+ * tests/testgdate.c: Add tests for
+ g_date_get_iso8601_week_of_year().
- * glib/gwin32.c (g_win32_get_windows_version): New
- function. Returns the Windows version code like GetVersion(),
- except that one can pretend to be running on Win9x by setting the
- G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
- debugging purposed.
+ * glib/gdate.c (g_date_get_iso8601_week_of_year):
+ Fix the calculation. (#169858, Jon-Kare Hellan)
- * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED
- and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
+2005-03-27 Tor Lillqvist <tml@novell.com>
-2004-08-25 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
+ after all, and in fact necessary with HEAD libtool.
- * configure.in: Post-release version bump.
+2005-03-23 Tor Lillqvist <tml@novell.com>
- * === Released 2.5.2 ===
+ * glib/gutils.c (g_getenv): [Win32] Fix corner case bug when
+ environment variable value is exactly one character.
-Wed Aug 25 00:25:08 2004 Matthias Clasen <maclas@gmx.de>
+2005-03-21 Matthias Clasen <mclasen@redhat.com>
- * NEWS: Update for 2.5.2
+ * glib/glib.symbols: Add g_try_malloc0
-2004-08-25 Tor Lillqvist <tml@iki.fi>
+ * glib/gmem.h: Add g_try_new, g_try_new0, g_try_renew and
+ g_try_malloc0. (#169611, Stefan Kost)
- Win32 equivalences of the XDG folders
-
- * glib/gutils.c (get_special_folder): New function, calls
- SHGetSpecialFolderLocation() to get path to places like the My
- Documents folder.
- (g_get_any_init): Use CSIDL_PROFILE as HOME if not
- overridden by env vars.
- (g_get_user_data_dir): Use CSIDL_PERSONAL.
- (g_get_user_config_dir): Use CSIDL_APPDATA.
- (g_get_user_cache_dir): Use CSIDL_INTERNET_CACHE. Debatable...
- (g_get_system_data_dirs): Use CSIDL_COMMON_APPDATA and
- CSIDL_COMMON_DOCUMENTS.
- (g_get_system_config_dirs): Use CSIDL_COMMON_APPDATA.
+ * glib/gmem.c: Implement g_try_malloc0.
- * configure.in: Add -lole32 to G_LIBS_EXTRA for mingw.
+2005-03-20 Tor Lillqvist <tml@novell.com>
- * glib/glib.def: Add the new functions.
+ * glib/gspawn-win32.c (do_spawn_with_pipes): Close the process
+ handle if the caller doesn't want it also in the case without a
+ helper process.
+ (g_spawn_sync): Don't ask for a child pid which we don't need.
-Mon Aug 23 16:16:35 2004 Manish Singh <yosh@gimp.org>
+ * glib/gtimer.c: On Win32, use GetSystemTimeAsFileTime() instead
+ of GetTickCount(). (#159507)
- * glib/goption.c (g_option_group_add_entries): remove unused
- variable.
+ * glib/gmessages.c (g_log_default_handler)
+ * glib/gutils.c (g_get_prgname): Move the Win32 code that asks the
+ program name from the system to g_get_prgname(). Do output the pid
+ also on Win32 (useful in case there are several instances of the
+ same program running).
-Mon Aug 23 01:35:18 2004 Matthias Clasen <maclas@gmx.de>
+ * tests/testglib.c (main): Print more detailled output from the
+ timer tests. Don't print home directory twice. Test
+ g_win32_error_message().
- * glib/gutils.c (g_get_user_cache_dir):
- * glib/gutils.c (g_get_user_config_dir):
- * glib/gutils.c (g_get_user_data_dir): Don't call g_get_home_dir()
- while holding the g_utils_global lock, simply use g_home_dir.
- (#150695, Jody Goldberg)
+ * tests/spawn-test.c (run_tests): On Win32, run netstat instead of
+ ipconfig. On Windows XP collecting output from ipconfig doesn't
+ seem to work for some reason.
-2004-08-21 Tor Lillqvist <tml@iki.fi>
+2005-03-18 Hans Breuer <hans@breuer.org>
- * glib/giowin32.c (g_io_win32_finalize): Tell select_thread to
- break out of its loop. Prevents a thread leak. (#147392, Peter
- Zelezny)
+ * glib/makefile.msc.in : handle galiasdef.c (although completely
+ useless for msvc build)
- * glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
- return value from strxfrm(). For instance Microsoft's strxfrm()
- returns INT_MAX on errors. (#141124)
+ * glib/gbacktrace.c glib/gmessage.c : need at least _WIN_VER 0x0401
+ for IsDebuggerPresent()
-2004-08-19 Tor Lillqvist <tml@iki.fi>
+2005-03-17 Matthias Clasen <mclasen@redhat.com>
- * glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
- source and destination charset parameter order in g_convert()
- call. (#150394, possibly also #141124)
+ * glib/gkeyfile.c: Update the documentation, reflecting the
+ fact that the special case for !group_name --> start_group
+ got removed. (#170566, Tim-Philipp Müller)
-2004-08-20 Jon K Hellan <hellan@acm.org>
+2005-03-15 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.h: Remove trailing commas.
+ * glib/goption.c (g_option_context_set_main_group): Warn
+ if there already is a main group. (#170445, Jeff Franks)
-2004-08-17 Matthias Clasen <mclasen@redhat.com>
+Sun Mar 13 22:01:17 2005 Manish Singh <yosh@gimp.org>
- * configure.in: Check for all four values of the
- visibility attribute; gcc 2.96 seems to miss
- "default". (#150379, Vincent Noel)
+ * tests/array-test.c: delete a bunch of dead code.
-2004-08-16 Christian Rose <menthos@menthos.com>
+Sun Mar 13 21:28:47 2005 Manish Singh <yosh@gimp.org>
- * configure.in: Added "bs" to ALL_LINGUAS.
+ * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.
-2004-08-11 Ray Strode <rstrode@redhat.com>
+2005-03-13 Matthias Clasen <mclasen@redhat.com>
- * docs/reference/glib/glib-sections.txt:
- * glib/gutils.[ch] (g_get_user_data_dir),
- (g_get_user_config_dir), (g_get_user_cache_dir),
- (g_get_system_data_dirs), (g_get_system_config_dirs):
- Add new XDG basedir API (bug 139973).
+ * glib/gatomic.c:
+ * glib/gcache.c: Small fixes to the previous commit.
-2004-08-10 Matthias Clasen <mclasen@redhat.com>
+2005-03-13 Matthias Clasen <mclasen@redhat.com>
- * glib/gmacros.h: Remove G_GNUC_INTERNAL from here.
- * configure.in: Check whether the visibility attribute
- works and define G_HAVE_GNUC_VISIBILITY and
- G_GNUC_INTERNAL in glibconfig.h correspondingly.
+ Make PLT-reduction work with gcc4, and don't include
+ everything in galias.h:
+
+ * glib/glib.symbols: Group symbols by header and source file.
+ * glib/makegalias.pl: Protect definitions by the same
+ preprocessor symbols used to guard the headers. Move
+ the alias declarations to a separate file which is
+ produced when calling makegalias.pl -def
+ * glib/Makefile.am (galiasdef.c): Add a rule to generate this
+ file.
+ * glib/*.c: Include galias.h after the other GLib headers,
+ include galiasdef.c at the bottom.
-Mon Aug 9 17:37:56 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/glib.symbols: Add g_listenv and g_file_replace.
- * glib/gmacros.h (G_GNUC_INTERNAL): Define empty if gcc is too old.
+Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
-2004-08-06 Hans Breuer <hans@breuer.org>
+ * glib/gfileutils.c (write_to_temp_file): Don't try and generate
+ a dotfile from the name -- it doesn't work with absolute
+ paths. Also make documentation indicate that symlinks will be
+ overwritten. Both pointed out by Alexis S. L. Carvalho.
- * glib/makefile.msc.in glib/glib.def : updated
+2005-03-11 Matthias Clasen <mclasen@redhat.com>
- * glib/gutils.c : avoid 'inconsitent dll linkage' by not
- defining extern char** environ with msvc
+ * m4macros/glib-gettext.m4: Avoid stupid compiler complaints
+ about precision loss.
-2004-08-06 Matthias Clasen <mclasen@redhat.com>
+2005-03-10 Matthias Clasen <mclasen@redhat.com>
- * m4macros/glib-gettext.m4: Require ngettext. (#123847,
- Danilo Segan)
+ * glib/gdate.c: Remove a lot of pointless g_return_if_fail()
+ checks. (#169859, Morten Welinder)
-Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>
+2005-03-10 Sven Neumann <sven@gimp.org>
- * glib/gutils.h (g_get_codeset): strdup result so caller
- doesn't free internally managed memory.
+ * tests/file-test.c: include <gstdio.h>.
-2004-08-04 Tor Lillqvist <tml@iki.fi>
+2005-03-10 Sven Neumann <sven@gimp.org>
- * glib/glib.def: Add glib_check_version.
+ * glib/gfileutils.c (get_contents_stdio): delay memory allocation
+ until after the first read. Saves a bunch of reallocs. Also
+ increased the buffer size to 4096 bytes. (bug #165954)
- * config.h.win32.in: Update to match what configure produces. Add
- the G_ATOMIC_*. Define G_ATOMIC_I486 when compiling with gcc. Move
- HAVE_INT64_AND_I64 to where the configure script puts it. Add
- HAVE_INTTYPES_H_WITH_UINTMAX. Define intmax_t as __int64 for MSVC.
+ * tests/file-test.c (test_get_contents): added a (very basic) test
+ for g_file_get_contents().
-Tue Aug 3 16:19:44 2004 Matthias Clasen <maclas@gmx.de>
+Wed Mar 9 19:06:45 2005 Manish Singh <yosh@gimp.org>
- * glib/goption.c: Mark user visible strings for translation.
+ * glib/glib.symbols: Add g_file_replace.
-Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
+2005-03-09 Matthias Clasen <mclasen@redhat.com>
- * glib/goption.[hc]: Pedantically use g types throughout.
+ * configure.in: Bump version
-Tue Aug 3 14:58:20 2004 Matthias Clasen <maclas@gmx.de>
+2005-03-09 Sven Neumann <sven@gimp.org>
- * glib/gutils.h:
- * glib/gutils.c (glib_check_version): New function to
- check the version of GLib at runtime. (#149175, Michael Natterer)
+ * glib/gfileutils.c (g_file_replace): avoid unnecessary filename
+ conversions.
-2004-08-03 Anders Carlsson <andersca@gnome.org>
+2005-03-09 Tor Lillqvist <tml@novell.com>
- * glib/goption.h:
- * glib/gtypes.h:
- Move GTranslateFunc to gtypes.h
-
-2004-08-02 Anders Carlsson <andersca@gnome.org>
+ * glib/gutils.c (g_get_user_data_dir, g_get_user_config_dir,
+ g_get_user_cache_dir, g_get_system_data_dirs,
+ g_get_system_config_dirs): [Win32] Don't leak return value from
+ get_special_folder(). (#169348, Daniel Atallah) Guard against
+ g_home_dir being NULL, use g_tmp_dir/g_user_name in that case.
- * glib/Makefile.am:
- * glib/glib.h:
- * glib/goption.c:
- * glib/goption.h:
- * tests/.cvsignore:
- * tests/Makefile.am:
- * tests/option-test.c:
- Add GOption.
+Tue Mar 8 15:46:54 2005 Søren Sandmann <sandmann@redhat.com>
-2004-08-02 Matthias Clasen <mclasen@redhat.com>
+ * glib/gfileutils.c (g_file_replace): New API. A function to
+ atomically create a file.
- * glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
- declarations as internal and avoid PLT indirections for
- them. (#145465, Arjan van de Ven)
+2005-03-08 Matthias Clasen <mclasen@redhat.com>
- * glib/gunicodeprivate.h:
- * glib/gthreadinit.h:
- * glib/gmessages.h:
- * glib/gdebug.h:
- * glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
- _g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
- _g_messages_thread_init(), _g_convert_thread_init(),
- _g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
- _g_mem_thread_private_init(), _g_messages_thread_private_init(),
- _g_utf8_normalize_wc() and _g_unichar_combining_class().
+ * glib/glib.symbols: Add the new attributes here too.
- * glib/gatomic.c: Include gthreadinit.h here to see the declaration
- for _g_atomic_thread_init().
+ * glib/gmacros.h: Define G_GNUC_NULL_TERMINATED.
+ (#164706, Marc Meissner)
-Sun Aug 1 13:19:18 2004 Manish Singh <yosh@gimp.org>
+ * glib/gstrfuncs.h:
+ * glib/gfileutils.h: Use G_GNUC_NULL_TERMINATED where
+ appropriate.
- * tests/uri-test.c: move newline printing from run_from_uri_tests()
- to run_roundtrip_tests().
+ * glib/goption.c (parse_int): Fix an error message.
+ (#168751, Hazael Maldonado Torres)
-2004-08-01 Matthias Clasen <mclasen@redhat.com>
+2005-03-07 Matthias Clasen <mclasen@redhat.com>
- * Post-release version bump
+ * glib/gdebug.h: Small cleanup (use G_BEGIN/END_DECLS).
+ (#168474, Fabricio Barros Cabral)
- * === Released 2.5.1 ===
+2005-03-07 Matthias Clasen <mclasen@redhat.com>
-Sat Jul 31 23:17:05 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gutils.c (g_find_program_in_path): Mark the last
+ paragraph of the docs as Windows-specific. (#169433)
- * NEWS: Updates.
+2005-03-06 Matthias Clasen <mclasen@redhat.com>
-Sat Jul 31 20:33:07 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gmarkup.c: Add G_GNUC_PRINTF attribute
+ to set_error.
+ (g_markup_parse_context_end_parse): Fix an
+ error message, noticed by Tim Janik.
- * tests/shell-test.c: Include a test involving consecutive
- backslashes followed by a non-escaped doublequote.
-
- * glib/gshell.c (tokenize_command_line): Count consecutive
- backslashes mod 2 to detect escaped doubleqotes. (#127306)
+2005-02-24 Tor Lillqvist <tml@novell.com>
-2004-07-30 Matthias Clasen <mclasen@redhat.com>
+ * glib/Makefile.am (BUILT_EXTRA_DIST): Don't distribute
+ glib.def. (#167496, J. Ali Harlow)
- * glib/gconvert.c (g_unescape_uri_string): Don't validate
- for UTF-8 here. (#148420, Robert Ögren)
+ * glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341,
+ Daniel Atallah)
- * tests/uri-test.c (run_roundtrip_tests): Add tests for
- roundtrip compatibility. Going from filename to uri and
- back should always give you the same filename back.
+2005-02-23 Matthias Clasen <mclasen@redhat.com>
-2004-07-28 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
+ on non-linux platforms. (#168177, Michael Banck)
- * tests/markups/valid-{9,10,11}.gmarkup:
- * tests/markups/fail-{37,38,39}.gmarkup: Tests for handling
- of whitespace inside tags.
+ * tests/keyfile-test.c (test_locale_string): Set LANGUAGE
+ instead of LC_ALL to shield against LANGUAGE being set in
+ the environment. (#168311, Suren A. Chilingaryan)
- * glib/gmarkup.c (enum GMarkupParseState): Add
- STATE_AFTER_ATTRIBUTE_NAME and STATE_AFTER_CLOSE_TAG_NAME.
- (g_markup_parse_context_parse): Accept whitespace between
- attribute names, '=' and attribute values and between
- close tag name and '>'. (#148646, Hiroyuki Ikezoe)
+Tue Feb 22 22:03:38 2005 Manish Singh <yosh@gimp.org>
-Tue Jul 27 02:01:31 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gstdio.h: On G_OS_UNIX, simple #define g_open and co. as
+ aliases for their respective C library functions, instead of
+ using the function wrappers. This avoids library users having to
+ care about matching large file support with whatever glib has been
+ built with. Fixes bug #167942.
- * glib/gstrfuncs.c (g_strsplit_set): s/g_strsplit/g_strsplit_set/
- as well.
+ * glib/gstdio.c
+ * glib/abicheck.sh
+ * glib/glib.symbols
+ * glib/makegalias.pl: Logic to make the gstdio wrappers still
+ available for compatibility, but not used in new code.
-Sat Jul 24 17:50:07 2004 Soeren Sandmann <sandmann@daimi.au.dk>
+Tue Feb 22 18:33:07 2005 Manish Singh <yosh@gimp.org>
- * glib/gstrfuncs.c (g_strsplit_set):
- s/g_strtokenize/g_strsplit_set/ in docs.
+ * glib/gtimer.c (g_usleep): Simplify the loop for the fix below.
-Fri Jul 23 10:37:50 2004 Matthias Clasen <maclas@gmx.de>
+2005-02-20 Matthias Clasen <mclasen@redhat.com>
- * tests/type-test.c (main): Actually test G_MAXSIZE with
- a gsize variable.
+ * glib/gqueue.c (g_queue_new): Use a memchunk for
+ sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros Cabral)
-2004-07-21 Matthias Clasen <mclasen@redhat.com>
+ * glib/gtimer.c (g_usleep): Fix usage of
+ nanosleep(). (#163039, Bastien Nocera)
- Fix #132858, Sven Neumann, patch by James Henstridge:
-
- * glib-gettextize.in: modify so that mkinstalldirs will
- get installed into auxdir.
+2005-02-16 Adi Attar <aattar@cvs.gnome.org>
+
+ * configure.in: Added "xh" to ALL_LINGUAS.
- * Makefile.am (gettext_SCRIPTS): install mkinstalldirs.
+2005-02-11 Tor Lillqvist <tml@novell.com>
-2004-07-21 Matthias Clasen <mclasen@redhat.com>
+ * glib/giowin32.c: Include winsock2.h before windows.h, to avoid
+ compilation errors with MSVC. (#167105)
- Fix #147651, reported by Oliver Guntermann:
+2005-02-10 Matthias Clasen <mclasen@redhat.com>
- * glib/gprintfint.h (_g_vasprintf): Don't wrap vasprintf(),
- _g_gnulib_vasprintf() in a macro, since they behave
- differently wrt. to memory allocation.
+ * glib/goption.c (print_help): Take main group options into
+ account when calculating column size. (#166921)
+ (g_option_context_parse): Accept -? as documented. (#166977)
- * glib/gprintf.c (g_vasprintf): Instead, differentiate
- here between the three cases: system vasprintf(),
- _g_gnulib_vasprintf(), no vasprintf().
+2005-02-09 Matthias Clasen <mclasen@redhat.com>
+ * glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path
+ here. (#166801, Kjartan Maraas)
-2004-07-20 Crispin Flowerday <gnome@flowerday.cx>
+2005-02-08 Matthias Clasen <mclasen@redhat.com>
- * NEWS: Fix a typo in my name
+ * glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't
+ write out of bounds.
-Tue Jul 20 04:31:40 2004 Soeren Sandmann <sandmann@daimi.au.dk>
+ * glib/goption.c (g_option_context_parse): Fix a
+ one-too-short memory allocation. (#166609, Nicolas Laurent)
- * configure.in: Bump version number
+ * tests/Makefile.am (TESTS_ENVIRONMENT): Add tests with
+ MALLOC_CHECK_.
-Sun Jul 18 19:40:30 2004 Soeren Sandmann <sandmann@daimi.au.dk>
+ * tests/option-test.c: Add a test for unkown short options.
- * === Released 2.5.0 ===
+2005-02-07 Matthias Clasen <mclasen@redhat.com>
- * Makefile.am (BUILT_EXTRA_DIST): move gtk-doc.make here.
+ * glib/glib.symbols:
+ * glib/gutils.h:
+ * glib/gutils.c (g_listenv): New function to list all
+ environment variables. (#166327, Hans Petter Jansson)
-Sun Jul 18 01:40:28 2004 Matthias Clasen <maclas@gmx.de>
+2005-02-07 Tor Lillqvist <tml@novell.com>
- * NEWS: Updates for 2.5.0
+ * glib-zip.in: Add gmodule-no-export-2.0.pc.
-Mon Jul 12 00:02:40 2004 Matthias Clasen <maclas@gmx.de>
+Sun Feb 6 21:59:09 2005 Manish Singh <yosh@gimp.org>
- * glib/gi18n-lib.h: Remove the ENABLE_NLS check here as well.
+ * glib/abicheck.sh: feed the contents of config.h and glibconfig.h
+ into the preprocessor, since glib.symbols could need #defines
+ from them.
-2004-07-09 Matthias Clasen <mclasen@redhat.com>
+Sun Feb 6 12:09:55 2005 Manish Singh <yosh@gimp.org>
- * glib/gdir.c (g_dir_open): Convert filename to UTF-8
- before using it in the error message. (#146054, Federico
- Mena Quintero)
+ * glib/gatomic.c: Don't use matching constraints for asm mem
+ parameters. This makes the code match with current glibc, and
+ quiets some warnings with gcc 3.4.
-Thu Jul 8 00:54:32 2004 Matthias Clasen <maclas@gmx.de>
+2005-02-05 Tor Lillqvist <tml@novell.com>
- * glib/gi18n.h: Remove the ENABLE_NLS check, since GLib can't
- be built without anyway. (#135899, Murray Cumming)
+ * configure.in (G_LIBS_EXTRA)
+ * glib/giowin32.c: I think we can include <winsock2.h> and link
+ with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
+ and it's available as an update for it. Not that we use any actual
+ Winsock 2 -only features, but still, simpler to link directly with
+ ws2_32.dll instead of going through wsock32.dll.
-Mon Jul 5 18:50:27 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
+ stability version, call g_file_get_contents_utf8(), not
+ itself. (#166386, Bill Skaggs)
- * glib/gmessages.h (g_debug): Complete the g_log()
- family. (#135730, Sven Herzberg)
+2005-02-04 Matthias Clasen <mclasen@redhat.com>
-Mon Jul 5 18:42:30 2004 Matthias Clasen <maclas@gmx.de>
+ * configure.in: Remove the --enable-ansi option (#160469)
- * glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
- make srcdir != . work. (#145166, Kaz Sasayama)
+ * configure.in: Define a HAVE_GNUC_VISIBILITY automake
+ conditional.
-Sun Jul 4 01:52:18 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/Makefile.am (TESTS): Only check the abi if
+ the compiler supports visibility, otherwise we
+ know there will be (harmless) extra symbols.
+ (#166181, Ed Avis)
- * configure.in: Use a small test library instead of
- libpthread.so for testing RTLD_GLOBAL brokenness. (#139567,
- Julio M. Merino Vidal)
-
-2004-07-02 Sebastian Wilhelmi <seppi@seppi.de>
+2005-02-02 Tor Lillqvist <tml@novell.com>
+
+ * glib/gwin32.h: Remove unnecessary MSVC-only typedef for
+ pid_t. (#165910) GLib does not pretend to be a POSIX emulation
+ library.
+
+ * glib/gstdio.c: In the Win32 part of all functions, handle
+ invalid UTF-8 more robustly. Don't pass the resulting NULL
+ wide-char or codepage strings on to C library functions, but bail
+ out early. (#166084)
+
+ * glib/gfileutils.c: Don't use potentially incorrect errno in
+ several places. (#165951)
+ (g_mkstemp): Set errno appropriately.
- * glib/gatomic.c: Rename __asm to __asm__ and __volatile to
- __volatile__ to make the file consistent. Spotted by Benoit
- Carpentier <gtkool_2kx@yahoo.fr>.
+2005-02-02 Matthias Clasen <mclasen@redhat.com>
-2004-07-01 John Ehresman <jpe@wingide.com>
+ * glib/gutils.c: Move doc comments inline.
- * glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
- Initialize reset_send & reset_recv fields and don't close
- sockets unless they were created. (#145153)
+ * glib/ghash.h: Adjust some argument names.
-Fri Jun 11 22:56:46 2004 Matthias Clasen <maclas@gmx.de>
+ * configure.in: Give meaningful names to g_memmove()
+ arguments.
- * glib/gscanner.c (g_scanner_get_token_ll): Ignore a
- missing newline at EOF for single line comments.
- (#83674, Sven Neumann)
+2005-02-01 Matthias Clasen <mclasen@redhat.com>
-Thu Jun 10 23:38:02 2004 Matthias Clasen <maclas@gmx.de>
+ * tests/keyfile-test.c (test_key_remove): Add test case for
+ key removal.
- * tests/printf-test.c (TEST): Actually set any_failed on
- failure. (#143552, Philippe Blain)
+ * glib/gkeyfile.c (g_key_file_remove_key): Actually remove
+ the key from the list of pairs. (#165980, David Hoover)
-2004-06-09 Federico Mena Quintero <federico@ximian.com>
+ * glib/gkeyfile.c: Doc clarifications. (#165907, Vincent Untz)
- * tests/uri-test.c (to_uri_tests): Fix expected results (ha ha)
- for URIs that *should* have been invalid, or viceversa.
- (from_uri_tests): Likewise.
+ * tests/keyfile-test.c (test_group_remove): Add test case for
+ group removal.
-2004-06-07 Federico Mena Quintero <federico@ximian.com>
+ * glib/gkeyfile.c (g_key_file_remove_group): Don't segfault
+ if the group doesn't exist. (#165887, Mathias Hasselmann)
- Fixes #140532.
+2005-01-30 Matthias Clasen <mclasen@redhat.com>
- * glib/gconvert.c (is_asciialphanum): Renamed from
- is_escalphanum(); ensures that this is an ASCII character.
- (is_asciiescalpha): Renamed from is_escalpha().
- (hostname_validate): Use the two functions above.
- (g_filename_to_uri): Don't convert the filename to UTF-8.
- (g_filename_from_uri): Don't convert the filename from UTF-8.
+ * tests/keyfile-test.c: Some more unit tests.
-Mon Jun 7 22:25:24 2004 Matthias Clasen <maclas@gmx.de>
+2005-01-28 Christian Rose <menthos@menthos.com>
- * tests/run-markup-tests.sh: Default to silence, but support
- a -v argument to get the old output back.
+ * configure.in: Added "tl" to ALL_LINGUAS.
-2004-06-06 Tor Lillqvist <tml@iki.fi>
+2005-01-24 Matthias Clasen <mclasen@redhat.com>
- * glib/gutils.c (g_get_any_init): Check home for being
- NULL. (#143812, Ivan Wong)
+ * tests/run-markup-tests.sh: Let $srcdir default to .
-Sun Jun 6 15:23:00 2004 Pawan Chitrakr <pawan@nplinu.org>
+ * tests/markups/fail-40.gmarkup: Add a test with a long entity
+ name.
- * configure.in: Added "ne" (Nepali) in ALL_LINGUAS
+ * glib/gmarkup.c (unescape_text_state_inside_entity_name): Don't
+ copy the entity name into a short buffer of fixed length. Instead,
+ compare it in place with strncmp(), and do a full strdup() in the
+ error path. (#165100, Simon Budig)
-Fri Jun 4 19:26:47 2004 Manish Singh <yosh@gimp.org>
+2005-01-22 Tor Lillqvist <tml@novell.com>
- * glib/galloca.h: cpp #directives should always have the "#" in the
- first column of the the line. Do that for "#pragma alloca". Fixes
- bug #143744.
+ * glib/gdate.c (g_date_set_time): Don't g_assert that localtime()
+ returns non-NULL. It does return NULL at least on Win32 if you
+ pass it a negative time_t, which although wrong, shouldn't cause
+ an application to abort. Instead return 2000-01-01 as a default
+ date. Print a warning unless G_DISABLE_CHECKS. (#164622)
-Wed Jun 2 00:57:16 2004 Matthias Clasen <maclas@gmx.de>
+2005-01-20 Matthias Clasen <mclasen@redhat.com>
- * glib/gtypes.h: Use higher precision for the mathematical
- constants. (#141941, Morten Welinder)
+ * glib/gkeyfile.c (g_key_file_parse_value_as_integer): Don't
+ interpret leading zeros as octal. The specification requires
+ %f parsing, and %f doesn't allow octal.
-Tue Jun 1 22:01:40 2004 Matthias Clasen <maclas@gmx.de>
+ * tests/keyfile-test.c: Add some more tests.
- * glib/gmarkup.c (advance_char): Fix an off-by-one error
- in g_markup_parse_context_parse(). (#142794, Morten Welinder)
+ * glib/gkeyfile.c (g_key_file_get_keys): Return keys in
+ the order found in the file, rather than the opposite.
+ (g_key_file_parse_value_as_string): Fix error reporting.
-Sun May 16 23:23:29 2004 Matthias Clasen <maclas@gmx.de>
+2005-01-19 Matthias Clasen <mclasen@redhat.com>
- Merged from 2.4:
+ * glib/gkeyfile.c (g_key_file_parse_data): Accept \r\n as
+ line end. (#163030, Bastian Nocera)
+ (g_key_file_load_from_data): Make -1 work as a size.
- * glib/gcompletion.c (g_completion_add_items):
- (g_completion_remove_items): Remove unnecessary
- checks. (#142559, Morten Welinder)
+ * tests/keyfile-test.c: Some unit tests for the keyfile
+ parser.
-2004-05-15 Tor Lillqvist <tml@iki.fi>
+ * tests/Makefile.am (test_programs): Add keyfile-test.
- * glib/gutils.c (g_get_any_init): [Win32] Only believe HOME if it
- is an absolute path and exists. (#138618)
+2005-01-19 Tor Lillqvist <tml@novell.com>
-2004-05-14 Tor Lillqvist <tml@iki.fi>
+ * glib/gbacktrace.c (g_on_error_stack_trace): On Win32 call
+ G_BREAKPOINT() if being debugged.
- * glib/gnulib/vasnprintf.c (vasnprintf): Handle empty digit string
- for precision correctly. (#142400)
+ * glib/gmessages.c (g_logv): For fatal messages on Win32, use
+ G_BREAKPOINT() also without G_ENABLE_DEBUG, but only if being
+ debugged. Suggestion by Ulf Lamping.
- For backward compatibility with the Trio implementation, make "ll"
- format modifer work on Win32, too. Change into "I64" before
- passing to the system printf. (#142433)
+2005-01-18 Matthias Clasen <mclasen@redhat.com>
- * tests/printf-test.c (main): Add tests for the above.
+ * glib/gqsort.c: Don't include alloca.h. It is not needed,
+ and does not exist on win32. (#164468, Kazuki IWAMOTO)
-2004-05-10 Matthias Clasen <mclasen@redhat.com>
+ * glib/gkeyfile.c (g_key_file_get_boolean_list): Fix a
+ sparse warning. (#164467, Kjartan Maraas)
- Merge from 2.4:
-
- * glib/gmain.c (block_source, unblock_source): Make these
- static. (#142230, Morten Welinder)
+2005-01-17 Matthias Clasen <mclasen@redhat.com>
-2004-05-10 Tor Lillqvist <tml@iki.fi>
+ * glib/gconvert.c (g_get_filename_charsets): Don't crash
+ if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
- * glib/giowin32.c (g_win32_print_gioflags): Remove two duplicated
- lines. Thanks to Benoît Carpentier.
+2005-01-15 Tor Lillqvist <tlillqvist@novell.com>
-Sun May 9 02:04:14 2004 Matthias Clasen <maclas@gmx.de>
+ * configure.in: sh portability fix. Use "test" and not [.
+ (#163144, Robert Ögren)
- Merge from 2.4:
-
- * glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
- memleak. (#141998, Nikolai Weibull)
+2005-01-13 Matthias Clasen <mclasen@redhat.com>
-Sat May 8 23:02:26 2004 Matthias Clasen <maclas@gmx.de>
+ * glib/gqsort.c: Sync to glibc. (#133994, Morten Welinder,
+ patch by Kjartan Maraas)
- Merge from 2.4:
-
- * glib/gutils.h: Remove vestigial g_get_codeset().
- * glib/gutils.c (g_get_codeset): Call g_get_charset().
- (#137703, Owen Taylor)
+2005-01-11 Owen Taylor <otaylor@redhat.com>
-2004-05-06 Matthias Clasen <mclasen@redhat.com>
+ * configure.in: Add gmodule-export-2.0.pc to AC_CONFIG_FILES.
- * configure.in: Bump version number to 2.5.0.
+ * glib/Makefile.am gobject/Makefile.am gthread/Makefile.am:
+ Use grep | head -n 1 instead of grep -m 1 which doesn't work
+ with slightly older versions of GNU grep in
+ install-libtool-import-lib rule.
-Wed May 5 23:35:44 2004 Matthias Clasen <maclas@gmx.de>
+2005-01-11 Matthias Clasen <mclasen@redhat.com>
- * glib/gconvert.c (g_filename_from_uri): Quote the file
- scheme to mark it as untranslatable. String change.
- (#133144, Danilo Segan)
+ * glib/gdir.c (g_dir_open): Typo fix.
-2004-05-03 Pablo Saratxaga <pablo@mandrakesoft.com>
+2005-01-10 Owen Taylor <otaylor@redhat.com>
- * configure.in: Added Walloon (wa) to ALL_LINGUAS
+ * Makefile.am (EXTRA_DIST): Add missing ChangeLog.pre*
-Sun May 2 03:51:59 2004 Manish Singh <yosh@gimp.org>
+2005-01-09 Hans Breuer <hans@breuer.org>
- * glib/gtypes.h: check for __pentium4__ when deciding whether to
- use bswap for GUINT32_SWAP_LE_BE_IA32(). Fixes bug #141620.
+ * glib/gfileutils.c : make it compile with mvc6 default sdk,
+ (#define INVALID_FILE_ATTRIBUTES, FILE_ATTRIBUTE_DEVICE)
-2004-05-01 Hans Breuer <hans@breuer.org>
+2005-01-09 Tor Lillqvist <tlillqvist@novell.com>
- * glib/gnulib/Makefile.am : added makefile.msc to EXTRA_DIST
- fixes #141563, Steve Lhomme
+ * glib/gwin32.c: Include also wchar.h for wcslen on
+ Cygwin.
+ (g_win32_error_message): Fix cast. (#163133, Roger Leigh)
-2004-04-30 Matthias Clasen <mclasen@redhat.com>
+ * glib/gfileutils.c: Include <io.h> on Windows for
+ prototypes. (#163390, Kazuki Iwamoto)
- * === Released 2.4.1 ===
+2005-01-07 Matthias Clasen <mclasen@redhat.com>
- * configure.in: Version 2.4.1, interface age 1.
+ * NEWS: Typo fixes.
- * NEWS: Updates
+ * configure.in: Bump version
+
+ * === Released 2.6.1 ===
+
+2005-01-07 Matthias Clasen <mclasen@redhat.com>
+
+ * configure.in:
+ * Makefile.am: Generate and distribute gmodule-export-2.0.pc,
+ which is currently just a copy of gmodule-2.0.pc, but makes
+ it explicit that it adds --export-dynamic.
-2004-04-25 Tor Lillqvist <tml@iki.fi>
+ * gmodule-export-2.0.pc.in: Copy of gmodule-2.0.pc.in.
- * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
- Plug memory leak. (#140770, John Ehresman)
+2005-01-06 Tor Lillqvist <tml@iki.fi>
-2004-04-23 Matthias Clasen <mclasen@redhat.com>
+ * glib/Makefile.am
+ * gobject/Makefile.am: glib.def and gobject.def are generated, not
+ in $(srcdir). (#163143, J. Ali Harlow)
- * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
- Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
- point. (#139134, Piotr Klaban)
+ * configure.in
+ * glib/Makefile.am
+ * gobject/Makefile.am: Win32 cross-compilation fixes. (#163144,
+ J. Ali Harlow)
- * glib/gconvert.c (open_converter): Don't call g_strerror() here,
- since it can lead to infinite recursion. (#139133, Piotr Klaban)
+2005-01-05 Matthias Clasen <mclasen@redhat.com>
-2004-04-22 Matthias Clasen <mclasen@redhat.com>
+ * glib/gutils.h: Simplify the inlining magic to make it
+ work at Oh zero. (#162990, Kalpesh Shah)
- * tests/testglib.c (main): Trivial warning fix. (#140345)
+2005-01-04 Tor Lillqvist <tml@iki.fi>
- * tests/queue-test.c (main): Add some tests for off-by-one errors.
+ * glib/guniprop.c (get_locale_type): Use g_win32_getlocale()
+ instead of setlocale() on Windows. setlocale() returns strings
+ like "Turkish_Turkey".
- * glib/gqueue.c (g_queue_pop_nth_link): Fix an off-by-one
- error. (#139703, Philippe Blain)
+2005-01-04 Matthias Clasen <mclasen@redhat.com>
- * tests/testglib.c (main): Add testcases for g_message() involving
- non-printable and unsafe characters.
+ Fix the inlining magic. (#157536, Jens Hatlak, and
+ #149907, Morten Welinder)
+
+ * configure.in: Define G_CAN_INLINE in glibconfig.h
- * glib/gmessages.c (escape_string): Don't assume that
- string->str remains unchanged over g_string_insert()
- calls. (#139030, Christophe Saout)
+ * glib/gutils.h: Streamline the inlining magic a bit,
+ don't use extern when implementing the non-inlined
+ version.
- * glib/gstrfuncs.c (g_ascii_strtod): Fix problems when a
- locale-specific decimal separator directly follows a
- number. (#138424, Nickolay V. Shmyrev)
+2005-01-03 Matthias Clasen <mclasen@redhat.com>
- * tests/strtod-test.c (main): Add some more testcases.
+ * glib/gutils.c (g_find_program_in_path): Don't return
+ directories. (#160738, Tommi Komulainen)
- * glib/gmain.c (g_main_context_query): Only set time_is_current to
- FALSE if context->timeout is not zero. (#137795, Christian Krause)
+ * glib/gfileutils.c (g_file_get_contents): Clarify the
+ documentation. (#162251, Mariano Suárez-Alvarez)
-2004-04-21 Matthias Clasen <mclasen@redhat.com>
+2005-01-02 Matthias Clasen <mclasen@redhat.com>
- * tests/printf-test.c (main): Comment out a nonessential testcase
- which fails on HP-UX. (#136283, Jonas Jonsson)
+ * glib/gutils.c (g_setenv, g_unsetenv): Clarify the
+ docs. (#162747, Crispin Flowerday)
-2004-04-15 Matthias Clasen <mclasen@redhat.com>
+2005-01-01 J. Ali Harlow <ali@juiblex.co.uk>
- * tests/patterntest.c (main): Add tests for the empty pattern.
+ * configure.in: Don't use AC_TRY_RUN to test for long long format
+ when using the MSVCRT.DLL runtime since we know the answer anyway
+ and it causes some mild inconvience when cross compiling.
- * glib/gpattern.c (g_pattern_spec_new): Don't read and write out
- of bounds when the pattern is empty. (#140032, Stanislav Brabec,
- Stefan Fent)
+ * README.win32: Add a reference to the cross compiling section
+ of the reference manual.
-2004-04-10 Tor Lillqvist <tml@iki.fi>
+ * docs/reference/glib/cross.sgml: MinGW uses MSVCRT.DLL which
+ requires %I64i instead of %lli. (#161306)
- * glib/gwin32.c (g_win32_getlocale): Add new language and
- sublanguage codes, from GNU gettext. (#137958)
-
- * glib/giowin32.c
- * glib/gmain.c
- * glib/gstrfuncs.c
- * glib/gthread.c: Decorating variable definitions with
- __declspec(dllexport) causes problems on Cygwin build, and isn't
- really needed for a native Win32 build with mingw or MSVC, so
- remove. (#138402, Roger Leigh)
-
- * glib/libcharset/localcharset.c: Use Win32-specific code also on
- Cygwin.
- * tests/uri-test.c: Don't assume that local filenames are in UTF-8
- on Cygwin, either. (#138412, Roger Leigh)
+2005-01-01 Tor Lillqvist <tml@iki.fi>
-2004-04-08 Guntupalli Karunakar <karunakar@freedomink.org>
+ * glib/gutils.c: Make the g_getenv() ABI backward compatibility
+ wrapper more robust.
- * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
+2005-01-01 Tor Lillqvist <tml@iki.fi>
-2004-04-03 Tor Lillqvist <tml@iki.fi>
+ * glib/glib.symbols
+ * glib/gutils.h
+ * glib/gutils.c: Make also g_getenv(), g_setenv(), g_unsetenv()
+ and g_find_program_in_path() take and return UTF-8 strings on
+ Win32. Implement DLL ABI backward compatility for them, too. Move
+ all the DLL ABI stability wrappers to the end of the file. Use
+ wide character API when available in inner_find_program_in_path().
- * configure.in: Remove AC_CYGWIN, obsolete. Don't let pthreads be
- found on Cygwin, they don't work. (#138401, Roger Leigh)
+ * glib/gfileutils.c: With the UTF-8ness of g_getenv() above, just
+ use g_getenv() to get PATHEXT. (Yeah, it's probably overdoing it
+ to consider somebody actually having anything else than ASCII
+ in PATHEXT, but...)
-2004-03-31 Tor Lillqvist <tml@iki.fi>
+2004-12-31 Tor Lillqvist <tml@iki.fi>
- * tests/spawn-test-win32-gui.c: Minor Cygwin fix. (#138405, Roger
- Leigh)
+ * glib/gfileutils.c (g_file_test): Rewrite the Win32 version to
+ use GetFileAttributes() instead of stat(). stat() is unreliable
+ for corner cases like '\\server\share' or '.\'. Part of fixing
+ #161797. When testing for executability, in addition to the fixed
+ set of executable file name extensions also check the PATHEXT
+ environment variable.
- * tests/unicode-encoding.c (process): Use UTF-16LE explicitly also
- on Cygwin. (#138423, Roger Leigh)
+2004-12-30 Tor Lillqvist <tml@iki.fi>
-2004-03-30 Adam Weinberger <adamw@gnome.org>
+ * glib/gutils.c (g_get_current_dir): In the Win32 version, use
+ GetCurrentDirectory() directly for simpler buffer length
+ management. I don't trust getcwd() getting it right all the time.
- * configure.in: Added en_CA to ALL_LINGUAS.
+2004-12-30 Matthias Clasen <mclasen@redhat.com>
-2004-03-21 Tor Lillqvist <tml@iki.fi>
+ * glib/gfileutils.c (g_file_test): Typo fix.
- * glib/gutils.c (g_path_get_dirname): Fix Win32 behaviour in some
- cases where a drive letter is present. For 'a:' or 'a:foo', return
- 'a:.'. This is mostly just for consistency with the behaviour
- without a drive letter. But very important is to for 'a:\foo' or
- 'a:\', return 'a:\', and not 'a:'. (Ditto for forward slashes
- instead of backslashes.) (#137316)
+2004-12-30 Tor Lillqvist <tml@iki.fi>
- * tests/dirname-test.c (main): More complete testing on Win32. If
- a test fails, include expected and actual result in error message.
+ * glib/gutils.c (g_path_skip_root): Require UNC paths to start
+ with exactly two slashes.
+ (g_get_current_dir): Use wide character API when available.
+ (g_path_get_dirname): Handle UNC paths better. Part of fix for
+ #161797.
-Fri Mar 19 15:21:09 2004 Owen Taylor <otaylor@redhat.com>
+2004-12-27 Matthias Clasen <mclasen@redhat.com>
- * glib/gmain.c: Fix the accidental revert of the
- fixes from #112222 that happened when the GChildWatch
- code was added. (Caught by Christian Persch)
+ * configure.in: Add an OS_LINUX conditional.
+
+ * glib/Makefile.am (TESTS): Only check the ABI on
+ linux, since the shell script is not portable, and libtool
+ deficiencies may distort the ABI on other platforms. (#161741)
+
+2004-12-21 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/goption.c (print_entry): Don't show
+ the special G_OPTION_REMAINING entry. (#161934,
+ Matthew F. Barnes)
+
+2004-12-20 Tor Lillqvist <tml@iki.fi>
+
+ * glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve
+ docs.
-Fri Mar 19 11:07:06 2004 Owen Taylor <otaylor@redhat.com>
+2004-12-20 Matthias Clasen <mclasen@redhat.com>
- * tests/atomic-test.c (main): Make computation
- of "biggest_pointer" vaguely more portable.
- (#137498, Jonas Jonsson)
+ * tests/option-test.c: Add some tests for '--'
+ stripping.
-2004-03-16 Tor Lillqvist <tml@iki.fi>
+ * glib/goption.c (g_option_context_parse): Don't
+ strip '--' if it would be needed by a second option
+ parser. (#161701)
- * configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
- on Win32) case, where the 64-bit type is called long long, but the
- system printf/scanf format modifier for 64-bit integers is still I64.
+ * glib/gunicollate.c (g_utf8_collate): Make docs
+ more accurate. (#161683, Marcin Krzyzanowski)
-2004-03-16 Gareth Owen <gowen72@yahoo.com>
+2004-12-19 Matthias Clasen <mclasen@redhat.com>
- * configure.in: Added en_GB to ALL_LINGUAS
+ * glib/goption.c (g_option_context_parse): Call
+ post-parse hooks also if argv is NULL. (#161668,
+ Marcin Krzyzanowski)