platform/upstream/glib.git
19 years agoMake the g_getenv() ABI backward compatibility wrapper more robust.
Tor Lillqvist [Sat, 1 Jan 2005 16:55:10 +0000 (16:55 +0000)]
Make the g_getenv() ABI backward compatibility wrapper more robust.

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

* glib/gutils.c: Make the g_getenv() ABI backward compatibility
wrapper more robust.

19 years agoglib/glib.symbols glib/gutils.h Make also g_getenv(), g_setenv(),
Tor Lillqvist [Sat, 1 Jan 2005 02:09:51 +0000 (02:09 +0000)]
glib/glib.symbols glib/gutils.h Make also g_getenv(), g_setenv(),

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

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

19 years agoRewrite the Win32 version to use GetFileAttributes() instead of stat().
Tor Lillqvist [Fri, 31 Dec 2004 01:15:15 +0000 (01:15 +0000)]
Rewrite the Win32 version to use GetFileAttributes() instead of stat().

2004-12-31  Tor Lillqvist  <tml@iki.fi>

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

19 years agoUse GetCurrentDirectory() directly for simpler buffer length management. I
Tor Lillqvist [Thu, 30 Dec 2004 17:48:23 +0000 (17:48 +0000)]
Use GetCurrentDirectory() directly for simpler buffer length management. I

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.

20 years agoTypo fix.
Matthias Clasen [Thu, 30 Dec 2004 05:18:56 +0000 (05:18 +0000)]
Typo fix.

20 years agoRequire UNC paths to start with exactly two slashes. (g_get_current_dir):
Tor Lillqvist [Thu, 30 Dec 2004 02:00:49 +0000 (02:00 +0000)]
Require UNC paths to start with exactly two slashes. (g_get_current_dir):

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.

20 years agoAdd an OS_LINUX conditional.
Matthias Clasen [Mon, 27 Dec 2004 06:55:08 +0000 (06:55 +0000)]
Add an OS_LINUX conditional.

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)

20 years agoDon't show the special G_OPTION_REMAINING entry. (#161934, Matthew F.
Matthias Clasen [Wed, 22 Dec 2004 04:34:43 +0000 (04:34 +0000)]
Don't show the special G_OPTION_REMAINING entry. (#161934, Matthew F.

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)

20 years agoImprove docs.
Tor Lillqvist [Mon, 20 Dec 2004 22:33:11 +0000 (22:33 +0000)]
Improve docs.

2004-12-20  Tor Lillqvist  <tml@iki.fi>

* glib/gconvert.c (g_locale_to_utf8, g_filename_to_uri): Improve
docs.

20 years agoAdd some tests for '--' stripping.
Matthias Clasen [Mon, 20 Dec 2004 21:09:16 +0000 (21:09 +0000)]
Add some tests for '--' stripping.

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)

20 years agoFix last commit.
Matthias Clasen [Mon, 20 Dec 2004 16:10:30 +0000 (16:10 +0000)]
Fix last commit.

