1638 Commits

Author SHA1 Message Date
Tor Lillqvist
e0923069df Require UNC paths to start with exactly two slashes. (g_path_get_dirname):
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_path_get_dirname): Handle UNC paths better. Part of fix for
	#161797.
2004-12-30 02:04:41 +00:00
Tor Lillqvist
1a6fe2c7b7 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.
2004-12-11 03:28:00 +00:00
Tor Lillqvist
4c61385579 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.
2004-12-06 23:43:18 +00:00
Matthias Clasen
56e30f869c Bump version.
2004-12-02  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Bump version.
2004-12-02 21:33:33 +00:00
Matthias Clasen
2d7943ac66 2.4.8 2004-12-02 20:56:27 +00:00
Matthias Clasen
02d1dcfb61 Updates
2004-12-01  Matthias Clasen  <mclasen@redhat.com>

	* NEWS: Updates
2004-12-01 07:12:25 +00:00
Matthias Clasen
71d040ff81 Updates 2004-11-30 05:57:46 +00:00
Tor Lillqvist
0dec9146a0 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)
2004-11-30 02:23:54 +00:00
Matthias Clasen
60d2a93397 Initialize child_watch_count to 1, so that we don't miss the very first
2004-11-08  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c: Initialize child_watch_count to 1, so
	that we don't miss the very first child if it exits
	before we set up the child watch. In that case we had
	previously source->count == child_watch_count == 0,
	causing g_child_watch_check() to skip the waitpid()
	call.  (#154827, Gustavo Carneiro)

	* glib/gmain.c (g_child_watch_source_init_single)
	(g_child_watch_source_init_multi_threaded): Use sigaction()
	instead of signal().  (#136867, Jonas Jonsson, patch by
	Archana Shah)
2004-11-08 15:39:58 +00:00
Matthias Clasen
91c3c3ab1c Work around an bug in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-07  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c (g_get_any_init): Work around an bug
	in Mac OS < 10.3.  (#156446, Dave MacLachlan)
2004-11-07 06:32:06 +00:00
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