2005-03-10 Sven Neumann <sven@gimp.org>
* 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)
* tests/file-test.c (test_get_contents): added a (very basic) test
for g_file_get_contents().
2005-03-09 Tor Lillqvist <tml@novell.com>
* 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.
2005-03-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_find_program_in_path): Mark the last
paragraph of the docs as Windows-specific. (#169433)
2005-02-24 Tor Lillqvist <tml@novell.com>
* Makefile.am (BUILT_EXTRA_DIST): Don't distribute
glib.def. (#167496, J. Ali Harlow)
* gobject/Makefile.am (EXTRA_DIST): Don't distribute
gobject.def. (#167496, J. Ali Harlow)
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
on non-linux platforms. (#168177, Michael Banck)
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* 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)
Tue Feb 22 22:03:38 2005 Manish Singh <yosh@gimp.org>
* 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/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.
2005-02-10 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (print_help): Take main group options into
account when calculating column size. (#166921)
(g_option_context_parse): Accept -? as documented. (#166977)
2005-02-08 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_parse_value_as_string): Don't
write out of bounds.
* glib/goption.c (g_option_context_parse): Fix a
one-too-short memory allocation. (#166609, Nicolas Laurent)
* tests/Makefile.am (TESTS_ENVIRONMENT): Add tests with
MALLOC_CHECK_.
* tests/option-test.c: Add a test for unkown short options.
2005-02-07 Matthias Clasen <mclasen@redhat.com>
* glib/glib.symbols:
* glib/gutils.h:
* glib/gutils.c (g_listenv): New function to list all
environment variables. (#166327, Hans Petter Jansson)
Sun Feb 6 22:00:46 2005 Manish Singh <yosh@gimp.org>
* abicheck.sh: feed the contents of config.h and glibconfig.h
into the preprocessor, since glib.symbols could need #defines
from them.
Sun Feb 6 21:59:09 2005 Manish Singh <yosh@gimp.org>
* glib/abicheck.sh: feed the contents of config.h and glibconfig.h
into the preprocessor, since glib.symbols could need #defines
from them.
Sun Feb 6 12:09:55 2005 Manish Singh <yosh@gimp.org>
* 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.
2005-02-05 Tor Lillqvist <tml@novell.com>
* 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.
2005-02-05 Tor Lillqvist <tml@novell.com>
* glib/gfileutils.c (g_file_get_contents): In the Win32 ABI
stability version, call g_file_get_contents_utf8(), not
itself. (#166386)