1941 Commits

Author SHA1 Message Date
Matthias Clasen
6b00154979 Bump version 2005-08-01 14:33:37 +00:00
Matthias Clasen
fd81b1e50f 2.6.6 2005-08-01 14:32:30 +00:00
Matthias Clasen
57ac20ec61 Updates 2005-07-23 13:28:58 +00:00
Matthias Clasen
8edd3a3c0b Backport a threadpool fix 2005-07-23 13:16:13 +00:00
Matthias Clasen
a974f48f32 Fix g_atomic_pointer_compare_and_exchange on sparc64. (#167572, Gert
2005-07-19  Matthias Clasen  <mclasen@redhat.com>

        * glib/gatomic.c (g_atomic_pointer_compare_and_exchange):
        Fix g_atomic_pointer_compare_and_exchange on sparc64.
        (#167572, Gert Doering)
2005-07-19 15:31:22 +00:00
Tor Lillqvist
aacf6a1b17 Include <process.h> on Win32 for getpid() prototype with MSVC. (#305462,
2005-07-14  Tor Lillqvist  <tml@novell.com>

	* glib/gmessages.c: Include <process.h> on Win32 for getpid()
	prototype with MSVC. (#305462, Kazuki Iwamoto)
2005-07-14 17:29:01 +00:00
Matthias Clasen
c9a22e0e9d Make the size_t size detection work on AIX. (#309725)
2005-07-07  Matthias Clasen  <mclasen@redhat.com>

	* configure.in: Make the size_t size detection work on AIX.
	(#309725)
2005-07-07 20:38:59 +00:00
Matthias Clasen
b8f3f7fa08 Don't reverse the order of multiline comments.
2005-07-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_get_key_comment):
	(g_key_file_get_top_comment): Don't reverse the order of multiline
	comments.
	(g_key_file_get_group_comment): Actually get the group comment.

	* tests/keyfile-test.c (test_comments): Test that comments are
	handled properly.  (#309263, Mikael Magnusson)
2005-07-01 19:03:33 +00:00
Matthias Clasen
24fbdfde45 Test that comments are handled properly. (#309263, Mikael Magnusson)
2005-07-01  Matthias Clasen  <mclasen@redhat.com>

	* tests/keyfile-test.c (test_comments): Test that comments are
	handled properly.  (#309263, Mikael Magnusson)
2005-07-01 15:58:08 +00:00
Matthias Clasen
2f38eaea8b Fix portability issues. (#307064, Morten Welinder)
2005-06-30  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstring.c (g_str_hash): Fix portability issues.
	(#307064, Morten Welinder)
2005-06-30 19:51:48 +00:00
Matthias Clasen
fec39bafb7 Apply a patch which may make GLib work on BeOS again. (#309157, Kian
2005-06-30  Matthias Clasen  <mclasen@redhat.com>

	Apply a patch which may make GLib work on BeOS again.
	(#309157, Kian Duffy)

	* glib/gmain.c: Update the BeOS includes.

	* glib/gstdio.c:
	* glib/gutils.c (g_find_program_in_path):
	* glib/gbacktrace.c (g_on_error_stack_trace): Use the UNIX
	implementation on BeOS, as well.

	* configure.in: Don't put glib 1.0 into G_MODULE_LIBS, even
	on BeOS.
2005-06-30 19:46:28 +00:00
Matthias Clasen
8da520b40d Don't leak memory here.
2005-06-23  Matthias Clasen  <mclasen@redhat.com>

	* tests/keyfile-test.c (test_group_remove): Don't leak
	memory here.

	* glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't
	leak output_path.  (#308546, Kjartan Maraas)
2005-06-23 16:33:17 +00:00
Matthias Clasen
32e4ee5333 Properly store changes for arrays. (#308528, Roger Leigh)
2005-06-22  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c
	(parse_arg): Properly store changes for arrays.  (#308528,
	Roger Leigh)
2005-06-22 17:09:03 +00:00
Runa Bhattacharjee
9397445ff5 Added Telegu (te) in configure.in 2005-06-21 04:11:32 +00:00
Matthias Clasen
85d69d7a8a Post-release version bump 2005-06-10 17:11:15 +00:00
Matthias Clasen
02195c18f8 2.6.5 2005-06-10 16:59:50 +00:00
Matthias Clasen
41e459f8db Updates 2005-06-10 15:41:54 +00:00
Matthias Clasen
0a1902af9f Better error checking. (#306389, Morten Welinder)
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_parse_value_as_integer): Better
	error checking. (#306389, Morten Welinder)
2005-06-09 15:47:45 +00:00
Matthias Clasen
c931e6aa16 Set errno to 0 before calling strtol. (#306388, Morten Welinder)
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (parse_int): Set errno to 0 before calling
	strtol.  (#306388, Morten Welinder)
2005-06-09 15:37:47 +00:00
Tor Lillqvist
ad71d36473 New helper function on Win32, returns the root of the drive (or possibly
2005-06-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (get_windows_directory_root): New helper function
	on Win32, returns the root of the drive (or possibly share) where
	the Windows directory is. (In the case of Terminal Server sessions
	the Windows directory is a per-user folder.)
	(g_get_any_init): Use get_windows_directory_root() as last resort
	for both temp directory and home directory. g_get_home_dir() now
	never returns NULL on Win32. Don't look at HOMEDRIVE and
	HOMEPATH. HOME, USERPROFILE, CSIDL_PROFILE and Windows directory
	drive root should be enough.
2005-06-08 19:57:15 +00:00
Matthias Clasen
78d7a7dae6 Don't eat Hangul when normalizing. (#301742, reported by Christian Biere,
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

	* glib/gunidecomp.c (combine_hangul): Don't eat Hangul
	when normalizing.  (#301742, reported by Christian Biere,
	patch by Noah Levitt)
2005-05-25 16:05:19 +00:00
Federico Mena Quintero
605d3f7ad1 Clarify the meaning of exit_status(); it's not the return code from the
2005-05-20  Federico Mena Quintero  <federico@ximian.com>

	* glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
	of exit_status(); it's not the return code from the child, but
	rather the waitpid() status.
2005-05-20 19:24:21 +00:00
Matthias Clasen
208982a435 New file.
2005-05-18  Matthias Clasen  <mclasen@redhat.com>

	* gmodule-no-export-2.0-uninstalled.pc.in (prefix): New file.

	* configure.in:
	* Makefile.am (EXTRA_DIST): Add gmodule-no-export-2.0-uninstalled.pc.in
2005-05-18 04:12:32 +00:00
Matthias Clasen
97cf2abcc5 Add a testcase.
2005-05-06  Matthias Clasen  <mclasen@redhat.com>

	* tests/option-test.c: Add a testcase.

	* glib/goption.c (g_option_context_parse): Treat '-'
	on its own as a non-option argument.  (#168008, Tim Musson,
	Thomas Leonard and others)
2005-05-06 20:11:43 +00:00
Matthias Clasen
b2401b8e3d Clarify some docs. (#302062, Matthew F. Barnes)
2005-04-29  Matthias Clasen  <mclasen@redhat.com>

	* glib/gtree.c: Clarify some docs. (#302062, Matthew F. Barnes)
2005-04-29 18:29:42 +00:00
Matthias Clasen
b8c7b38b00 Warn and don't crash when meeting a trailing \\. (#301373, Benjamin Otte)
2005-04-28  Matthias Clasen  <mclasen@redhat.com>

	* glib/gstrfuncs.c (g_strcompress): Warn and don't crash
	when meeting a trailing \\.  (#301373, Benjamin Otte)
2005-04-28 20:43:53 +00:00
Tor Lillqvist
794af387ce Don't call g_set_error() unless the GError pointer is non-NULL. This
2005-04-27  Tor Lillqvist  <tml@novell.com>

	* glib/gconvert.c (open_converter, g_convert_with_iconv): Don't
	call g_set_error() unless the GError pointer is non-NULL. This
	avoids infinite recursion problems in certain rare situations on
	Windows, when g_locale_from_utf8() is called from
	_glib_get_locale_dir() after the change below. It's the
	_glib_gettext() calls for the error messages that cause the
	recursion, not g_set_error() itself.

	* glib/gutils.c (_glib_get_locale_dir): No need to cache the
	result, this function is normally called only once. Return the
	path to the locale directory in system codepage, not UTF-8. The
	path is passed to bindtextdomain(), which doesn't use UTF-8 file
	names. If the full pathname with long filenames can't be converted
	to system codepage, try getting the pathname with short (8.3)
	components. (#301772)

	Don't do run-time lookup of message catalog directory on
	Cygwin. Cygwin is supposed to look and feel like Unix, and on Unix
	we use paths fixed at configure time.
2005-04-27 07:08:01 +00:00
Tor Lillqvist
4d1c22f4b3 Minor comment improvement.
2005-04-19  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h: Minor comment improvement.
2005-04-19 08:06:05 +00:00
Matthias Clasen
bf6be57380 Use G_LOG_LEVEL_DEBUG in both definitions. (#300071, Tommi Komulainen)
2005-04-10  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmessages.h (g_debug): Use G_LOG_LEVEL_DEBUG in
	both definitions.  (#300071, Tommi Komulainen)
2005-04-11 00:57:02 +00:00
Matthias Clasen
8cc01c6d5f Bump version 2005-04-09 05:59:33 +00:00
Tor Lillqvist
bd1ec28ab8 Not used on Windows. (unalias_lang): Don't do anything on Windows, there
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (read_aliases): Not used on Windows.
	(unalias_lang): Don't do anything on Windows, there is no
	/usr/share/locale/locale.alias file..
2005-04-08 06:50:12 +00:00
Tor Lillqvist
01f82530aa After investigating more closely the actual use cases of this function, I
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_get_system_data_dirs): After investigating more
	closely the actual use cases of this function, I understand better
	what it needs to do on Windows. In addition to the Windows
	COMMON_APPDATA and COMMON_DOCUMENTS folders, also return the
	"share" subfolders of GLib's installation location and the
	application .exe's installation location, hoping that either
	matches what the function's caller is looking for.
2005-04-08 06:35:30 +00:00
Tor Lillqvist
d7f079f161 Use wide char API if available, and store dll name in UTF-8.
2005-04-08  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME): Use wide char API
	if available, and store dll name in UTF-8.
2005-04-08 00:09:44 +00:00
Matthias Clasen
2bfadb1c8c 2.6.4 2005-04-06 15:11:50 +00:00
Matthias Clasen
c23339e2f5 Clarify docs in some places. (#172404, Morten Welinder)
2005-04-04  Matthias Clasen  <mclasen@redhat.com>

	* glib/gconvert.c: Clarify docs in some places. (#172404,
	Morten Welinder)
2005-04-05 03:57:16 +00:00
Tor Lillqvist
9ef0b32f73 Mention related bug number in an old entry. 2005-04-05 00:53:15 +00:00
Matthias Clasen
80f2723ff1 Updates 2005-04-05 00:39:29 +00:00
Matthias Clasen
1ea7fa47f9 Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is defined. This was the pre-2.6
2005-04-03  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.h: Undef G_CAN_INLINE if G_IMPLEMENT_INLINES is
	defined. This was the pre-2.6 behaviour, and without it,
	G_IMPLEMENT_INLINES cannot be used in multiple .c files
	at all.  (#165852, Dave Benson)
2005-04-04 03:40:40 +00:00
Matthias Clasen
70372a2f30 Add a note regarding waitpid(-1).
2005-04-01  Matthias Clasen  <mclasen@redhat.com>

	* glib/gmain.c (g_child_watch_source_new): Add a note regarding
	waitpid(-1).
	(g_child_watch_source_init_multi_threaded):
	(g_child_watch_source_init_single): Don't use SA_RESTART,
	since it causes problems on at least one platform. (#168352)
2005-04-01 21:41:13 +00:00
Steven Michael Murphy
b478e9cc0d Added new Language, Kinyarwanda (rw), to this package 2005-04-01 02:20:29 +00:00
Tor Lillqvist
ea8f5dcaf9 Typo. 2005-03-30 12:02:59 +00:00
Tor Lillqvist
776182692f Always claim file descriptors open to devices are readable, since we can't
2005-03-30  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Always claim
	file descriptors open to devices are readable, since we can't
	know. fstat() doesn't give any useful information.
2005-03-30 12:02:48 +00:00
Tor Lillqvist
98dc3bef42 [Win32] Use GetSystemTimeAsFileTime() instead of time() and
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_get_current_time): [Win32] Use
	GetSystemTimeAsFileTime() instead of time() and
	GetTickCount(). Much simpler.
2005-03-29 08:08:56 +00:00
Tor Lillqvist
468fd8a9e8 If the event fired, assign f->revents=f->events. We can't know whether the
2005-03-29  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c (g_poll): If the event fired, assign
	f->revents=f->events. We can't know whether the upper layer using
	the event actually is readable, writeable or what, so say that all
	the conditions hold. Remove the ResetEvent() call that has been
	ifdeffed out anyway for a long time. Remove an "#ifdef 1" and
	#endif pair of lines, that code is not optional.
2005-03-29 07:44:55 +00:00
Tor Lillqvist
7152646679 Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated after all, and in fact
2005-03-27  Tor Lillqvist  <tml@novell.com>

	* configure.in: Apparently AC_LIBTOOL_WIN32_DLL isn't deprecated
	after all, and in fact necessary with HEAD libtool.
2005-03-27 19:15:26 +00:00
Tor Lillqvist
55e383a1c3 [Win32] Fix corner case bug when environment variable value is exactly one
2005-03-23  Tor Lillqvist  <tml@novell.com>

	* glib/gutils.c (g_getenv): [Win32] Fix corner case bug when
	environment variable value is exactly one character.
2005-03-23 14:55:02 +00:00
Tor Lillqvist
aed082e1e0 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.
2005-03-20 20:06:49 +00:00
Tor Lillqvist
30a062866d glib/gmessages.c (g_log_default_handler) Move the Win32 code that asks the
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gmessages.c (g_log_default_handler)
	* glib/gutils.c (g_get_prgname): Move the Win32 code that asks the
	program name from the system to g_get_prgname(). Do output the pid
	also on Win32 (useful in case there are several instances of the
	same program running).
2005-03-20 12:01:55 +00:00
Tor Lillqvist
69aae7e623 On Win32, use GetSystemTimeAsFileTime() instead of GetTickCount().
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gtimer.c: On Win32, use GetSystemTimeAsFileTime() instead
	of GetTickCount(). (#159507)
2005-03-20 11:57:20 +00:00
Tor Lillqvist
24b14aa184 Close the process handle if the caller doesn't want it also in the case
2005-03-20  Tor Lillqvist  <tml@novell.com>

	* glib/gspawn-win32.c (do_spawn_with_pipes): Close the process
	handle if the caller doesn't want it also in the case without a
	helper process.
	(g_spawn_sync): Don't ask for a child pid which we don't need.
2005-03-20 11:52:51 +00:00