20 years agoMake docs more accurate. (#161683, Marcin Krzyzanowski)
Matthias Clasen [Mon, 20 Dec 2004 16:10:04 +0000 (16:10 +0000)]
Make docs more accurate. (#161683, Marcin Krzyzanowski)

2004-12-20  Matthias Clasen  <mclasen@redhat.com>

* glib/gunicollate.c (g_utf8_collate): Make docs
more accurate.  (#161683, Marcin Krzyzanowski)

20 years agoFix a typo. (#161713, Vincent Untz)
Matthias Clasen [Mon, 20 Dec 2004 14:20:25 +0000 (14:20 +0000)]
Fix a typo. (#161713, Vincent Untz)

2004-12-20  Matthias Clasen  <mclasen@redhat.com>

* gobject/tmpl/signals.sgml: Fix a typo.  (#161713,
Vincent Untz)

20 years agoUpdated vi.po
Nguyen Thai Ngoc Duy [Mon, 20 Dec 2004 13:09:49 +0000 (13:09 +0000)]
Updated vi.po

20 years agoCall post-parse hooks also if argv is NULL. (#161668, Marcin Krzyzanowski)
Matthias Clasen [Sun, 19 Dec 2004 05:20:12 +0000 (05:20 +0000)]
Call post-parse hooks also if argv is NULL. (#161668, Marcin Krzyzanowski)

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)

20 years agoTranslation updated by Tino Meinen.
Vincent van Adrighem [Sat, 18 Dec 2004 16:09:09 +0000 (16:09 +0000)]
Translation updated by Tino Meinen.

2004-12-18  Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Translation updated by Tino Meinen.

20 years agoUpdated Swedish translation.
Christian Rose [Sat, 18 Dec 2004 14:59:59 +0000 (14:59 +0000)]
Updated Swedish translation.

2004-12-18  Christian Rose  <menthos@menthos.com>

* sv.po: Updated Swedish translation.

20 years agoUpdated German translation.
Hendrik Brandt [Sat, 18 Dec 2004 13:52:55 +0000 (13:52 +0000)]
Updated German translation.

2004-12-18  Hendrik Brandt  <heb@gnome-de.org>

        * de.po: Updated German translation.

20 years agoClarify g_get_prgname docs. (#161480, Danny Milo)
Matthias Clasen [Sat, 18 Dec 2004 02:06:58 +0000 (02:06 +0000)]
Clarify g_get_prgname docs. (#161480, Danny Milo)

2004-12-17  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/misc_utils.sgml: Clarify g_get_prgname docs.
(#161480, Danny Milo)

20 years agoupdated Russian translation
Leonid Kanter [Fri, 17 Dec 2004 13:56:05 +0000 (13:56 +0000)]
updated Russian translation

20 years agoUpdated Albanian translation.
Laurent Dhima [Fri, 17 Dec 2004 12:37:52 +0000 (12:37 +0000)]
Updated Albanian translation.

2004-12-17  Laurent Dhima  <laurenti@alblinux.net>

* sq.po: Updated Albanian translation.

20 years agoImprove wording. (#161484, Christian Biere)
Matthias Clasen [Fri, 17 Dec 2004 01:42:03 +0000 (01:42 +0000)]
Improve wording. (#161484, Christian Biere)

2004-12-16  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/version.sgml: Improve wording.  (#161484,
Christian Biere)

20 years agoBump version
Matthias Clasen [Thu, 16 Dec 2004 06:14:53 +0000 (06:14 +0000)]
Bump version

20 years ago2.6.0 GLIB_2_6_0
Matthias Clasen [Thu, 16 Dec 2004 05:48:25 +0000 (05:48 +0000)]
2.6.0

20 years agoFurther Win32 edits.
Tor Lillqvist [Wed, 15 Dec 2004 22:08:37 +0000 (22:08 +0000)]
Further Win32 edits.

20 years agoWin32 edits.
Tor Lillqvist [Wed, 15 Dec 2004 21:55:43 +0000 (21:55 +0000)]
Win32 edits.

20 years agoAdd g_rmdir
Matthias Clasen [Wed, 15 Dec 2004 16:42:36 +0000 (16:42 +0000)]
Add g_rmdir

2004-12-15  Matthias Clasen  <mclasen@redhat.com>

* glib/glib-sections.txt: Add g_rmdir

20 years agoFix spelling Add g_return_val_if_fail.
Alexander Larsson [Wed, 15 Dec 2004 16:42:28 +0000 (16:42 +0000)]
Fix spelling Add g_return_val_if_fail.

2004-12-15  Alexander Larsson  <alexl@redhat.com>

* glib/gconvert.c: (g_filename_display_basename):
Fix spelling
Add g_return_val_if_fail.

* glib/glib.symbols:
Add g_filename_display_basename

20 years agoAdd g_filename_display_basename.
Alexander Larsson [Wed, 15 Dec 2004 16:34:49 +0000 (16:34 +0000)]
Add g_filename_display_basename.

2004-12-15  Alexander Larsson  <alexl@redhat.com>

* glib/gconvert.[ch]:
Add g_filename_display_basename.

20 years ago*** empty log message ***
Matthias Clasen [Wed, 15 Dec 2004 13:55:34 +0000 (13:55 +0000)]
*** empty log message ***

20 years agoUpdates
Matthias Clasen [Tue, 14 Dec 2004 18:54:33 +0000 (18:54 +0000)]
Updates

2004-12-14  Matthias Clasen  <mclasen@redhat.com>

* README.in: Updates

20 years agoSet version to 2.6.0
Matthias Clasen [Tue, 14 Dec 2004 13:38:14 +0000 (13:38 +0000)]
Set version to 2.6.0

2004-12-14  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Set version to 2.6.0

20 years agoUpdate.
Tor Lillqvist [Mon, 13 Dec 2004 23:05:16 +0000 (23:05 +0000)]
Update.

2004-12-13  Tor Lillqvist  <tml@iki.fi>

* NEWS: Update.

* glib/glib.symbols
* glib/gstdio.[ch]: Add g_rmdir().

20 years agoUpdated British translation.
David Lodge [Mon, 13 Dec 2004 20:12:18 +0000 (20:12 +0000)]
Updated British translation.

2004-12-13  David Lodge <dave@cirt.net>

        * en_GB.po: Updated British translation.

20 years agoUpdates
Matthias Clasen [Mon, 13 Dec 2004 15:09:00 +0000 (15:09 +0000)]
Updates

20 years agoUpdates
Matthias Clasen [Mon, 13 Dec 2004 14:46:32 +0000 (14:46 +0000)]
Updates

20 years agoglib/glib.symbols Implement Windows DLL ABI stability also for
Tor Lillqvist [Sun, 12 Dec 2004 20:53:02 +0000 (20:53 +0000)]
glib/glib.symbols Implement Windows DLL ABI stability also for

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

20 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 12 Dec 2004 18:18:55 +0000 (18:18 +0000)]
Updated Bulgarian translation

2004-12-12  Alexander Shopov  <ash@contact.bg>

* bg.po: Updated Bulgarian translation

20 years agoAdd doc comments about Windows restrictions on renaming and removing.
Tor Lillqvist [Sat, 11 Dec 2004 22:03:01 +0000 (22:03 +0000)]
Add doc comments about Windows restrictions on renaming and removing.

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.

20 years agoFix #157255. Also some refactoring of this still very ugly source file.
Tor Lillqvist [Sat, 11 Dec 2004 03:47:32 +0000 (03:47 +0000)]
Fix #157255. Also some refactoring of this still very ugly source file.

2004-12-11  Tor Lillqvist  <tml@iki.fi>

* glib/gspawn-win32.c: Fix #157255. Also some refactoring of this
still very ugly source file.

20 years agoDon't print help options if the options of a specific group have been
Matthias Clasen [Thu, 9 Dec 2004 14:38:13 +0000 (14:38 +0000)]
Don't print help options if the options of a specific group have been

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)

20 years agoUpdate the returned value after locale changes. (#160271, Christian
Matthias Clasen [Tue, 7 Dec 2004 15:20:15 +0000 (15:20 +0000)]
Update the returned value after locale changes. (#160271, Christian

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

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Tue, 7 Dec 2004 13:46:00 +0000 (13:46 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoFix a write to freed memory: Unlock the channel's mutex before unrefing
Tor Lillqvist [Mon, 6 Dec 2004 23:43:43 +0000 (23:43 +0000)]
Fix a write to freed memory: Unlock the channel's mutex before unrefing

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.

20 years agoMakefile.am gmodule.def Win32 DLL ABI stability cruft like in ../glib.
Tor Lillqvist [Mon, 6 Dec 2004 15:45:25 +0000 (15:45 +0000)]
Makefile.am gmodule.def Win32 DLL ABI stability cruft like in ../glib.

2004-12-06  Tor Lillqvist  <tml@iki.fi>

* Makefile.am
* gmodule.def
* gmodule.[hc]: Win32 DLL ABI stability cruft like in ../glib.

20 years agoRemove a no longer needed hack for libtool < 1.5.2. (#100697, Owen Taylor,
Matthias Clasen [Mon, 6 Dec 2004 06:20:19 +0000 (06:20 +0000)]
Remove a no longer needed hack for libtool < 1.5.2. (#100697, Owen Taylor,

2004-12-06  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Remove a no longer needed hack for
libtool < 1.5.2.  (#100697, Owen Taylor, Sebastian Wilhelmi)

20 years agoglib/glib.symbols Implement DLL ABI stability also for
Tor Lillqvist [Sun, 5 Dec 2004 09:11:42 +0000 (09:11 +0000)]
glib/glib.symbols Implement DLL ABI stability also for

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

20 years agoRemove the DLL binary compatibilty entries from the import library. They
Tor Lillqvist [Sun, 5 Dec 2004 04:18:13 +0000 (04:18 +0000)]
Remove the DLL binary compatibilty entries from the import library. They

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

20 years agoReturn -1 if queue is NULL. (#159530, Philippe Blain)
Matthias Clasen [Sat, 4 Dec 2004 18:32:54 +0000 (18:32 +0000)]
Return -1 if queue is NULL. (#159530, Philippe Blain)

2004-12-04  Matthias Clasen  <mclasen@redhat.com>

* glib/gqueue.c (g_queue_link_index): Return -1 if queue is
NULL.  (#159530, Philippe Blain)

20 years agoUpdated Lithuanian translation.
Žygimantas Beručka [Sat, 4 Dec 2004 17:52:13 +0000 (17:52 +0000)]
Updated Lithuanian translation.

2004-12-04  Žygimantas Beručka  <uid0@akl.lt>

        * lt.po: Updated Lithuanian translation.

20 years agoUpdated Spanish translation.
Francisco Javier F. Serrador [Sat, 4 Dec 2004 11:06:14 +0000 (11:06 +0000)]
Updated Spanish translation.

2004-12-04  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

* es.po: Updated Spanish translation.

20 years agoUpdated Simplified Chinese translation
Funda Wang [Sat, 4 Dec 2004 08:20:09 +0000 (08:20 +0000)]
Updated Simplified Chinese translation

20 years ago2004-12-03 Updated ja.po. T.Aihana <aihana@gnome.gr.jp>
Updated ja.po. T.Aihana [Fri, 3 Dec 2004 15:51:16 +0000 (15:51 +0000)]
2004-12-03 Updated ja.po. T.Aihana <aihana@gnome.gr.jp>

20 years agoBump version.
Matthias Clasen [Thu, 2 Dec 2004 21:32:58 +0000 (21:32 +0000)]
Bump version.

2004-12-02  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Bump version.

20 years ago2.5.7
Matthias Clasen [Thu, 2 Dec 2004 21:13:05 +0000 (21:13 +0000)]
2.5.7

20 years agoAdd some warnings regarding --disable-mem-pools.
Matthias Clasen [Thu, 2 Dec 2004 15:46:09 +0000 (15:46 +0000)]
Add some warnings regarding --disable-mem-pools.

2004-12-02  Matthias Clasen  <mclasen@redhat.com>

* glib/building.sgml:
* glib/tmpl/linked_lists_single.sgml:
* glib/tmpl/linked_lists_double.sgml:
* glib/tmpl/trees-nary.sgml: Add some warnings regarding
--disable-mem-pools.

20 years agoProtect the the various push/pop allocator functions by #ifndef
Matthias Clasen [Thu, 2 Dec 2004 15:28:30 +0000 (15:28 +0000)]
Protect the the various push/pop allocator functions by #ifndef

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.

20 years agoDon't forget to initialize g_system_config_dirs. (#160213, Frederic
Matthias Clasen [Thu, 2 Dec 2004 14:27:31 +0000 (14:27 +0000)]
Don't forget to initialize g_system_config_dirs. (#160213, Frederic

2004-12-02  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)

20 years agoFix a typo. (#160162, Tom Copeland)
Matthias Clasen [Thu, 2 Dec 2004 03:37:24 +0000 (03:37 +0000)]
Fix a typo. (#160162, Tom Copeland)

2004-12-01  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/iochannels.sgml: Fix a typo.  (#160162, Tom Copeland)

20 years agoactually enable (and fix up the length test).
Manish Singh [Thu, 2 Dec 2004 01:06:17 +0000 (01:06 +0000)]
actually enable (and fix up the length test).

Wed Dec  1 17:04:37 2004  Manish Singh  <yosh@gimp.org>

        * glib/gstring.h (g_string_append_c_inline): actually enable (and
        fix up the length test).

20 years agoUpdated Czech translation.
Miloslav Trmac [Wed, 1 Dec 2004 18:50:54 +0000 (18:50 +0000)]
Updated Czech translation.

2004-12-01  Miloslav Trmac  <mitr@volny.cz>

* cs.po: Updated Czech translation.

20 years agoglib/Makefile.am (glib.def) gcc -E complains "linker unused because
Tor Lillqvist [Tue, 30 Nov 2004 21:55:48 +0000 (21:55 +0000)]
glib/Makefile.am (glib.def) gcc -E complains "linker unused because

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.

20 years agoDocument --enable-man and --disable-visibility.
Matthias Clasen [Tue, 30 Nov 2004 14:48:55 +0000 (14:48 +0000)]
Document --enable-man and --disable-visibility.

2004-11-30  Matthias Clasen  <mclasen@redhat.com>

* glib/building.sgml: Document --enable-man and --disable-visibility.

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Tue, 30 Nov 2004 14:22:50 +0000 (14:22 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoUpdates
Matthias Clasen [Tue, 30 Nov 2004 05:13:07 +0000 (05:13 +0000)]
Updates

20 years agoUpdated Canadian English translation.
Adam Weinberger [Tue, 30 Nov 2004 02:40:27 +0000 (02:40 +0000)]
Updated Canadian English translation.

* en_CA.po: Updated Canadian English translation.

20 years agoAlso check errno to detect true errors from spawn*(). (#157258, reported
Tor Lillqvist [Tue, 30 Nov 2004 02:27:22 +0000 (02:27 +0000)]
Also check errno to detect true errors from spawn*(). (#157258, reported

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)

20 years agoTranslation updated by Tino Meinen.
Vincent van Adrighem [Mon, 29 Nov 2004 21:40:44 +0000 (21:40 +0000)]
Translation updated by Tino Meinen.

2004-11-29  Vincent van Adrighem  <adrighem@gnome.org>

* nl.po: Translation updated by Tino Meinen.

20 years agoDefine empty for gcc 2.95.
Matthias Clasen [Mon, 29 Nov 2004 14:50:47 +0000 (14:50 +0000)]
Define empty for gcc 2.95.

2004-11-29  Matthias Clasen  <mclasen@redhat.com>

* glib/gmacros.h (G_GNUC_MALLOC): Define empty for gcc 2.95.

* glib/gmarkup.c (unescape_text_state_after_charref_hash):
Avoid a strndup() here, noticed by Morten Welinder.

20 years agoRemove leftover noinline attributes. (is_name_start_char, is_name_char):
Matthias Clasen [Mon, 29 Nov 2004 06:51:16 +0000 (06:51 +0000)]
Remove leftover noinline attributes. (is_name_start_char, is_name_char):

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.

20 years agoRemove leftover noinline attributes.
Matthias Clasen [Mon, 29 Nov 2004 06:32:38 +0000 (06:32 +0000)]
Remove leftover noinline attributes.

2004-11-29  Matthias Clasen  <mclasen@redhat.com>

* glib/gmarkup.c: Remove leftover noinline attributes.

20 years agoUse the perl found by configure. (#149826, Morten Welinder)
Matthias Clasen [Mon, 29 Nov 2004 05:42:41 +0000 (05:42 +0000)]
Use the perl found by configure. (#149826, Morten Welinder)

2004-11-29  Matthias Clasen  <mclasen@redhat.com>

* Makefile.am: Use the perl found by configure.  (#149826,
Morten Welinder)

20 years agoDocument encoding of g_get_user_name(), g_get_real_name(), g_get_tmp_dir()
Tor Lillqvist [Sun, 28 Nov 2004 22:54:37 +0000 (22:54 +0000)]
Document encoding of g_get_user_name(), g_get_real_name(), g_get_tmp_dir()

2004-11-28  Tor Lillqvist  <tml@iki.fi>

* glib/tmpl/misc_utils.sgml: Document encoding of g_get_user_name(),
g_get_real_name(), g_get_tmp_dir() and g_get_current_dir().

20 years agofilter G_GNUC before PRIVATE so $ is still true.
Manish Singh [Sun, 28 Nov 2004 21:22:05 +0000 (21:22 +0000)]
filter G_GNUC before PRIVATE so $ is still true.

Sun Nov 28 13:21:12 2004  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: filter G_GNUC before PRIVATE so $ is still true.

20 years agofilter G_GNUC before PRIVATE so $ is still true.
Manish Singh [Sun, 28 Nov 2004 21:21:14 +0000 (21:21 +0000)]
filter G_GNUC before PRIVATE so $ is still true.

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.

20 years agominor comment fix.
Manish Singh [Sun, 28 Nov 2004 20:08:14 +0000 (20:08 +0000)]
minor comment fix.

Sun Nov 28 12:07:29 2004  Manish Singh  <yosh@gimp.org>

        * tests/utf8-validate.c: minor comment fix.

20 years agoDocument G_GNUC_MALLOC.
Matthias Clasen [Sun, 28 Nov 2004 19:13:36 +0000 (19:13 +0000)]
Document G_GNUC_MALLOC.

2004-11-28  Matthias Clasen  <mclasen@redhat.com>

* glib/tmpl/macros_misc.sgml: Document G_GNUC_MALLOC.

* glib/glib-sections.txt: Add G_GNUC_MALLOC

20 years agoMark functions with G_GNUC_MALLOC when appropriate.
Matthias Clasen [Sun, 28 Nov 2004 19:12:04 +0000 (19:12 +0000)]
Mark functions with G_GNUC_MALLOC when appropriate.

2004-11-28  Matthias Clasen  <mclasen@redhat.com>

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

* glib/glib.symbols: Add G_GNUC_MALLOC annotations.

* glib/gmacros.h (G_GNUC_MALLOC): Add a macro for
__attribute__((__malloc__)).  (#61780)

20 years agoglib/gutils.[hc] [Win32] Make also g_get_user_name() and g_get_real() name
Tor Lillqvist [Sun, 28 Nov 2004 18:39:24 +0000 (18:39 +0000)]
glib/gutils.[hc] [Win32] Make also g_get_user_name() and g_get_real() name

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)

20 years agoOptimizations; don't scan the entire text in find_current_text_end(),
Matthias Clasen [Sun, 28 Nov 2004 05:40:10 +0000 (05:40 +0000)]
Optimizations; don't scan the entire text in find_current_text_end(),

2004-11-28  Matthias Clasen  <mclasen@redhat.com>

* glib/gmarkup.c: Optimizations; don't scan the entire text
in find_current_text_end(), split unescape_text() into multiple
functions.  (#159001, Havoc Pennington)

20 years agoapplied patch by sven@gimp.org (#153727) to reduce signal connection
4 [Sun, 28 Nov 2004 00:40:07 +0000 (00:40 +0000)]
applied patch by sven@gimp.org (#153727) to reduce signal connection

Sun Nov 28 01:37:54 2004    <timj@birnet.org>

        * gsignal.c: applied patch by sven@gimp.org (#153727) to reduce
        signal connection complexity from O(n_handlers) to O(1).

20 years agoShut up cvs
Manish Singh [Sat, 27 Nov 2004 23:14:18 +0000 (23:14 +0000)]
Shut up cvs

20 years agoUpdate the @flags documentation with references to GChildWatch and
Matthias Clasen [Sat, 27 Nov 2004 05:24:12 +0000 (05:24 +0000)]
Update the @flags documentation with references to GChildWatch and

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)

20 years agoDon't access invalid memory address if p wasn't increased. (#159557,
Matthias Clasen [Sat, 27 Nov 2004 02:59:09 +0000 (02:59 +0000)]
Don't access invalid memory address if p wasn't increased. (#159557,

2004-11-26  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)

20 years agoAdd a testcase for the previous fix.
Matthias Clasen [Fri, 26 Nov 2004 04:40:41 +0000 (04:40 +0000)]
Add a testcase for the previous fix.

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)

20 years agofilter out G_GNUC stuff when doing the compare.
Manish Singh [Thu, 25 Nov 2004 22:10:25 +0000 (22:10 +0000)]
filter out G_GNUC stuff when doing the compare.

Thu Nov 25 14:09:41 2004  Manish Singh  <yosh@gimp.org>

        * abicheck.sh: filter out G_GNUC stuff when doing the compare.

20 years agofilter out G_GNUC stuff when doing the compare.
Manish Singh [Thu, 25 Nov 2004 22:09:30 +0000 (22:09 +0000)]
filter out G_GNUC stuff when doing the compare.

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.

20 years agoAdd «nb» to ALL_LINGUAS.
Kjartan Maraas [Thu, 25 Nov 2004 21:02:49 +0000 (21:02 +0000)]
Add «nb» to ALL_LINGUAS.

2004-11-25  Kjartan Maraas  <kmaraas@gnome.org>

* configure.in: Add «nb» to ALL_LINGUAS.

20 years agoUse wide character API when available. Document that string parameters and
Tor Lillqvist [Wed, 24 Nov 2004 18:07:26 +0000 (18:07 +0000)]
Use wide character API when available. Document that string parameters and

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.

20 years agoReplace g_utf8_validate() with an optimized version, and clarify the docs
Matthias Clasen [Wed, 24 Nov 2004 17:58:21 +0000 (17:58 +0000)]
Replace g_utf8_validate() with an optimized version, and clarify the docs

2004-11-24  Matthias Clasen  <mclasen@redhat.com>

* glib/gutf8.c: Replace g_utf8_validate() with an
optimized version, and clarify the docs a bit.  (#159131,
Owen Taylor)

20 years agoAdd utf8-validate.
Matthias Clasen [Wed, 24 Nov 2004 15:54:20 +0000 (15:54 +0000)]
Add utf8-validate.

2004-11-24  Matthias Clasen  <mclasen@redhat.com>

* tests/Makefile.am (test_programs): Add utf8-validate.

* tests/utf8-validate.c: Unit tests for g_utf8_validate().

20 years agoUpdated Danish translation.
Martin Willemoes Hansen [Wed, 24 Nov 2004 10:56:03 +0000 (10:56 +0000)]
Updated Danish translation.

        * da.po: Updated Danish translation.

20 years agoTypo fix
Matthias Clasen [Tue, 23 Nov 2004 19:43:41 +0000 (19:43 +0000)]
Typo fix

20 years agoForgotten commit.
Matthias Clasen [Tue, 23 Nov 2004 19:40:13 +0000 (19:40 +0000)]
Forgotten commit.

20 years agoForgotten commit
Matthias Clasen [Tue, 23 Nov 2004 19:39:07 +0000 (19:39 +0000)]
Forgotten commit

20 years agoDon't mark g_option_error_quark() as const, to be consistent with all the
Matthias Clasen [Tue, 23 Nov 2004 18:22:55 +0000 (18:22 +0000)]
Don't mark g_option_error_quark() as const, to be consistent with all the

2004-11-23  Matthias Clasen  <mclasen@redhat.com>

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

20 years agoFix a problem with the PLT reduction changes which caused the internal
Matthias Clasen [Tue, 23 Nov 2004 17:56:58 +0000 (17:56 +0000)]
Fix a problem with the PLT reduction changes which caused the internal

2004-11-23  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.

20 years agoUpdated Spanish translation.
Francisco Javier F. Serrador [Mon, 22 Nov 2004 21:57:58 +0000 (21:57 +0000)]
Updated Spanish translation.

2004-11-22  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

* es.po: Updated Spanish translation.

20 years agoUpdated Simplified Chinese translation
Funda Wang [Mon, 22 Nov 2004 00:34:18 +0000 (00:34 +0000)]
Updated Simplified Chinese translation

20 years agoUpdated British translation.
David Lodge [Sun, 21 Nov 2004 21:31:45 +0000 (21:31 +0000)]
Updated British translation.

2004-11-21  David Lodge <dave@cirt.net>

        * en_GB.po: Updated British translation.