1922 Commits

Author SHA1 Message Date
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
Matthias Clasen
141b0b5b5b Fix keyfile documentation 2005-03-17 19:26:31 +00:00
Matthias Clasen
99232a3cc8 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)
2005-03-15 13:26:02 +00:00
Manish Singh
001f2be6b2 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.
2005-03-14 05:32:05 +00:00
Matthias Clasen
0578f2e824 More small fixes 2005-03-14 05:10:53 +00:00
Matthias Clasen
64b847e590 Include galias.h last 2005-03-14 05:00:58 +00:00
Matthias Clasen
8a10a94a87 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.
2005-03-14 04:02:07 +00:00
Matthias Clasen
9f5961baf3 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.
2005-03-11 18:01:05 +00:00
Matthias Clasen
37b4cd49d7 Add tests for g_date_get_iso8601_week_of_year().
2005-03-10  Matthias Clasen  <mclasen@redhat.com>

	* tests/date-test.c:
	* tests/testgdate.c: Add tests for
	g_date_get_iso8601_week_of_year().

	* glib/gdate.c (g_date_get_iso8601_week_of_year):
	Fix the calculation.  (#169858, Jon-Kare Hellan)
2005-03-11 05:04:10 +00:00
Tor Lillqvist
82c7040646 glib/Makefile.am Merge from HEAD: Use grep | head -n 1 instead of grep -m
2005-03-09  Tor Lillqvist  <tml@novell.com>

	* glib/Makefile.am
	* gmodule/Makefile.am: Merge from HEAD: Use grep | head -n 1
	instead of grep -m 1 which doesn't work with slightly older
	versions of GNU grep in install-libtool-import-lib rule.
2005-03-09 02:23:10 +00:00
Tor Lillqvist
5355e610ba [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.
2005-03-09 02:22:20 +00:00
Matthias Clasen
d1fceb3123 Fix error reporting in gmarkup. 2005-03-06 20:23:23 +00:00
Matthias Clasen
9ef6022845 Bump version 2005-02-28 06:12:22 +00:00
Matthias Clasen
3a55b870d7 2.6.3 2005-02-28 05:49:17 +00:00
Matthias Clasen
fec9af0266 Updates 2005-02-28 05:04:06 +00:00
Tor Lillqvist
dc8a120b65 Don't distribute glib.def. (#167496, J. Ali Harlow)
2005-02-24  Tor Lillqvist  <tml@novell.com>

	* glib/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)
2005-02-24 23:55:26 +00:00
Tor Lillqvist
4861e60c1e 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)
2005-02-24 23:47:02 +00:00
Matthias Clasen
95262ff478 Updates 2005-02-24 20:49:04 +00:00
Matthias Clasen
acf9b5e815 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)
2005-02-24 04:22:09 +00:00
Matthias Clasen
6aa2a6bf38 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)
2005-02-24 03:53:41 +00:00