2004-12-30 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_get_current_dir): Use GetCurrentDirectory()
directly for simpler buffer length management. I don't trust
getcwd() getting it right all the time.
2004-12-30 Tor Lillqvist <tml@iki.fi>
* 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.
2004-12-27 Matthias Clasen <mclasen@redhat.com>
* 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 Matthias Clasen <mclasen@redhat.com>
* tests/option-test.c: Add some tests for '--'
stripping.
* glib/goption.c (g_option_context_parse): Don't
strip '--' if it would be needed by a second option
parser. (#161701)
2004-12-19 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (g_option_context_parse): Call
post-parse hooks also if argv is NULL. (#161668,
Marcin Krzyzanowski)
2004-12-12 Tor Lillqvist <tml@iki.fi>
* glib/glib.symbols
* glib/gconvert.[ch]: Implement Windows DLL ABI stability also for
g_filename_{to,from}_uri().
2004-12-11 Tor Lillqvist <tml@iki.fi>
* glib/gstdio.c (g_rename, g_unlink, g_remove): Add doc comments
about Windows restrictions on renaming and removing.
(g_remove): Mimic POSIX remove() on Windows: Try also to rmdir if
removal as a file fails. Document this.
* glib/gstdio.h: Clarify comment about file name encoding on
Windows.
2004-12-09 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (print_help): Don't print help options
if the options of a specific group have been
requested. (#160645, Glynn Foster)
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_language_names): Update the returned
value after locale changes. (#160271, Christian Persch)
(_g_utils_thread_init): Initialize the language name cache
before going threaded.
* glib/gthread.c (g_thread_init_glib): Call _g_utils_thread_init().
* glib/gthreadinit.h: Add _g_utils_thread_init().
2004-12-06 Tor Lillqvist <tml@iki.fi>
* glib/giowin32.c (g_io_win32_finalize): Fix a write to freed
memory: Unlock the channel's mutex before unrefing the channel.
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/glib.symbols
* glib/gwin32.[hc]: Implement DLL ABI stability also for
g_win32_get_package_installation_directory()) and
g_win32_get_package_installation_subdirectory().
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
binary compatibilty entries from the import library. They aren't
used by newly compiled code, so no need to have them in the import
library. (The "PRIVATE" keyword in the .def file is supposed to do
this, but not implemented in the GNU linker yet.)
2004-12-02 Matthias Clasen <mclasen@redhat.com>
* glib/glib.symbols: Protect the the various push/pop allocator
functions by #ifndef DISABLE_MEM_POOLS. (#160215, Frederic Crozat)
* glib/makegalias.pl: Support #ifndef'ed sections.
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (glib.def)
* gobject/Makefile.am (gobject.def): gcc -E complains "linker
unused because linking not done" if told to preprocess an
*.symbols file. Use '-' and redirection to pass it as standard
input instead.
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/gspawn-win32-helper.c (WinMain): Also check errno to detect
true errors from spawn*(). (#157258, reported by Bruce Hochstetler)
2004-11-29 Matthias Clasen <mclasen@redhat.com>
* glib/gmarkup.c: Remove leftover noinline attributes.
(is_name_start_char, is_name_char): Avoid possible reads
beyond the end of g_ascii_table.
Sun Nov 28 13:13:56 2004 Manish Singh <yosh@gimp.org>
* glib/abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.
* tests/utf8-validate.c: cast pointer math to gint for error print
message.
2004-11-28 Tor Lillqvist <tml@iki.fi>
* 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.
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)
2004-11-27 Matthias Clasen <mclasen@redhat.com>
* 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)
2004-11-25 Matthias Clasen <mclasen@redhat.com>
* tests/strtod-test.c (main): Add a testcase for the previous fix.
* glib/gstrfuncs.c (g_ascii_strtod): Make it work again for floats
starting with a decimal point, like .75 (#156421, Hans Breuer)
Thu Nov 25 14:02:43 2004 Manish Singh <yosh@gimp.org>
* glib/abicheck.sh: filter out G_GNUC stuff when doing the compare.
* glib/gmessages.c (g_assert_warning): call abort() at the end, so
gcc doesn't warn.
2004-11-24 Tor Lillqvist <tml@iki.fi>
* 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.