platform/upstream/glib.git
19 years agoPrint more detailled output from the timer tests. Don't print home
Tor Lillqvist [Sun, 20 Mar 2005 10:43:38 +0000 (10:43 +0000)]
Print more detailled output from the timer tests. Don't print home

2005-03-20  Tor Lillqvist  <tml@novell.com>

* tests/testglib.c (main): Print more detailled output from the
timer tests. Don't print home directory twice. Test
g_win32_error_message().

* 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.

19 years agohandle galiasdef.c (although completely useless for msvc build)
Hans Breuer [Fri, 18 Mar 2005 17:44:51 +0000 (17:44 +0000)]
handle galiasdef.c (although completely useless for msvc build)

2005-03-18  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc.in : handle galiasdef.c (although completely
useless for msvc build)

* glib/gbacktrace.c glib/gmessage.c : need at least _WIN_VER 0x0401
for IsDebuggerPresent()

* gobject/makefile.msc.in : handle gobjectaliasdef.c

19 years agoUpdate the documentation, reflecting the fact that the special case for
Matthias Clasen [Thu, 17 Mar 2005 19:28:15 +0000 (19:28 +0000)]
Update the documentation, reflecting the fact that the special case for

2005-03-17  Matthias Clasen  <mclasen@redhat.com>

* 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)

19 years agoShut up CVS
Manish Singh [Thu, 17 Mar 2005 04:02:27 +0000 (04:02 +0000)]
Shut up CVS

19 years agoUpdated Canadian English translation.
Adam Weinberger [Wed, 16 Mar 2005 04:51:00 +0000 (04:51 +0000)]
Updated Canadian English translation.

* en_CA.po: Updated Canadian English translation.

