1628 Commits

Author SHA1 Message Date
Matthias Clasen
aa604ef0ae Undef libc functions before defining them, since they may also be macros.
2004-10-23  Matthias Clasen  <mclasen@redhat.com>

	* glib/gnulib/g-gnulib.h: Undef libc functions before defining
	them, since they may also be macros.  (#155177, Andrea Campi)
2004-10-24 01:16:24 +00:00
Matthias Clasen
0b46f65db8 Bump version.
2004-10-08  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Bump version.
2004-10-08 18:37:35 +00:00
Matthias Clasen
fec47d4474 2.4.7 2004-10-08 18:22:43 +00:00
Matthias Clasen
c7b1002ca7 Document that GLib supports only a single callback per pid. (#154828,
2004-10-08  Matthias Clasen  <mclasen@redhat.com>

	* 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)
2004-10-08 14:19:41 +00:00
Matthias Clasen
63e0a6b4fa Fix some C99isms. (#154676, Kjartan Maraas)
2004-10-06  Matthias Clasen  <mclasen@redhat.com>

	* glib/gfileutils.c: Fix some C99isms.  (#154676, Kjartan Maraas)
2004-10-06 15:04:10 +00:00
Matthias Clasen
111c436d1f Updates. 2004-10-05 17:32:32 +00:00
Matthias Clasen
78193c3395 Convert filenames to UTF-8 before putting them in GErrors. (#154078,
2004-09-30  Matthias Clasen  <mclasen@redhat.com>

	* glib/gfileutils.c: Convert filenames to UTF-8 before
	putting them in GErrors.  (#154078, Morten Welinder)
2004-09-30 04:05:30 +00:00
Tor Lillqvist
4abac1a85f [Win32] Don't ever open a console window. (Which we used to do if standard
2004-09-22  Tor Lillqvist  <tml@iki.fi>

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

	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.
2004-09-25 20:53:58 +00:00
Manish Singh
281b31596b Make it take a guint for number of characters, instead of a gsize.
Thu Sep 16 18:15:32 2004  Manish Singh  <yosh@gimp.org>

        * 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.
2004-09-17 01:15:13 +00:00
Tor Lillqvist
bafa120436 Convert message to UTF-8. Technically this breaks API, but the actual use
2004-09-15  Tor Lillqvist  <tml@iki.fi>

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

2004-09-14  Tor Lillqvist  <tml@iki.fi>

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

	* glib/gwin32.c (g_win32_ftruncate): Simplify implementation, just
	call _chsize() in the C library.
2004-09-15 19:02:13 +00:00
Gora Mohanty
facfeafad3 configure.in: Added 'or' to ALL_LINGUAS.
po/or.po: Updated Oriya translation.
2004-09-07 19:10:00 +00:00
Matthias Clasen
2194ea6cde Point to g_hash_table_lookup_extended() for differentiation between
Sun Aug 29 23:58:38 2004  Matthias Clasen  <maclas@gmx.de>

	* 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)
2004-08-30 04:01:32 +00:00
Tor Lillqvist
fcabcd6e94 Tell select_thread to break out of its loop. Prevents a thread leak.
2004-08-21  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c (g_io_win32_finalize): Tell select_thread to
	break out of its loop. Prevents a thread leak. (#147392, Peter
	Zelezny)
2004-08-21 21:28:14 +00:00
Tor Lillqvist
c43edd263b Guard against bogus return value from strxfrm(). For instance Microsoft's
2004-08-21  Tor Lillqvist  <tml@iki.fi>

	* 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)
2004-08-21 13:41:18 +00:00
Tor Lillqvist
2a7bfb4ee4 Correct source and destination charset parameter order in g_convert()
2004-08-19  Tor Lillqvist  <tml@iki.fi>

	* 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)
2004-08-19 23:30:17 +00:00
Christian Rose
095cdb3946 Added "bs" to ALL_LINGUAS. Added Bosnian translation by Kenan Hadžiavdić
2004-08-16  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "bs" to ALL_LINGUAS.
	* po/bs.po: Added Bosnian translation by
	Kenan Hadžiavdić <kenanh@frisurf.no>.
2004-08-16 17:02:46 +00:00
Matthias Clasen
e7384cc037 Bump version. 2004-08-13 14:56:05 +00:00
Matthias Clasen
b74ea20ee3 2.4.6 2004-08-13 14:35:09 +00:00
Matthias Clasen
ec0484d5e7 Updates 2004-08-13 05:25:19 +00:00
Kjartan Maraas
12f567e83a Added nb to ALL_LINGUAS
2004-08-11  Kjartan Maraas  <kmaraas@gnome.org>

	* configure.in: Added nb to ALL_LINGUAS
2004-08-11 16:53:33 +00:00
Ray Strode
1c5a400097 strdup result so caller doesn't free internally managed memory.
Thu Aug 5 20:53:00 2004 Ray Strode <rstrode@redhat.com>

	* glib/gutils.h (g_get_codeset): strdup result so caller
	doesn't free internally managed memory.
2004-08-05 20:58:39 +00:00
Matthias Clasen
f038c1070a Include a test involving consecutive backslashes followed by a non-escaped
Sat Jul 31 20:33:07 2004  Matthias Clasen  <maclas@gmx.de>

	* 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)
2004-08-01 00:42:33 +00:00
Matthias Clasen
250a687740 Post-release version bump. 2004-07-30 19:51:55 +00:00
Matthias Clasen
30bca51387 Forgotten commit... 2004-07-30 19:47:58 +00:00
Matthias Clasen
bb955c809c Don't validate for UTF-8 here. (#148420, Robert Ögren)
2004-07-30  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c (g_unescape_uri_string): Don't validate
	for UTF-8 here.  (#148420, Robert Ögren)

	* 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.
2004-07-30 19:00:18 +00:00
Matthias Clasen
c6383da427 Tests for handling of whitespace inside tags.
2004-07-28  Matthias Clasen  <mclasen@redhat.com>

	* tests/markups/valid-{9,10,11}.gmarkup:
	* tests/markups/fail-{37,38,39}.gmarkup: Tests for handling
	of whitespace inside tags.

	* 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)
2004-07-28 15:03:02 +00:00
Soeren Sandmann
7026e27550 s/g_strtokenize/g_strsplit_set/ in docs.
Sat Jul 24 17:50:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* glib/gstrfuncs.c (g_strsplit_set):
	s/g_strtokenize/g_strsplit_set/ in docs.
2004-07-24 16:18:58 +00:00
Matthias Clasen
d90fa450dd Fix docs for G_MAXSIZE. (#148262, Christophe Fergeau)
Fri Jul 23 10:38:24 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/tmpl/limits.sgml: Fix docs for G_MAXSIZE.  (#148262,
	Christophe Fergeau)
2004-07-23 14:41:46 +00:00
Matthias Clasen
723bc46642 Fix #132858, Sven Neumann, patch by James Henstridge:
2004-07-21  Matthias Clasen  <mclasen@redhat.com>

	Fix #132858, Sven Neumann, patch by James Henstridge:

	* glib-gettextize.in: modify so that mkinstalldirs will
	get installed into auxdir.

	* Makefile.am (gettext_SCRIPTS): install mkinstalldirs.
2004-07-21 18:15:01 +00:00
Matthias Clasen
dd61ca67b8 Fix #147651, reported by Oliver Guntermann:
2004-07-21  Matthias Clasen  <mclasen@redhat.com>

	Fix #147651, reported by Oliver Guntermann:

	* glib/gprintfint.h (_g_vasprintf): Don't wrap vasprintf(),
	_g_gnulib_vasprintf() in a macro, since they behave
	differently wrt. to memory allocation.

	* glib/gprintf.c (g_vasprintf): Instead, differentiate
	here between the three cases: system vasprintf(),
	_g_gnulib_vasprintf(), no vasprintf().
2004-07-21 17:54:15 +00:00
Matthias Clasen
e5e42df830 Post-release version bump 2004-07-09 13:48:02 +00:00
Matthias Clasen
1e99fddcde 2.4.4 2004-07-09 13:45:36 +00:00
Matthias Clasen
769c61ca08 Convert filename to UTF-8 before using it in the error message. (#146054,
2004-07-09  Matthias Clasen  <mclasen@redhat.com>

	* glib/gdir.c (g_dir_open): Convert filename to UTF-8
	before using it in the error message.  (#146054, Federico
	Mena Quintero)
2004-07-09 13:06:53 +00:00
Matthias Clasen
409138ef0f Add top_srcdir to make srcdir != . work. (#145166, Kaz Sasayama)
Mon Jul  5 18:42:30 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to
	make srcdir != . work.  (#145166, Kaz Sasayama)
2004-07-05 22:45:04 +00:00
Matthias Clasen
2ae6da1cdb Use a small test library instead of libpthread.so for testing RTLD_GLOBAL
Sun Jul  4 01:52:18 2004  Matthias Clasen  <maclas@gmx.de>

	* configure.in: Use a small test library instead of
	libpthread.so for testing RTLD_GLOBAL brokenness.  (#139567,
	Julio M. Merino Vidal)
2004-07-04 05:58:58 +00:00
John Ehresman
7d4b434e7e glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free) Initialize
2004-07-01  John Ehresman  <jpe@wingide.com>

	* 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)
2004-07-01 16:19:16 +00:00
Matthias Clasen
219c3c3fe0 Ignore a missing newline at EOF for single line comments. (#83674, Sven
Fri Jun 11 22:56:46 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gscanner.c (g_scanner_get_token_ll): Ignore a
	missing newline at EOF for single line comments.
	(#83674, Sven Neumann)
2004-06-12 03:00:57 +00:00
Matthias Clasen
f61fb554e3 Actually set any_failed on failure. (#143552, Philippe Blain)
Thu Jun 10 23:38:02 2004  Matthias Clasen  <maclas@gmx.de>

	* tests/printf-test.c (TEST): Actually set any_failed on
	failure.  (#143552, Philippe Blain)
2004-06-11 03:42:33 +00:00
Federico Mena Quintero
e17755bac1 Merge from HEAD:
2004-06-09  Federico Mena Quintero  <federico@ximian.com>

	Merge from HEAD:

	* 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.
2004-06-10 00:19:05 +00:00
Pawan Chitrakar
c5f415c4df Added ne.po Nepali Translation
2004-06-08  Pawan Chitrakar  <pawan@nplinux.org>

	* ne.po: Added ne.po Nepali Translation

	* configure.in: Added "ne" (Nepali) in ALL_LINGUAS
2004-06-08 06:55:31 +00:00
Federico Mena Quintero
06235517b0 Added a note about the changes below.
2004-06-07  Federico Mena Quintero  <federico@ximian.com>

	* README.in: Added a note about the changes below.

	Merge from HEAD:

	Fixes #140532.

	* 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.
2004-06-08 03:31:34 +00:00
Matthias Clasen
3f1e8d546d Make "make check" less noisy. 2004-06-08 02:27:26 +00:00
Tor Lillqvist
ca5f51ee33 Check home for being NULL. (#143812, Ivan Wong)
2004-06-06  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_get_any_init): Check home for being
	NULL. (#143812, Ivan Wong)
2004-06-06 17:18:28 +00:00
Manish Singh
66ca6e1ac7 cpp #directives should always have the "#" in the first column of the the
2004-06-04  Manish Singh  <yosh@gimp.org>

        * 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.
2004-06-05 02:25:01 +00:00
Matthias Clasen
14bf57aabb Post-release version bump. 2004-06-04 14:46:18 +00:00
Matthias Clasen
22400b0094 2.4.2 2004-06-04 13:58:58 +00:00
Matthias Clasen
d131dec3eb Fix an off-by-one error in g_markup_parse_context_parse(). (#142794,
Tue Jun  1 21:56:31 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gmarkup.c (advance_char): Fix an off-by-one error
	in g_markup_parse_context_parse().  (#142794, Morten Welinder)
2004-06-02 02:02:13 +00:00
Matthias Clasen
a713b230d9 Remove unnecessary checks. (#142559, Morten Welinder)
Sun May 16 23:20:33 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gcompletion.c (g_completion_add_items):
	(g_completion_remove_items): Remove unnecessary
	checks.  (#142559, Morten Welinder)
2004-05-17 03:22:34 +00:00
Tor Lillqvist
da2a743f6f [Win32] Only believe HOME if it is an absolute path and exists. (#138618)
2004-05-15  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_get_any_init): [Win32] Only believe HOME if it
	is an absolute path and exists. (#138618)
2004-05-15 03:24:44 +00:00
Tor Lillqvist
95f40176af Handle empty digit string for precision correctly. (#142400)
2004-05-14  Tor Lillqvist  <tml@iki.fi>

	* glib/gnulib/vasnprintf.c (vasnprintf): Handle empty digit string
	for precision correctly. (#142400)

	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)

	* tests/printf-test.c (main): Add tests for the above.
2004-05-14 05:04:13 +00:00