19 years agoWarn if there already is a main group. (#170445, Jeff Franks)
Matthias Clasen [Tue, 15 Mar 2005 13:24:22 +0000 (13:24 +0000)]
Warn if there already is a main group. (#170445, Jeff Franks)

2005-03-15  Matthias Clasen  <mclasen@redhat.com>

* glib/goption.c (g_option_context_set_main_group): Warn
if there already is a main group.  (#170445, Jeff Franks)

19 years agoMake work again.
Matthias Clasen [Mon, 14 Mar 2005 06:47:51 +0000 (06:47 +0000)]
Make work again.

2005-03-14  Matthias Clasen  <mclasen@redhat.com>

* abicheck.sh: Make work again.

* gsourceclosure.c: Fix a typo.

Make PLT-reduction work with gcc4, and don't include
everything in gobjectalias.h:

* gobject.symbols: Group symbols by header and source
file.
* makegobjectalias.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
* Makefile.am (gobjectaliasdef.c): Add a rule to
build this file.
* *.c: Include gobjectalias.h after the other i
        GLib headers, include gobjectaliasdef.c at the bottom.

19 years agodelete a bunch of dead code.
Manish Singh [Mon, 14 Mar 2005 06:01:51 +0000 (06:01 +0000)]
delete a bunch of dead code.

Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>

        * tests/array-test.c: delete a bunch of dead code.

19 years agoremove spurious IA prefix from g_quark_try_string.
Manish Singh [Mon, 14 Mar 2005 05:30:08 +0000 (05:30 +0000)]
remove spurious IA prefix from g_quark_try_string.

Sun Mar 13 21:28:47 2005  Manish Singh  <yosh@gimp.org>

        * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.

19 years agoShut up CVS
Manish Singh [Mon, 14 Mar 2005 05:07:52 +0000 (05:07 +0000)]
Shut up CVS

19 years agoSome fixes
Matthias Clasen [Mon, 14 Mar 2005 05:06:17 +0000 (05:06 +0000)]
Some fixes

19 years agoStill need to include glibconfig.h
Matthias Clasen [Mon, 14 Mar 2005 04:30:25 +0000 (04:30 +0000)]
Still need to include glibconfig.h

19 years agoMake PLT-reduction work with gcc4, and don't include everything in
Matthias Clasen [Mon, 14 Mar 2005 04:26:57 +0000 (04:26 +0000)]
Make PLT-reduction work with gcc4, and don't include everything in

2005-03-13  Matthias Clasen  <mclasen@redhat.com>

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.

19 years agoUpdated Persian translation by Hamed Malek <hamed@farsiweb.info>.
Roozbeh Pournader [Sun, 13 Mar 2005 12:54:24 +0000 (12:54 +0000)]
Updated Persian translation by Hamed Malek <hamed@farsiweb.info>.

2005-03-13  Roozbeh Pournader  <roozbeh@farsiweb.info>

* fa.po: Updated Persian translation by
  Hamed Malek <hamed@farsiweb.info>.

19 years agoDon't try and generate a dotfile from the name -- it doesn't work with
Soeren Sandmann [Sat, 12 Mar 2005 05:45:32 +0000 (05:45 +0000)]
Don't try and generate a dotfile from the name -- it doesn't work with

Fri Mar 11 23:51:12 2005  Soeren Sandmann  <sandmann@redhat.com>

* 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.

19 years agoAvoid stupid compiler complaints about precision loss.
Matthias Clasen [Fri, 11 Mar 2005 18:02:35 +0000 (18:02 +0000)]
Avoid stupid compiler complaints about precision loss.

2005-03-11  Matthias Clasen  <mclasen@redhat.com>

* m4macros/glib-gettext.m4: Avoid stupid compiler complaints
about precision loss.

19 years agoRemove a lot of pointless g_return_if_fail() checks. (#169859, Morten
Matthias Clasen [Fri, 11 Mar 2005 04:10:53 +0000 (04:10 +0000)]
Remove a lot of pointless g_return_if_fail() checks. (#169859, Morten

2005-03-10  Matthias Clasen  <mclasen@redhat.com>

* glib/gdate.c: Remove a lot of pointless g_return_if_fail()
checks.  (#169859, Morten Welinder)

19 years agoinclude <gstdio.h>.
Sven Neumann [Thu, 10 Mar 2005 17:12:35 +0000 (17:12 +0000)]
include <gstdio.h>.

2005-03-10  Sven Neumann  <sven@gimp.org>

* tests/file-test.c: include <gstdio.h>.

19 years agodelay memory allocation until after the first read. Saves a bunch of
Sven Neumann [Thu, 10 Mar 2005 12:56:01 +0000 (12:56 +0000)]
delay memory allocation until after the first read. Saves a bunch of

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().

19 years agoAdd g_file_replace.
Manish Singh [Thu, 10 Mar 2005 03:07:21 +0000 (03:07 +0000)]
Add g_file_replace.

Wed Mar  9 19:06:45 2005  Manish Singh  <yosh@gimp.org>

        * glib/glib.symbols: Add g_file_replace.

19 years agoBump version
Matthias Clasen [Wed, 9 Mar 2005 19:38:42 +0000 (19:38 +0000)]
Bump version

19 years agoUpdated Indonesian Translation
Ahmad Riza H Nst [Wed, 9 Mar 2005 14:40:04 +0000 (14:40 +0000)]
Updated Indonesian Translation

2005-03-09  Ahmad Riza H Nst  <ari@160c.afraid.org>

        * id.po: Updated Indonesian Translation

19 years agoavoid unnecessary filename conversions.
Sven Neumann [Wed, 9 Mar 2005 11:22:09 +0000 (11:22 +0000)]
avoid unnecessary filename conversions.

2005-03-09  Sven Neumann  <sven@gimp.org>

* glib/gfileutils.c (g_file_replace): avoid unnecessary filename
conversions.

19 years ago[Win32] Don't leak return value from get_special_folder(). (#169348,
Tor Lillqvist [Wed, 9 Mar 2005 02:08:34 +0000 (02:08 +0000)]
[Win32] Don't leak return value from get_special_folder(). (#169348,

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.

19 years agoNew API. A function to atomically create a file.
Søren Sandmann [Tue, 8 Mar 2005 20:51:49 +0000 (20:51 +0000)]
New API. A function to atomically create a file.

Tue Mar  8 15:46:54 2005  Søren Sandmann  <sandmann@redhat.com>

* glib/gfileutils.c (g_file_replace): New API. A function to
atomically create a file.

19 years agoAdd the new attributes here too.
Matthias Clasen [Tue, 8 Mar 2005 05:59:03 +0000 (05:59 +0000)]
Add the new attributes here too.

2005-03-08  Matthias Clasen  <mclasen@redhat.com>

* glib/glib.symbols: Add the new attributes here too.

19 years agoDefine G_GNUC_NULL_TERMINATED. (#164706, Marc Meissner)
Matthias Clasen [Tue, 8 Mar 2005 05:41:45 +0000 (05:41 +0000)]
Define G_GNUC_NULL_TERMINATED. (#164706, Marc Meissner)

2005-03-08  Matthias Clasen  <mclasen@redhat.com>

* glib/gmacros.h: Define G_GNUC_NULL_TERMINATED.
(#164706, Marc Meissner)

* glib/gstrfuncs.h:
* glib/gfileutils.h: Use G_GNUC_NULL_TERMINATED where
appropriate.

19 years agoFix an error message. (#168751, Hazael Maldonado Torres)
Matthias Clasen [Tue, 8 Mar 2005 05:20:47 +0000 (05:20 +0000)]
Fix an error message. (#168751, Hazael Maldonado Torres)

2005-03-08  Matthias Clasen  <mclasen@redhat.com>

* glib/goption.c (parse_int): Fix an error message.
(#168751, Hazael Maldonado Torres)

19 years agoSmall cleanup (use G_BEGIN/END_DECLS). (#168474, Fabricio Barros Cabral)
Matthias Clasen [Tue, 8 Mar 2005 05:15:57 +0000 (05:15 +0000)]
Small cleanup (use G_BEGIN/END_DECLS). (#168474, Fabricio Barros Cabral)

2005-03-07  Matthias Clasen  <mclasen@redhat.com>

* glib/gdebug.h: Small cleanup (use G_BEGIN/END_DECLS).
(#168474, Fabricio Barros Cabral)

19 years agoApply patches by Stefan Kost to document naming restrictions. (#167614)
Matthias Clasen [Tue, 8 Mar 2005 04:43:00 +0000 (04:43 +0000)]
Apply patches by Stefan Kost to document naming restrictions. (#167614)

2005-03-07  Matthias Clasen  <mclasen@redhat.com>

* gobject/tmpl/gtype.sgml:
* gobject/tmpl/param_value_types.sgml:
* gobject/tmpl/gparamspec.sgml: Apply patches by
Stefan Kost to document naming restrictions. (#167614)

19 years agoMark the last paragraph of the docs as Windows-specific. (#169433)
Matthias Clasen [Mon, 7 Mar 2005 13:49:24 +0000 (13:49 +0000)]
Mark the last paragraph of the docs as Windows-specific. (#169433)

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)

19 years agoFix error reporting in gmarkup
Matthias Clasen [Sun, 6 Mar 2005 20:26:28 +0000 (20:26 +0000)]
Fix error reporting in gmarkup

19 years agoUpdated Romanian translation by Mişu Moldovan <dumol@go.ro>.
Dan Damian [Sat, 5 Mar 2005 16:01:49 +0000 (16:01 +0000)]
Updated Romanian translation by Mişu Moldovan <dumol@go.ro>.

        * ro.po: Updated Romanian translation by         Mişu Moldovan <dumol@go.ro>.

19 years agoUpdated Greek Translation.
Kostas Papadimas [Mon, 28 Feb 2005 08:39:06 +0000 (08:39 +0000)]
Updated Greek Translation.

19 years agodone
Ivan Stojmirov [Sat, 26 Feb 2005 14:18:32 +0000 (14:18 +0000)]
done

19 years agoTypo.
Tor Lillqvist [Thu, 24 Feb 2005 23:55:51 +0000 (23:55 +0000)]
Typo.

19 years agoDon't distribute glib.def. (#167496, J. Ali Harlow)
Tor Lillqvist [Thu, 24 Feb 2005 23:52:35 +0000 (23:52 +0000)]
Don't distribute glib.def. (#167496, J. Ali Harlow)

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)

19 years agoUse g_fopen(). (#168341, Daniel Atallah)
Tor Lillqvist [Thu, 24 Feb 2005 23:46:36 +0000 (23:46 +0000)]
Use g_fopen(). (#168341, Daniel Atallah)

2005-02-24  Tor Lillqvist  <tml@novell.com>

* glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341,
Daniel Atallah)

19 years agoDon't forget to set G_THREAD_LIBS_FOR_GTHREAD on non-linux platforms.
Matthias Clasen [Thu, 24 Feb 2005 04:24:16 +0000 (04:24 +0000)]
Don't forget to set G_THREAD_LIBS_FOR_GTHREAD on non-linux platforms.

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)

19 years agoSet LANGUAGE instead of LC_ALL to shield against LANGUAGE being set in the
Matthias Clasen [Thu, 24 Feb 2005 03:54:42 +0000 (03:54 +0000)]
Set LANGUAGE instead of LC_ALL to shield against LANGUAGE being set in the

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)

19 years agoOn G_OS_UNIX, simple #define g_open and co. as aliases for their
Manish Singh [Wed, 23 Feb 2005 06:04:05 +0000 (06:04 +0000)]
On G_OS_UNIX, simple #define g_open and co. as aliases for their

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.

19 years agoSimplify the loop for the fix below.
Manish Singh [Wed, 23 Feb 2005 02:33:54 +0000 (02:33 +0000)]
Simplify the loop for the fix below.

Tue Feb 22 18:33:07 2005  Manish Singh  <yosh@gimp.org>

        * glib/gtimer.c (g_usleep): Simplify the loop for the fix below.

19 years agoUse a memchunk for sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros
Matthias Clasen [Mon, 21 Feb 2005 04:35:29 +0000 (04:35 +0000)]
Use a memchunk for sizeof(GQueue)-sized chunks. (#167984, Fabrício Barros

2005-02-20  Matthias Clasen  <mclasen@redhat.com>

* glib/gqueue.c (g_queue_new): Use a memchunk for
sizeof(GQueue)-sized chunks.  (#167984, Fabrício Barros Cabral)

19 years agoFix usage of nanosleep(). (#163039, Bastien Nocera)
Matthias Clasen [Mon, 21 Feb 2005 03:50:50 +0000 (03:50 +0000)]
Fix usage of nanosleep(). (#163039, Bastien Nocera)

2005-02-20  Matthias Clasen  <mclasen@redhat.com>

* glib/gtimer.c (g_usleep): Fix usage of
nanosleep().  (#163039, Bastien Nocera)

19 years agoUpdated French translation.
Christophe Merlet [Sun, 20 Feb 2005 11:37:54 +0000 (11:37 +0000)]
Updated French translation.

19 years agoUpdated French translation.
Christophe Merlet [Sun, 20 Feb 2005 11:05:16 +0000 (11:05 +0000)]
Updated French translation.

19 years agoAdded Xhosa translation Added "xh" to ALL_LINGUAS.
Adi Attar [Wed, 16 Feb 2005 16:42:20 +0000 (16:42 +0000)]
Added Xhosa translation Added "xh" to ALL_LINGUAS.

2005-02-16  Adi Attar  <aattar@cvs.gnome.org>

* xh.po: Added Xhosa translation
* configure.in: Added "xh" to ALL_LINGUAS.

19 years agoupdated by amanpreetalam@yahoo.com
Amanpreet Singh Alam [Wed, 16 Feb 2005 07:52:07 +0000 (07:52 +0000)]
updated by amanpreetalam@yahoo.com

19 years agoUpdated Turkish Translation by Onur Can Cakmak
Baris Cicek [Tue, 15 Feb 2005 21:51:52 +0000 (21:51 +0000)]
Updated Turkish Translation by Onur Can Cakmak

* tr.po: Updated Turkish Translation by Onur Can Cakmak

19 years agoUpdated French translation.
Benoît Dejean [Sun, 13 Feb 2005 22:16:10 +0000 (22:16 +0000)]
Updated French translation.

* fr.po: Updated French translation.

19 years agoInclude winsock2.h before windows.h, to avoid compilation errors with
Tor Lillqvist [Fri, 11 Feb 2005 22:43:32 +0000 (22:43 +0000)]
Include winsock2.h before windows.h, to avoid compilation errors with

2005-02-11  Tor Lillqvist  <tml@novell.com>

* glib/giowin32.c: Include winsock2.h before windows.h, to avoid
compilation errors with MSVC. (#167105)

19 years agoUpdated Serbian translation.
Danilo Šegan [Fri, 11 Feb 2005 12:31:14 +0000 (12:31 +0000)]
Updated Serbian translation.

19 years agoTake main group options into account when calculating column size.
Matthias Clasen [Fri, 11 Feb 2005 04:11:34 +0000 (04:11 +0000)]
Take main group options into account when calculating column size.

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)

19 years agoDon't leak path
Matthias Clasen [Wed, 9 Feb 2005 15:40:12 +0000 (15:40 +0000)]
Don't leak path

2005-02-09  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.c (find_file_in_data_dirs): Don't leak path

19 years agoUpdated Spanish translation.
Francisco Javier F. Serrador [Wed, 9 Feb 2005 13:21:22 +0000 (13:21 +0000)]
Updated Spanish translation.

2005-02-09  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

* es.po: Updated Spanish translation.

19 years agoUpdate Ukrainian translation.
Maxim Dziumanenko [Wed, 9 Feb 2005 12:20:01 +0000 (12:20 +0000)]
Update Ukrainian translation.

2005-02-09  Maxim Dziumanenko <mvd@mylinux.com.ua>

* Update Ukrainian translation.

19 years agoDon't write out of bounds.
Matthias Clasen [Tue, 8 Feb 2005 15:14:31 +0000 (15:14 +0000)]
Don't write out of bounds.

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.

19 years agoNew function to list all environment variables. (#166327, Hans Petter
Matthias Clasen [Tue, 8 Feb 2005 04:28:31 +0000 (04:28 +0000)]
New function to list all environment variables. (#166327, Hans Petter

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)

19 years agoAdd gmodule-no-export-2.0.pc.
Tor Lillqvist [Mon, 7 Feb 2005 16:31:54 +0000 (16:31 +0000)]
Add gmodule-no-export-2.0.pc.

2005-02-07  Tor Lillqvist  <tml@novell.com>

* glib-zip.in: Add gmodule-no-export-2.0.pc.

19 years agofeed the contents of config.h and glibconfig.h into the preprocessor,
Manish Singh [Mon, 7 Feb 2005 06:01:18 +0000 (06:01 +0000)]
feed the contents of config.h and glibconfig.h into the preprocessor,

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.

19 years agofeed the contents of config.h and glibconfig.h into the preprocessor,
Manish Singh [Mon, 7 Feb 2005 06:00:32 +0000 (06:00 +0000)]
feed the contents of config.h and glibconfig.h into the preprocessor,

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.

19 years agoDon't use matching constraints for asm mem parameters. This makes the code
Manish Singh [Sun, 6 Feb 2005 20:25:42 +0000 (20:25 +0000)]
Don't use matching constraints for asm mem parameters. This makes the code

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.

19 years agoUpdated Greek Translation.
Kostas Papadimas [Sun, 6 Feb 2005 09:08:43 +0000 (09:08 +0000)]
Updated Greek Translation.

19 years agoconfigure.in (G_LIBS_EXTRA) I think we can include <winsock2.h> and link
Tor Lillqvist [Sat, 5 Feb 2005 22:39:40 +0000 (22:39 +0000)]
configure.in (G_LIBS_EXTRA) I think we can include <winsock2.h> and link

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.

19 years agoIn the Win32 ABI stability version, call g_file_get_contents_utf8(), not
Tor Lillqvist [Sat, 5 Feb 2005 22:09:11 +0000 (22:09 +0000)]
In the Win32 ABI stability version, call g_file_get_contents_utf8(), not

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)

19 years agoRemove the --enable-ansi option (#160469)
Matthias Clasen [Sat, 5 Feb 2005 03:38:06 +0000 (03:38 +0000)]
Remove the --enable-ansi option (#160469)

2005-02-04  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Remove the --enable-ansi option  (#160469)

19 years agoAdd a note regarding inefficiency of repeated appends. (#166271, Olivier
Matthias Clasen [Sat, 5 Feb 2005 03:12:06 +0000 (03:12 +0000)]
Add a note regarding inefficiency of repeated appends. (#166271, Olivier

2005-02-04  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/linked_lists_double.sgml:
* glib/tmpl/linked_lists_single.sgml: Add a note
regarding inefficiency of repeated appends. (#166271,
Olivier Sessink)

19 years agoDefine a HAVE_GNUC_VISIBILITY automake conditional.
Matthias Clasen [Sat, 5 Feb 2005 03:02:20 +0000 (03:02 +0000)]
Define a HAVE_GNUC_VISIBILITY automake conditional.

2005-02-04  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Define a HAVE_GNUC_VISIBILITY automake
conditional.

* 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)

19 years agoAdd a warning against using g_quark_from_static_string() in dynamically
Matthias Clasen [Thu, 3 Feb 2005 05:45:21 +0000 (05:45 +0000)]
Add a warning against using g_quark_from_static_string() in dynamically

2005-02-03  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/quarks.sgml: Add a warning against
using g_quark_from_static_string() in dynamically
loaded modules.

19 years agoAdd bug number.
Tor Lillqvist [Wed, 2 Feb 2005 23:55:04 +0000 (23:55 +0000)]
Add bug number.

19 years agoRemove misleading comment, too.
Tor Lillqvist [Wed, 2 Feb 2005 23:54:01 +0000 (23:54 +0000)]
Remove misleading comment, too.

19 years agoRemove unnecessary MSVC-only typedef for pid_t. GLib does not pretend to
Tor Lillqvist [Wed, 2 Feb 2005 23:52:31 +0000 (23:52 +0000)]
Remove unnecessary MSVC-only typedef for pid_t. GLib does not pretend to

2005-02-02  Tor Lillqvist  <tml@novell.com>

* glib/gwin32.h: Remove unnecessary MSVC-only typedef for
pid_t. GLib does not pretend to be a POSIX emulation library.

19 years agoDon't use potentially incorrect errno in several places. (#165951)
Tor Lillqvist [Wed, 2 Feb 2005 23:28:18 +0000 (23:28 +0000)]
Don't use potentially incorrect errno in several places. (#165951)

2005-02-02  Tor Lillqvist  <tml@novell.com>

* glib/gfileutils.c: Don't use potentially incorrect errno in
several places. (#165951)
(g_mkstemp): Set errno appropriately.

19 years agoIn the Win32 part of all functions, handle invalid UTF-8 more robustly.
Tor Lillqvist [Wed, 2 Feb 2005 23:12:38 +0000 (23:12 +0000)]
In the Win32 part of all functions, handle invalid UTF-8 more robustly.

2005-02-02  Tor Lillqvist  <tml@novell.com>

* 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)

19 years agoMove doc comments inline.
Matthias Clasen [Wed, 2 Feb 2005 06:07:14 +0000 (06:07 +0000)]
Move doc comments inline.

2005-02-02  Matthias Clasen  <mclasen@redhat.com>

* glib/gutils.c: Move doc comments inline.

* glib/ghash.h: Adjust some argument names.

* configure.in: Give meaningful names to g_memmove()
arguments.

19 years agoAdd test case for key removal.
Matthias Clasen [Wed, 2 Feb 2005 03:25:00 +0000 (03:25 +0000)]
Add test case for key removal.

2005-02-01  Matthias Clasen  <mclasen@redhat.com>

* tests/keyfile-test.c (test_key_remove): Add test case for
key removal.

* glib/gkeyfile.c (g_key_file_remove_key): Actually remove
the key from the list of pairs.  (#165980, David Hoover)

19 years agoUpdated pt_BR translation
Raphael Higino [Tue, 1 Feb 2005 23:43:27 +0000 (23:43 +0000)]
Updated pt_BR translation

19 years agoDoc clarifications. (#165907, Vincent Untz)
Matthias Clasen [Tue, 1 Feb 2005 14:17:25 +0000 (14:17 +0000)]
Doc clarifications. (#165907, Vincent Untz)

2005-02-01  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.c: Doc clarifications.  (#165907, Vincent Untz)

19 years agoAdd test case for group removal.
Matthias Clasen [Tue, 1 Feb 2005 14:10:46 +0000 (14:10 +0000)]
Add test case for group removal.

2005-02-01  Matthias Clasen  <mclasen@redhat.com>

* tests/keyfile-test.c (test_group_remove): Add test case for
group removal.

* glib/gkeyfile.c (g_key_file_remove_group): Don't segfault
if the group doesn't exist.  (#165887, Mathias Hasselmann)

19 years agoUpdated Lithuanian translation.
Žygimantas Beručka [Mon, 31 Jan 2005 09:33:51 +0000 (09:33 +0000)]
Updated Lithuanian translation.

2005-01-31  Žygimantas Beručka  <uid0@akl.lt>

        * lt.po: Updated Lithuanian translation.

19 years agoUpdated Italian translation.
Alessio Frusciante [Sun, 30 Jan 2005 16:17:25 +0000 (16:17 +0000)]
Updated Italian translation.

19 years agoSome more unit tests.
Matthias Clasen [Sun, 30 Jan 2005 06:33:10 +0000 (06:33 +0000)]
Some more unit tests.

2005-01-30  Matthias Clasen  <mclasen@redhat.com>

* tests/keyfile-test.c: Some more unit tests.

19 years agoAdded "tl" to ALL_LINGUAS. Added Tagalog translation by Eric Pareja
Christian Rose [Fri, 28 Jan 2005 18:43:34 +0000 (18:43 +0000)]
Added "tl" to ALL_LINGUAS. Added Tagalog translation by Eric Pareja

2005-01-28  Christian Rose  <menthos@menthos.com>

* configure.in: Added "tl" to ALL_LINGUAS.
* po/tl.po: Added Tagalog translation by
Eric Pareja <xenos@upm.edu.ph>.

19 years agoLet $srcdir default to .
Matthias Clasen [Mon, 24 Jan 2005 17:35:44 +0000 (17:35 +0000)]
Let $srcdir default to .

2005-01-24  Matthias Clasen  <mclasen@redhat.com>

* tests/run-markup-tests.sh: Let $srcdir default to .

19 years agoAdd a test with a long entity name.
Matthias Clasen [Mon, 24 Jan 2005 17:25:37 +0000 (17:25 +0000)]
Add a test with a long entity name.

2005-01-24  Matthias Clasen  <mclasen@redhat.com>

* tests/markups/fail-40.gmarkup: Add a test with a long entity
name.

* 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)

19 years agoDon't g_assert that localtime() returns non-NULL. It does return NULL at
Tor Lillqvist [Sat, 22 Jan 2005 22:10:45 +0000 (22:10 +0000)]
Don't g_assert that localtime() returns non-NULL. It does return NULL at

2005-01-22  Tor Lillqvist  <tml@novell.com>

* 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)

19 years agoShut up cvs
Manish Singh [Fri, 21 Jan 2005 23:28:48 +0000 (23:28 +0000)]
Shut up cvs

19 years agoDon't interpret leading zeros as octal. The specification requires %f
Matthias Clasen [Thu, 20 Jan 2005 17:16:47 +0000 (17:16 +0000)]
Don't interpret leading zeros as octal. The specification requires %f

2005-01-20  Matthias Clasen  <mclasen@redhat.com>

* 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.

* tests/keyfile-test.c: Add some more tests.

19 years agoAdd some more tests.
Matthias Clasen [Thu, 20 Jan 2005 15:31:55 +0000 (15:31 +0000)]
Add some more tests.

2005-01-20  Matthias Clasen  <mclasen@redhat.com>

* tests/keyfile-test.c: Add some more tests.

* 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.

19 years agoAccept \r\n as line end. (#163030, Bastian Nocera)
Matthias Clasen [Wed, 19 Jan 2005 14:14:27 +0000 (14:14 +0000)]
Accept \r\n as line end. (#163030, Bastian Nocera)

2005-01-19  Matthias Clasen  <mclasen@redhat.com>

* 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.

* tests/keyfile-test.c: Some unit tests for the keyfile
parser.

* tests/Makefile.am (test_programs): Add keyfile-test.

19 years agoNah, don't use FatalAppExit(). abort() is better.
Tor Lillqvist [Wed, 19 Jan 2005 02:27:37 +0000 (02:27 +0000)]
Nah, don't use FatalAppExit(). abort() is better.

19 years agoOn Win32 call G_BREAKPOINT() if being debugged.
Tor Lillqvist [Wed, 19 Jan 2005 01:55:40 +0000 (01:55 +0000)]
On Win32 call G_BREAKPOINT() if being debugged.

2005-01-19  Tor Lillqvist  <tml@novell.com>

* glib/gbacktrace.c (g_on_error_stack_trace): On Win32 call
G_BREAKPOINT() if being debugged.

* 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. Otherwise use FatalAppExit().

19 years agoDon't include alloca.h. It is not needed, and does not exist on win32.
Matthias Clasen [Tue, 18 Jan 2005 13:41:57 +0000 (13:41 +0000)]
Don't include alloca.h. It is not needed, and does not exist on win32.

2005-01-18  Matthias Clasen  <mclasen@redhat.com>

* glib/gqsort.c: Don't include alloca.h. It is not needed,
and does not exist on win32.  (#164468, Kazuki IWAMOTO)

19 years agoFix a sparse warning. (#164467, Kjartan Maraas)
Matthias Clasen [Tue, 18 Jan 2005 13:19:02 +0000 (13:19 +0000)]
Fix a sparse warning. (#164467, Kjartan Maraas)

2005-01-18  Matthias Clasen  <mclasen@redhat.com>

* glib/gkeyfile.c (g_key_file_get_boolean_list): Fix a
sparse warning.  (#164467, Kjartan Maraas)

19 years agoDon't crash if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)
Matthias Clasen [Mon, 17 Jan 2005 15:28:59 +0000 (15:28 +0000)]
Don't crash if G_FILENAME_ENCODING is empty. (#164330, Pawel Sakowski)

2005-01-17  Matthias Clasen  <mclasen@redhat.com>

* glib/gconvert.c (g_get_filename_charsets): Don't crash
if G_FILENAME_ENCODING is empty.  (#164330, Pawel Sakowski)

19 years agofix a typo in my name
Sebastien Bacher [Mon, 17 Jan 2005 10:25:27 +0000 (10:25 +0000)]
fix a typo in my name

19 years agoFix an example. (#164269, Sebastian Bacher)
Matthias Clasen [Mon, 17 Jan 2005 03:16:29 +0000 (03:16 +0000)]
Fix an example. (#164269, Sebastian Bacher)

2005-01-16  Matthias Clasen  <mclasen@redhat.com>

* gobject/tmpl/enumerations_flags.sgml: Fix an
example.  (#164269, Sebastian Bacher)

2

19 years agosh portability fix. Use "test" and not [. (#163144, Robert Ögren)
Tor Lillqvist [Sat, 15 Jan 2005 22:40:16 +0000 (22:40 +0000)]
sh portability fix. Use "test" and not [. (#163144, Robert Ögren)

2005-01-15  Tor Lillqvist  <tml@iki.fi>

* configure.in: sh portability fix. Use "test" and not [.
(#163144, Robert Ögren)

19 years agoushe7
Ivan Stojmirov [Fri, 14 Jan 2005 22:20:12 +0000 (22:20 +0000)]
ushe7

19 years agoUpdated Catalan translation.
Jordi Mallach [Fri, 14 Jan 2005 09:53:39 +0000 (09:53 +0000)]
Updated Catalan translation.