Commit Graph

1501 Commits

Author SHA1 Message Date
Owen Taylor
2f4c3d8a6d Add g_markup_printf_escaped(), g_markup_vprintf_escaped().
Thu Sep 11 20:11:05 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmarkup.c: Add g_markup_printf_escaped(),
        g_markup_vprintf_escaped().

        * tests/markup-escape-test.c (main): Test for
        g_markup_escape_text(), g_markup_printf_escaped().
2003-09-12 00:17:02 +00:00
Noah Levitt
8d91ba8c58 Unicode 4.0 special casing. (#114681)
2003-09-10  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunicodeprivate.h:
	* glib/gunicollate.c:
	* glib/gunidecomp.c:
	* glib/guniprop.c:
	* tests/casemap.txt:
	* tests/gen-casemap-txt.pl: Unicode 4.0 special casing. (#114681)

	* glib/gunicodeprivate.h: Use a private header instead of extern
	function declarations (_g_utf8_normalize_wc,
	_g_unichar_combining_class).
2003-09-10 16:55:36 +00:00
Stefan Westerfeld
896d38706b inserted casts for C++.
Mon Sep  8 00:31:10 2003  Stefan Westerfeld  <stefan@space.twc.de>

        * glib/gbsearcharray.h: inserted casts for C++.
2003-09-07 22:36:58 +00:00
Matthias Clasen
3155dfd3dc Fix a C99ism. (#120821, Thomas Klausner)
2003-08-28  Matthias Clasen  <maclas@gmx.de>

	* tests/patterntest.c (verbose): Fix a C99ism.  (#120821, Thomas
	Klausner)
2003-08-27 22:27:41 +00:00
Tor Lillqvist
e2797b3525 Avoid UNLOCKing the critical section twice, which might cause a hang.
2003-08-25  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c (read_thread): Avoid UNLOCKing the critical
	section twice, which might cause a hang. (#120653)

	* glib/giowin32.c (g_io_channel_unix_new): Warn if fd is both a
	valid file descriptor and socket.
2003-08-25 21:37:57 +00:00
Owen Taylor
23137b79d9 Escape control characters in g_logv() output. (#108287, Christian Biere)
Mon Aug 25 12:34:36 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.c: Escape control characters in g_logv() output.
        (#108287, Christian Biere)
2003-08-25 16:36:03 +00:00
Owen Taylor
2afc40f3a6 When DISABLE_MEM_POOLS is set, loop through and free the poll records
Mon Aug 25 12:17:20 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_context_unref_and_unlock):
        When DISABLE_MEM_POOLS is set, loop through and free
        the poll records explicitely, since g_mem_chunk_destroy()
        won't do it. (#118121, Morten Welinder)
2003-08-25 16:20:41 +00:00
Samúel Jón Gunnarsson
0b771a2441 Added "is" to ALL_LINGUAS.
2003-08-23  Samúel Jón Gunnarsson  <sammi@techattack.nu>

	* configure.in: Added "is" to ALL_LINGUAS.
2003-08-23 01:05:02 +00:00
Tor Lillqvist
200bb7f771 [Win32] Make the fatal error message box easier to notice with
2003-08-19  Tor Lillqvist  <tml@iki.fi>

	* glib/gmessages.c (g_logv): [Win32] Make the fatal error message
	box easier to notice with MB_SETFOREGROUND. Also use MB_ICONERROR
	to get a nice stop-sign icon.
2003-08-19 19:12:07 +00:00
Owen Taylor
9d8e67597c Add $INTLLIBS to $LIBS temporarily, not -lintl. (Problem with fix for
Tue Aug 19 09:42:06 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: Add $INTLLIBS to $LIBS
        temporarily, not -lintl. (Problem with fix for
        #119171, pointed out by James Henstridge)
2003-08-19 13:45:33 +00:00
Tim Janik
808a282944 license change, no restrictions are made in the new license at all, the
Tue Aug 19 03:55:29 2003  Tim Janik  <timj@gtk.org>

        * glib/gbsearcharray.h: license change, no restrictions are made
        in the new license at all, the implmentation is simply provided
        "as is" to allow copy-pasting the code into any third-party app.
        naturally, the implementation is self-contained within the header
        file to allow this.
        default to non-shrinking behaviour, allow users to request shrinking
        via G_BSEARCH_ARRAY_AUTO_SHRINK.
        creation, deletion functions are now named g_bsearch_array_create()
        and g_bsearch_array_free().
        fixed const in prototypes, removed cruft.
        (g_bsearch_array_insert): take only three arguments, do nothing if the
        node to insert is already there.
        (g_bsearch_array_replace): insert or replace if the node is already
        there.
        (g_bsearch_array_remove): remove nodes by index, the index of a node
        can be found via g_bsearch_array_get_index().
        removed other g_bsearch_array_remove*() variants.
        (g_bsearch_array_lookup): minor optimizations.
        (g_bsearch_array_lookup_sibling): return nodes on mismatches.

        * glib/gbsearcharray.c: removed.
2003-08-19 02:16:00 +00:00
Tor Lillqvist
55d624d80c Fix #117925 (Dov Grobgeld):
2003-08-16  Tor Lillqvist  <tml@iki.fi>

	Fix #117925 (Dov Grobgeld):

	* glib/gutils.c (g_find_program_in_path, g_basename,
	g_path_get_basename, g_path_is_absolute, g_path_skip_root,
	g_path_get_dirname, g_get_any_init): On Win32, look also for
	slashes ('/') as pathname separators.

	* glib/gfileutils.c (g_file_open_tmp): Ditto. If the template
	contains a pathname separator, include the actual one in the error
	message, instead of always the canonical one.

	(g_build_filename): Separate implementation on Win32 that looks
	for either slash or backslash. Document Unix/Windows differences.

	* tests/testglib.c
	* tests/strfunc-test.c: Test above functionality on Win32.
2003-08-16 19:45:25 +00:00
Tor Lillqvist
3f3bb7fef3 [Win32] Don't exceed handle array bounds. Warn if there would be too many
2003-08-15  Tor Lillqvist  <tml@iki.fi>

	* glib/gmain.c (g_poll): [Win32] Don't exceed handle array
	bounds. Warn if there would be too many handles to wait
	for. (WaitForMultipleObjects() has a relatively low limit of 64
	handles. The Win32 IO channel code should be fixed not to need to
	wait for one handle per file or socket being watched. Later.)
2003-08-15 05:06:16 +00:00
Tor Lillqvist
a44c1da1c4 glib/Makefile.am gmodule/Makefile.am gobject/Makefile.am Use srcdir also
2003-08-13  Tor Lillqvist  <tml@iki.fi>

	* glib/Makefile.am
	* gmodule/Makefile.am
	* gobject/Makefile.am
	* gthread/Makefile.am: Use srcdir also in references to the .def
	files. (#118885, Jeff Bonggren)
2003-08-13 00:24:21 +00:00
Tor Lillqvist
2b553df50d Drop the Win32-specific implementation. It used WideCharToMultiByte(),
2003-08-12  Tor Lillqvist  <tml@iki.fi>

	* glib/gconvert.c (g_locale_from_utf8): Drop the Win32-specific
	implementation. It used WideCharToMultiByte(), which is broken as
	it stores unconvertable characters as fallback characters
	(question marks) in the destination string without being able to
	tell how much of the conversion succeeded. Using g_convert() like
	on Unix is better and simpler. (#117872)

	(g_locale_to_utf8): No need for the Win32-specific implementation
	here, either.

	(have_broken_filenames): Define as TRUE on Win32.

	(g_filename_to_utf8, g_filename_from_utf8): Drop Win32 ifdefs. As
	have_broken_filenames() now is defined TRUE on Win32, works as
	before.
2003-08-13 00:13:02 +00:00
Matthias Clasen
42dcec41de Wrap to 80 columns. 2003-08-11 20:49:32 +00:00
Matthias Clasen
79bdb0d572 Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from
* acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and JH_PATH_XML_CATALOG from
	gtk-doc to enable configuring without xmlcatalog in PATH.  (#119115)
2003-08-10 22:24:17 +00:00
Tor Lillqvist
6489e6a5d5 Don't use a cache of variable name to value mappings on Win32, as that
2003-08-10  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_getenv): Don't use a cache of variable name to
	value mappings on Win32, as that breaks g_setenv() and
	g_unsetenv(). Only call ExpandEnvironmentStrings() if necessary,
	and in that case return a quarkified string. It is still
	questionable how necessary expanding embedded environment variable
	references is. Possibly the whole Win32-specific g_getenv()
	implementation could be removed. (#119520)
2003-08-10 08:04:10 +00:00
Tor Lillqvist
6fb380e374 Add g_once_impl.
2003-08-08  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add g_once_impl.
2003-08-10 01:54:02 +00:00
Tor Lillqvist
63d5300574 Fix syntax error in the !HAVE_SETENV case.
2003-08-08  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
	case.
2003-08-08 20:38:15 +00:00
Matthias Clasen
18042ea064 Remove a test for getenv() behaviour which isn't specified by SUS and
2003-08-08  Matthias Clasen  <maclas@gmx.de>

	* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS
	and doesn't work on Solaris.
2003-08-08 19:28:24 +00:00
Matthias Clasen
96838a7a88 Add tests for '=' in names and values.
2003-08-07  Matthias Clasen  <maclas@gmx.de>

	* tests/env-test.c: Add tests for '=' in names and values.

	* glib/gutils.c (g_setenv, g_unsetenv): Check that the variable name doesn't contain '='. Add a
	declaration for environ.  (#119338)
2003-08-07 21:51:38 +00:00
Matthias Clasen
4d2921959e Tighten the snprintf() test to check behaviour on zero-size buffers.
2003-08-07  Matthias Clasen  <maclas@gmx.de>

	* acinclude.m4: Tighten the snprintf() test to check behaviour on zero-size buffers.  (#106091)
2003-08-07 20:48:10 +00:00
Matthias Clasen
d695d28b1b Specify test strings in UTF-8, remove all charset conversion. Replace the
2003-08-07  Matthias Clasen  <maclas@gmx.de>

	* tests/patterntest.c: Specify test strings in UTF-8, remove all charset conversion.
	Replace the NOISY define by a cmdline arg --noisy.   (#115757)
2003-08-07 19:39:36 +00:00
Owen Taylor
ba0c0d91f7 Set $LIBS to include -lintl when checking for dcgettext and
Thu Aug  7 15:01:09 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: Set $LIBS to include
        -lintl when checking for dcgettext and
        _nl_msg_cat_cntr. (Tim Mooney, #119171)
2003-08-07 19:10:41 +00:00
Owen Taylor
b51c0d2f70 Make the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as
Thu Aug  7 14:15:44 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_idle_source_new): Make the default priority
        for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
        expect and document that. (#114461, reported by Andy Wingo)
2003-08-07 18:19:23 +00:00
Noah Levitt
f1d488de09 Add test for special case not at inital position in the string, the bug
2003-08-06  Noah Levitt  <nlevitt@columbia.edu>

	* tests/casemap.txt:
	* tests/gen-casemap-txt.pl: Add test for special case not at inital
	position in the string, the bug just fixed. (#118957)
2003-08-06 20:28:33 +00:00
Noah Levitt
8fa63e43c8 Get rid of "len" parameter to output_special_case and output_marks, and
2003-08-05  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Get rid of "len" parameter to output_special_case
	and output_marks, and make them work more like g_unichar_to_utf8,
	fixing a bug in the process. (#118957)
2003-08-06 01:08:46 +00:00
Hans Breuer
1fd50a1454 for msvc build
2003-08-05  Hans Breuer  <hans@breuer.org>

	* glib/gnulib/makefile.msc : (new file) for msvc build

	* glib/gnulib/vasnprintf.c : use glib/galloc.h

	* glib/gnulib/printf.h : #include <stdio.h> for FILE*

	* glib/makefile.msc.in : replace trio with gnulib

	* glib/glib.def : updated externals

	* glib/guniprop.c : fix for guniprop.c(582) : error C2082:
	redefinition of formal parameter 'len'
2003-08-05 22:21:19 +00:00
Noah Levitt
479928953b We do handle > BMP now, so test it.
2003-08-04  Noah Levitt  <nlevitt@columbia.edu>

	* tests/unicode-normalize.c: We do handle > BMP now, so test it.
2003-08-05 03:41:34 +00:00
Noah Levitt
2041e1c1e2 s/g_read_link/g_file_read_link/ (#118727)
2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

	* tests/file-test.c: s/g_read_link/g_file_read_link/ (#118727)
2003-07-31 16:56:27 +00:00
Noah Levitt
03e4805ff4 Return nonzero exit status if the test fails. (#118729)
2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

	* tests/unicode-encoding.c: Return nonzero exit status if the test fails. (#118729)
2003-07-31 16:51:52 +00:00
Noah Levitt
3b93b01219 Change instances of U+10ffff to U+10fffd, since that is the last valid
2003-07-31  Noah Levitt  <nlevitt@columbia.edu>

	* tests/utf8.txt: Change instances of U+10ffff to U+10fffd, since that
	is the last valid unicode character. Add check that U+10ffff is
	NOTUNICODE. (#118730)
2003-07-31 16:48:54 +00:00
Noah Levitt
05f99527eb Update Unicode data to 4.0. (#107974)
2003-07-30  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gen-unicode-tables.pl:
	* glib/gunibreak.c:
	* glib/gunibreak.h:
	* glib/gunichartables.h:
	* glib/gunicode.h:
	* glib/gunicomp.h:
	* glib/gunidecomp.c:
	* glib/gunidecomp.h:
	* glib/guniprop.c:
	* tests/casefold.txt:
	* tests/casemap.txt:
	* tests/gen-casefold-txt.pl:
	* tests/gen-casemap-txt.pl: Update Unicode data to 4.0. (#107974)
2003-07-31 02:27:56 +00:00
Tor Lillqvist
cdf72b09e6 When possible, manage without the helper process. (Part of the
2003-07-31  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn-win32.c: When possible, manage without the helper
	process. (Part of the enhancements outlined in #98737.) Speeds up
	GIMP 1.3's first-time-run plug-in query phase a lot.

	Plug a file descriptor (and thus Win32 handle) leak: close the
	read end of the child error report pipe after use.
2003-07-31 01:25:19 +00:00
Matthias Clasen
b3814b0cdc Small doc additions. 2003-07-30 19:00:36 +00:00
Matthias Clasen
beca86c32b Small doc fixes. 2003-07-30 18:50:26 +00:00
Matthias Clasen
768bdf40b7 Remove forgotten @TRIO_LIBS@. (#118616, Noah Levitt)
* glib-2.0.pc.in (Libs): Remove forgotten @TRIO_LIBS@.  (#118616, Noah Levitt)
2003-07-30 00:01:39 +00:00
Matthias Clasen
15edef6ff2 Rename g_read_link() to g_file_read_link() to better match the remaining
* glib/gfileutils.[hc]: Rename g_read_link() to g_file_read_link() to better match the remaining file
	utilities in the g_file_ namespace and to better separate it from readlink(). This is hopefully no problem
	as the function is just 2 days old.
2003-07-29 22:31:40 +00:00
Matthias Clasen
cf9779628e Use gchar, gint, gsize instead of char, int, size_t in the interface for
2003-07-29  Matthias Clasen  <maclas@gmx.de>

	* glib/gqsort.[hc] (g_qsort_with_data):
	* glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri):
	* glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t
	in the interface for consistency.  (#118567)
2003-07-29 18:59:23 +00:00
Matthias Clasen
3c51de64fe Integrate gnulib vasnprintf(). 2003-07-28 23:00:05 +00:00
Matthias Clasen
355eb38190 New function g_read_link(). (#72545)
* glib/gfileutils.h:
	* glib/gfileutils.c: New function g_read_link(). (#72545)
2003-07-28 19:49:47 +00:00
Matthias Clasen
76cc9a77c6 Add tests for g_{get,set,unset}env(). 2003-07-28 19:30:05 +00:00
Matthias Clasen
f723402708 Add g_setenv() and g_unsetenv(). (#100763)
* glib/gutils.[ch]: Add g_setenv() and g_unsetenv().  (#100763)
2003-07-28 19:24:22 +00:00
Matthias Clasen
5eb34aa96e test suite additions. 2003-07-26 09:24:46 +00:00
Matthias Clasen
971af34af9 New functions to remove a range of elements from an array. (#94879, Nalin
2003-07-26  Matthias Clasen  <maclas@gmx.de>

	* glib/garray.h:
	* glib/garray.c (g_{,byte,pointer}_remove_range): New functions to remove a range of elements
	from an array.  (#94879, Nalin Dahyabhai)
2003-07-26 08:03:16 +00:00
Matthias Clasen
ffa186dfc9 Remove the 1024 char limit in the common (non-recursive) case.
2003-07-26  Matthias Clasen  <maclas@gmx.de>

	* glib/gmessages.c (g_logv): Remove the 1024 char limit in the common (non-recursive)
	case.
2003-07-25 23:17:23 +00:00
Matthias Clasen
a412fb1654 Remove some explicit Docbook markup which is no longer necessary
since gtk-doc does the right thing.
2003-07-25 21:32:47 +00:00
Matthias Clasen
b205c9267b Work around gtk-doc stupidity.
2003-07-25  Matthias Clasen  <maclas@gmx.de>

	* glib/gutf8.c (g_utf8_get_char_validated): Work around gtk-doc stupidity.
2003-07-24 23:07:29 +00:00
Hans Breuer
2781d5f6b3 for msvc build
2003-07-20  Hans Breuer  <hans@breuer.org>

	* glib/trio/makefile.msc : (new file) for msvc build

	* glib/glib.def : removed some duplicated entries

	* glib/gscanner.c : add same workaround for MSVC(5.0)
	which does not allow to cast an uint64 to float.
	Same as in gvaluetransform.c
	Also move #include <io.h> behind inclusion of "glib.h"
	which defines the needed G_OS_WIN32

	* glib/makefile.msc.in : added gprintf.obj, trio\trio.lib
	as well as shell32.lib

	* tests/spawn-test.c : include <io.h> on win32
2003-07-20 15:55:09 +00:00
Matthias Clasen
5c808d7ca2 Doc additions.
2003-07-12  Matthias Clasen  <maclas@gmx.de>

	* glib/gprintf.c: Doc additions.

2003-07-12  Matthias Clasen  <maclas@gmx.de>

	* glib/tmpl/string_utils.sgml: Add a paragraph about string precision, add links to it.
	Remove markup which is now handled better by gtk-doc.
2003-07-10 18:24:46 +00:00
Joel Brich
ca44f7a4c8 Added "eo" to ALL_LINGUAS. Added Esperanto translation from Charles
2003-07-10  Joel Brich  <joel.brich@laposte.net>

	* configure.in: Added "eo" to ALL_LINGUAS.
	* po/eo.po: Added Esperanto translation
	from Charles Voegler <cvoegler@dweasel.com>
2003-07-10 18:24:46 +00:00
Manish Singh
103d290767 grammar fix 2003-07-10 00:16:46 +00:00
Manish Singh
ca1ff92c51 check if context->poll_chunk is set before trying to destroy it. For
Wed Jul  9 16:27:26 2003  Manish Singh  <yosh@gimp.org>

        * glib/gmain.c (g_main_context_unref_and_unlock): check if
        context->poll_chunk is set before trying to destroy it. For example,
        This can happen if no sources are added to a context before it is
        freed.
2003-07-09 23:31:20 +00:00
Morten Welinder
27b50b6d43 Avoid var declaration after statement.
2003-07-09  Morten Welinder  <terra@gnome.org>

	* glib/gprintf.c (g_vasprintf): Avoid var declaration after
	statement.
2003-07-09 19:32:16 +00:00
Matthias Clasen
876f907863 Support for one-time initialization functions. (#69668, Sebastian
2003-07-09  Matthias Clasen  <maclas@gmx.de>

	Support for one-time initialization functions.  (#69668, Sebastian Wilhelmi)

	* configure.in: Check whether double checked locking is safe, define g_once() in
	glibconfig.h accordingly.
	* glib/gthread.h: Add GOnce, GOnceStatus, G_ONCE_INIT and g_once_impl.
	* glib/gthread.c (g_once_impl): Fallback implementation using a mutex if double checked
	locking is unsafe.
	* tests/thread-test.c: Add tests for g_once().
2003-07-08 23:43:48 +00:00
Matthias Clasen
8940b82eb4 Move g_strfreev() docs inline.
2003-07-02  Matthias Clasen  <maclas@gmx.de>

	* glib/tmpl/string_utils.sgml: Move g_strfreev() docs inline.
2003-07-01 22:15:54 +00:00
Abigail Brady
5c903d283b Use C99 style \uxxxx and \Uxxxxyyyy escapes instead for fallback instead
2003-06-25  Abigail Brady  <morwen@evilmagic.org>

 	* glib/gconvert.c (g_convert_with_fallback): Use C99 style \uxxxx
 	and \Uxxxxyyyy escapes instead for fallback instead of perl-style
 	\X{xxxx} ones, fixing bug #114284.
2003-06-25 18:03:38 +00:00
Tor Lillqvist
98ba2b5ee3 Pass real &optval and &optlen to getsockopt() instead of NULL. Don't
2003-06-25  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
	&optlen to getsockopt() instead of NULL. Don't remember why I
	thought that NULL could be used (as we don't actually use the
	returned value for anything), the Platform SDK documentation
	doesn't imply so.
2003-06-25 03:06:24 +00:00
Matthias Clasen
67c48e49ee Move the documentation inline and add details. (#108505) Move
2003-06-19  Matthias Clasen  <maclas@gmx.de>

	* glib/gutils.c (g_path_get_basename): Move the documentation
	inline and add details.  (#108505)
	* glib/tmpl/misc_utils.sgml: Move g_path_get_basename() docs inline.
2003-06-18 23:12:56 +00:00
Matthias Clasen
54f796b1b6 New macros to check for XML catalog contents and path, borrowed from
2003-06-17  Matthias Clasen  <maclas@gmx.de>

	* acinclude.m4 (JH_PATH_XML_CATALOG, JH_CHECK_XML_CATALOG): New
	macros to check for XML catalog contents and path, borrowed from
	gtk-doc.
	* configure.in: New option --enable-man to enable regeneration of
	man pages from Docbook, if the necessary tools are found.

	* gobject/Makefile.am: Add rule to regenerate man pages from
	Docbook.
	(man_MANS): Add glib-mkenums.1, glib-genmarshal.1 and gobject-query.1.
	(content_files): Add glib-mkenums.xml, glib-genmarshal.xml and
	gobject-query.xml.

	* gobject/glib-mkenums.xml:
	* gobject/glib-genmarshal.xml:
	* gobject/gobject-query.xml: New refentries.

	* gobject/glib-mkenums.1:
	* gobject/glib-genmarshal.1:
	* gobject/gobject-query.1: Man pages generated from the .xml
	sources.

	* gobject/gobject-docs.sgml: Include glib-mkenums.xml,
	glib-genmarshal.xml and gobject-query.xml.

	* glib/Makefile.am: Add rule to regenerate man pages from
	Docbook.
	(man_MANS): Add glib-gettextize.1.
	(content_files): Add glib-gettextize.xml.

	* glib/glib-gettextize.xml: New refentry.

	* glib/glib-gettextize.1: Man page generated from the .xml source.

	* glib/glib-docs.sgml: Include glib-gettextize.xml.
2003-06-17 23:08:37 +00:00
Tor Lillqvist
06781ec8ad Test where the DLLs actually are.
2003-06-15  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in (DLLDIR): Test where the DLLs actually are.

	* README.win32: Point to FSF's binary Win32 distributions of
	libiconv and gettext-runtime.
2003-06-15 23:20:14 +00:00
Tor Lillqvist
94fed3f988 libtool 1.5 installs DLLs in the bin subdirectory, so get them from there.
2003-06-11  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in (DEVZIP): libtool 1.5 installs DLLs in the bin
	subdirectory, so get them from there.

	* glib/gwin32.c (g_win32_getlocale): Use "sr@Latn" and "sr" in the
	same way as the po files for Serbian in Latin and Cyrillic script.
2003-06-11 22:06:16 +00:00
Sebastian Wilhelmi
e9c1f8f412 Remove false &. Spotted by Albert Chin
2003-06-11  Sebastian Wilhelmi  <seppi@seppi.de>

        * configure.in: Remove false &. Spotted by Albert Chin
        <gtk-devel-list@thewrittenword.com>.
2003-06-11 13:34:40 +00:00
Tor Lillqvist
51704100d0 Fix indentation and spacing. Use INADDR_LOOPBACK instead of
2003-06-08  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c: Fix indentation and spacing. Use
	INADDR_LOOPBACK instead of inet_addr("127.0.0.1") and
	gethostbyaddr().
2003-06-08 01:38:13 +00:00
Andy Lanoix
be76dd63f9 Resolved thread deadlocks in socket ichannel code to support
* glib/giowin32.c: Resolved thread deadlocks in socket
	ichannel code to support Add-Cancel-Add watch functionality
	on windows. Also cleaned up socket error handling to not
	segfault and do the right thing.
2003-06-07 20:31:28 +00:00
Hidetoshi Tajima
3bfb73d477 Test for Solaris native gettext in libc, seeing if it supports GNU catalog
Fri Jun  6 10:24:23 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>

	* m4macros/glib-gettext.m4: Test for Solaris native gettext
	in libc, seeing if it supports GNU catalog format (#85217).
2003-06-06 17:31:50 +00:00
Owen Taylor
4a21238fef When dispatching a source that is !CAN_RECURSE, temporarily remove any
Thu Jun  5 23:40:31 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c: When dispatching a source that is
        !CAN_RECURSE, temporarily remove any file descriptors
        that that source has registered from the main loop, to keep
        recursive main loops from busy-waiting if input
        becomes available on one of those file descriptors.
        (#112222, Christian Krause)

        * glib/gmain.c (g_source_set_priority): Properly
        remove the source from the context's source list
        and reinsert it sorted, rather than simply setting
        source->next/prev to NULL! (#114274)
2003-06-06 03:54:03 +00:00
Matthias Clasen
cc777da9c1 Use g_vasprintf() and g_string_append_len(), thus enabling embedded nuls
2003-06-06  Matthias Clasen  <maclas@gmx.de>

	* glib/gstring.c (g_string_append_printf_internal): Use
	g_vasprintf() and g_string_append_len(), thus enabling embedded
	nuls in the result of g_string_printf().  (#92492, Owen Taylor)

	* tests/string-test.c: Add a test for embedded nuls in the
	result of g_string_printf().
2003-06-05 23:04:21 +00:00
Matthias Clasen
27b3b2c681 Synchronize argument names with headers and docs. (g_vasprintf): An
2003-06-06  Matthias Clasen  <maclas@gmx.de>

	* glib/gprintf.[ch]: Synchronize argument names with headers and docs.
	(g_vasprintf): An implementation of vasprintf(), code was lifted
	from g_strdup_vprintf().  (#112365)

	* glib/gstrfuncs.c (g_strdup_vprintf): Just use g_vasprintf().
2003-06-05 22:47:42 +00:00
Tor Lillqvist
1cf610e216 glib/giochannel.h Remove bogus (Win32-only) declaration of
2003-06-05  Tor Lillqvist  <tml@iki.fi>

	* glib/giochannel.h
	* glib/gmain.h: Remove bogus (Win32-only) declaration of
	g_main_poll_win32_msg_add(). No such function exists.

	* glib/gmain.c (g_poll) [Win32]: Use g_win32_error_message() for
	better warning messages.
2003-06-05 22:18:27 +00:00
Noah Levitt
fef203f9f7 Fix typo (#114375). Also, make the function static.
2003-06-04  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunidecomp.h (combine): Fix typo (#114375). Also, make the
	function static.
2003-06-04 20:53:55 +00:00
Sebastian Wilhelmi
70ca727d22 Test for pthread_setschedparam. If not existant, disable priorities.
2003-06-03  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in: Test for pthread_setschedparam. If not existant,
	disable priorities. (#104718)
2003-06-03 12:35:00 +00:00
Owen Taylor
5f5ab2384c Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)
Mon Jun  2 14:18:21 2003  Owen Taylor  <otaylor@redhat.com>

        Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

        * glib/gspawn.c (read_data): Don't read() into '&buf', while this
        is technically okay - it is clearer as just 'buf'.
        (write_all): New helper function that handles write() interrupts.
        (write_err_and_exit): Use write_all() instead of write().
        (fork_exec_with_pipes): Same here.
2003-06-02 18:20:25 +00:00
Owen Taylor
6e6bbbd4d5 Put the g_return_val_if_fail() in the right place.
Sun Jun  1 09:42:36 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_error_get_from_g_error): Put
        the g_return_val_if_fail() in the right place.
2003-06-01 13:44:47 +00:00
Ray Strode
934317e809 Fix typo: should be G_IO_ERROR_UNKNOWN not G_ERROR_ERROR_UNKNOWN
Fri May 31 1:17:45 2003  Ray Strode  <halfline@hawaii.rr.com>

        * glib/giochannel.c (g_io_channel_error_from_errno):
        Fix typo: should be G_IO_ERROR_UNKNOWN not
        G_ERROR_ERROR_UNKNOWN
2003-05-31 16:10:50 +00:00
Owen Taylor
5baeb21e11 glib/gstrfuncs.c (g_ascii_strncasecmp) Use TOLOWER() macro instead of
Fri May 30 19:23:47 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gstrfuncs.c (g_ascii_strncasecmp)
        * glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
        macro instead of g_ascii_tolower() (#107138)
2003-05-30 23:28:34 +00:00
Owen Taylor
b3ec0170ab Backport better handling of ALL_LINGUAS from gettext.m4. (#103808, Andras
Fri May 30 19:09:25 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: Backport better handling
        of ALL_LINGUAS from gettext.m4. (#103808, Andras Salamon)
2003-05-30 23:13:55 +00:00
Owen Taylor
f558a8cc11 expand $exec_prefix as well as $prefix. (#107290, reported by Morten
Fri May 30 18:46:05 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: expand $exec_prefix as
        well as $prefix. (#107290, reported by Morten Welinder,
        patch from Raja Harinath)
2003-05-30 22:49:13 +00:00
Owen Taylor
8f7b2b5cc1 Quote $srcdir to handle $srcdir with spaces (#107850, Evan Martin)
Fri May 30 17:24:23 2003  Owen Taylor  <otaylor@redhat.com>

        * glib-gettextize.in: Quote $srcdir to handle $srcdir
        with spaces (#107850, Evan Martin)
2003-05-30 21:25:38 +00:00
Owen Taylor
e41ebdcfcd Silently return G_IO_CHANNEL_ERROR_FAILED for EINTR, since close() can
Fri May 30 16:48:26 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_channel_error_from_errno):
        Silently return G_IO_CHANNEL_ERROR_FAILED for EINTR,
        since close() can return EINTR. (#11842, Balazs Scheidler)
2003-05-30 21:11:08 +00:00
Owen Taylor
9ff5d0eeed Do a g_return_val_if_fail() on err == NULL to be a bit more robuts on
Fri May 30 15:51:43 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/giochannel.c (g_io_error_get_from_g_error):
        Do a g_return_val_if_fail() on err == NULL to be a
        bit more robuts on buggy IO channel implementations.
        (#113396, Dan Winship)
2003-05-30 19:54:35 +00:00
Owen Taylor
614e5ed63a __PRETTY_FUNCTION__ was made a non-token before gcc-3.0.0 for C++. (Fix
Tue May 27 19:56:35 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: __PRETTY_FUNCTION__ was made a non-token
        before gcc-3.0.0 for C++. (Fix from Martin Kretzschmar,
        #113797)
2003-05-28 16:53:20 +00:00
Matthias Clasen
25e8ae683e Remain silent when sucessful.
2003-05-28  Matthias Clasen  <maclas@gmx.de>

	* tests/patterntest.c: Remain silent when sucessful.

	* tests/Makefile.am: Add patterntest to make check.  (#113143,
	Zach Frey)
2003-05-27 22:12:40 +00:00
Matthias Clasen
c868c58694 Use memcpy instead of strcpy. (#106988, Christian Biere)
2003-05-27  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_strdup): Use memcpy instead of
	strcpy. (#106988, Christian Biere)
2003-05-27 21:30:08 +00:00
Noah Levitt
bc76e98174 Fix typo in UNICODE_VALID (related to #107427).
2003-05-23  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gutf8.c: Fix typo in UNICODE_VALID (related to #107427).
2003-05-23 21:18:32 +00:00
Noah Levitt
da4f56d4c1 Remove stale comment.
2003-05-23  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Remove stale comment.
2003-05-23 20:42:35 +00:00
Noah Levitt
8648811bc0 Update g_unichar_iswide to Unicode 4.0 (#113404).
2003-05-22  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Update g_unichar_iswide to Unicode 4.0 (#113404).
2003-05-22 19:48:45 +00:00
Noah Levitt
cd1e44fd2b Fix obscure typo in case conversion routine (#113469).
2003-05-21  Noah Levitt  <nlevitt@columbia.edu>

	* glib/guniprop.c: Fix obscure typo in case conversion routine
	(#113469).
2003-05-21 21:58:31 +00:00
Manish Singh
7a1dcc18f1 ytpo 2003-05-20 21:18:23 +00:00
PDT 2003 Manish Singh
a4fa910471 wrap 64-bit MIN/MAX limit constants in G_GINT64_CONSTANT. Fixes bug
Tue May 20 14:14:55 PDT 2003  Manish Singh  <yosh@gimp.org>

        * configure.in: wrap 64-bit MIN/MAX limit constants in
        G_GINT64_CONSTANT. Fixes bug #108699.
2003-05-20 21:17:35 +00:00
Noah Levitt
939c31884b Fix cut-and-pasto: g_unichar_break_type should return
2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunibreak.c: Fix cut-and-pasto: g_unichar_break_type should
	return G_UNICODE_BREAK_UNKNOWN if the character is greater than
	G_UNICODE_LAST_CHAR.
2003-05-20 03:38:48 +00:00
Noah Levitt
6c4580c9c7 Remove unused function g_list_sort2 (bug #113203).
2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/glist.c: Remove unused function g_list_sort2 (bug #113203).
2003-05-19 17:02:32 +00:00
Noah Levitt
6bc2ee510a Fix off-by-one error in g_unicode_canonical_ordering (bug #113260).
2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunidecomp.c: Fix off-by-one error in
	g_unicode_canonical_ordering (bug #113260).
2003-05-19 15:54:48 +00:00
Arafat Medini
20b6300c96 *ar.po: Added Arabic translation by Arabeyes <doc@arabeyes.org>
2003-05-19 Arafat Medini <lumina@silverpen.de>

	*ar.po: Added Arabic translation by
	Arabeyes <doc@arabeyes.org>
2003-05-19 15:36:33 +00:00
Telsa Gwynne
e5e4f77027 Welsh translation from Dafydd Harries 2003-05-17 18:44:56 +00:00
Matthias Clasen
8e80b63b1a Some doc fixes. (#111805)
2003-05-05  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_ascii_dtostr):
	(g_ascii_formatd):
	(g_ascii_strtod): Some doc fixes.  (#111805)
2003-05-05 18:26:38 +00:00
Christian Rose
7feee9b513 Added sr and sr@Latn to ALL_LINGUAS. Added Serbian translation by Danilo
2003-05-05  Christian Rose  <menthos@menthos.com>

	* configure.in: Added sr and sr@Latn to ALL_LINGUAS.
	* po/sr.po, po/sr@Latn.po: Added Serbian translation by
	Danilo Å egan <dsegan@gmx.net>.
2003-05-05 13:45:22 +00:00
Owen Taylor
ca0df4044d Accept libtool-1.5. (#111483)
Thu Apr 24 19:12:05 2003  Owen Taylor  <otaylor@redhat.com>

        * autogen.sh (have_libtool): Accept libtool-1.5. (#111483)
2003-04-24 23:51:26 +00:00
Matthias Clasen
754d18b050 Move install docs into reference manual. 2003-04-09 18:49:48 +00:00
Matthias Clasen
7b0da6c54a Move cross-compilation info to reference manual. 2003-04-07 23:20:57 +00:00
Owen Taylor
5b4af3060f When waiting for the main loop to be freed up, wait on either
Mon Apr  7 13:40:28 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gmain.c (g_main_loop_run): When waiting for
        the main loop to be freed up, wait on either
        !loop->is_running or got_ownership, not both.
        (Caused gtk_dialog_run() not to work in other
        threads, reported by Jean-Yves Lefort)
2003-04-07 17:50:53 +00:00
Matthias Clasen
048002c8f7 Warn if p == NULL && max != 0. (#110087)
2003-04-07  Matthias Clasen  <maclas@gmx.de>

	* glib/gutf8.c (g_utf8_strlen): Warn if p == NULL && max != 0.
	(#110087)
2003-04-06 22:16:59 +00:00
Tor Lillqvist
84b92bcdae Add g_string_chunk_insert_len.
2003-04-01  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add g_string_chunk_insert_len.
2003-04-01 19:11:48 +00:00
Matthias Clasen
e4112b8b1b New function, to insert possible non-nul-terminated byte sequences into a
2003-04-01  Matthias Clasen  <maclas@gmx.de>

	* glib/gstring.[hc] (g_string_chunk_insert_len): New function, to
	insert possible non-nul-terminated byte sequences into a string
	chunk.  (#96279)
	(g_string_chunk_insert): Implement in terms of
	g_string_chunk_insert_len() now.
2003-03-31 22:08:08 +00:00
Matthias Clasen
6710fd6e06 Optimize the common cases (init == NULL or init == "") a bit. replace uses
2003-03-30  Matthias Clasen  <maclas@gmx.de>

	* glib/gstring.c (g_string_new): Optimize the common cases
	(init == NULL or init == "") a bit.
	* glib/gmarkup.c, glib/gmessages.c, glib/gscanner.c,
	glib/gshell.c, glib/gspawn-win32-helper.c, glib/gspawn-win32.c,
	glib/gspawn.c, gobject/gvaluetransform.c: replace uses of
	g_string_new ("") by g_string_new (NULL).  (#106973, Morten Welinder)
2003-03-30 22:02:20 +00:00
Matthias Clasen
cb0e4de11c 2003-03-a30 Matthias Clasen <maclas@gmx.de>
* glib/gutf8.c (UNICODE_VALID): Update to Unicode 3.1 and optimize
	a bit.  (#107427, Noah Lewitt)
2003-03-30 21:51:30 +00:00
Matthias Clasen
93681235dd Add cp1251 support for Solaris. (#104738, Hidetoshi Tajima)
2003-03-30  Matthias Clasen  <maclas@gmx.de>

	* glib/libcharset/config.charset: Add cp1251 support for Solaris.
	(#104738, Hidetoshi Tajima)
2003-03-30 21:29:26 +00:00
Matthias Clasen
306d5e2b6b Get rid of UNSAFE_DOS_PATH. (acceptable): Align with RFC2396. (#59653)
2003-03-30  Matthias Clasen  <maclas@gmx.de>

	* glib/gconvert.c (UnsafeCharacterSet): Get rid of
	UNSAFE_DOS_PATH.
	(acceptable): Align with RFC2396.  (#59653)

	* tests/uri-test.c: Adjust to the changes above.
2003-03-30 21:24:58 +00:00
Christian Rose
d34ab625bc Added "yi" to ALL_LINGUAS. Added Yiddish translation by Raphael Finkel
2003-03-26  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "yi" to ALL_LINGUAS.
	* po/yi.po: Added Yiddish translation by
	Raphael Finkel <raphael@cs.uky.edu>.
2003-03-26 21:48:11 +00:00
Matthias Clasen
f86a5fad70 Fix docs.
2003-03-19  Matthias Clasen  <maclas@gmx.de>

	* glib/giochannel.c (g_io_channel_read_to_end): Fix docs.
2003-03-19 22:05:07 +00:00
Anders Carlsson
3ce437f34d Bump version to 2.3.0
2003-03-19  Anders Carlsson  <andersca@codefactory.se>

	* configure.in: Bump version to 2.3.0
2003-03-19 21:51:36 +00:00
Sebastian Wilhelmi
3030dcbd7e Do not define function g_thread_init_glib, if not G_THREADS_ENABLED. It's
2003-03-14  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gthread.c: Do not define function g_thread_init_glib, if
	not G_THREADS_ENABLED. It's not called bu g_thread_init() then,
	but calls other, in that case undefined functions.
2003-03-14 14:29:21 +00:00
Matthias Clasen
ea9a7199a1 Fix FALSE/NULL confusion. (#107646, Morten Welinder)
2003-03-06  Matthias Clasen  <maclas@gmx.de>

	* glib/gmain.c (g_main_context_find_source_by_id):
	(g_main_context_find_source_by_funcs_user_data): Fix FALSE/NULL
	confusion.  (#107646, Morten Welinder)
2003-03-06 22:41:03 +00:00
James Henstridge
c4391cbf37 require automake 1.7. Add calls to libtoolize and gtkdocize. Clean up some
2003-03-01  James Henstridge  <james@daa.com.au>

    * autogen.sh: require automake 1.7.  Add calls to libtoolize and
    gtkdocize.  Clean up some of the error messages.

    * configure.in: move version declaration to the top of the file
    (before AC_INIT), using M4 macros.
    GLIB_AC_DIVERT_BEFORE_HELP() calls no longer necessary, due to use
    of M4 macro expansion in help messages instead.
    Convert AC_ARG_WITH/AC_ARG_ENABLE calls to use AC_HELP_STRING to
    format help strings.  Use quadrigraphs to get square brackets to
    show correctly.
    Replace gtk-doc checks with a call to GTK_DOC_CHECK() macro.
    Use AC_CONFIG_COMMANDS([glibconfig.h], ...) to output
    glibconfig.h, so that "./config.status glibconfig.h" works.
    Add an extra AC_CONFIG_FILES call listing other files we want
    generated by config.status protected by an "if false" block.  This
    way automake generates the rules needed to rebuild the files for
    us.
    Add quotes in various places.

    * docs/reference/*/Makefile.am: convert to use the common
    gtk-doc.make file.  This localises the complexity to a single
    makefile fragment maintained with gtk-doc itself.

    * */Makefile.am: remove unneeded rules to build win32 files with
    config.status.  Automake now does this for us.
    Replace instances of @FOO@ with $(FOO) where appropriate -- this
    allows automake to do a better job checking the makefile.
    Add some files to DISTCLEANFILES where appropriate

    * Makefile.am: use the DISTCHECK_CONFIGURE_FLAGS variable to
    ensure that --enable-gtk-doc is passed to configure during a
    distcheck.  Remove the custom distcheck, since the standard one
    will now do.

    * gobject/Makefile.am: switch to BUILT_SOURCES, since that now
    works.
2003-03-04 10:10:48 +00:00
Matthias Clasen
6f98877728 Use g_strndup, not g_strdup, since we know the length in advance.
2003-02-26  Matthias Clasen  <maclas@gmx.de>

	* glib/gstrfuncs.c (g_strdup_vprintf): Use g_strndup, not
	g_strdup, since we know the length in advance.
2003-02-26 00:12:42 +00:00
Matthias Clasen
98fefa5b5f Use g_malloc instead of directly using malloc.
2003-02-26  Matthias Clasen  <maclas@gmx.de>

	* glib/gunidecomp.c (g_unicode_canonical_decomposition): Use
	g_malloc instead of directly using malloc.
2003-02-25 23:20:16 +00:00
Tor Lillqvist
0306e378e5 Add a couple of missing entries, thanks to Cedric Gustin. Thread
2003-02-25  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add a couple of missing entries, thanks to Cedric
	Gustin. Thread initialization function changes according to
	Sebastian Wilhelmi's changes below (2003-02-14).
2003-02-25 21:19:05 +00:00
Matthias Clasen
7e664b500d Clarify documentation.
2003-02-24  Matthias Clasen  <maclas@gmx.de>

	* glib/gdir.c (g_dir_read_name): Clarify documentation.
2003-02-23 22:55:47 +00:00
Sebastian Wilhelmi
032506b242 Make glib_thread_test not unnecessarily convert between int and void*.
2003-02-18  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in: Make glib_thread_test not unnecessarily convert
	between int and void*. (#106278). Let main return int.

	* configure.in: Add an argument to specify the default thread
	attribute to glib_thread_test. Disappeared somewhere between 2.0
	and 2.2.
2003-02-18 14:00:16 +00:00
Sebastian Wilhelmi
8e91cf9eb9 Fixes for #101264 and #99372:
2003-02-14  Sebastian Wilhelmi  <seppi@seppi.de>

	Fixes for #101264 and #99372:

	* glib/gconvert.h, glib/gmain.c, glib/gmem.c, glib/gmessages.c,
	glib/grand.c: Include gthreadinit.h and rename the thread
	initialization functions a bit and let them start with _, so that
	later we can stop exporting them.

	* glib/gmem.c, glib/gmessages.c: Move the g_private_new() calls to
	new functions. They have to be called after setting
	g_threads_got_initialized to TRUE (see #101264).

	* glib/gthread.c: Include gthreadinit.h. Renamed g_mutex_init() to
	g_thread_init_glib(). Call the thread initialization functions
	(which are not allowed to call g_private_new), then set
	g_threads_got_initialized to TRUE, then call the other thread
	initialization functions (which must not call anything but
	g_private_new()).

	* glib/gthreadinit.h: New private header to cleanly declare all
	thread initialization functions.

	* gthread/gthread-impl.c: Include gthreadinit.h. In
	g_thread_init() just call g_thread_init_glib(), which in turn calls the
	other functions (see #99372).

	* glib/Makefile.am: Added gthreadinit.h.
2003-02-14 15:08:46 +00:00
Sebastian Wilhelmi
f0e22eaadf Make GLib recognize Tru64Unix thread system. (#103020)
2003-02-12  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in: Make GLib recognize Tru64Unix thread system. (#103020)
2003-02-12 13:01:35 +00:00
Tor Lillqvist
ff78c76b46 Include ChangeLog.pre-2-2.
2003-02-11  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (EXTRA_DIST): Include ChangeLog.pre-2-2.
2003-02-11 18:02:53 +00:00
Tor Lillqvist
05e7a4ab9c Include also the gtk-doc/html documentation in the developer package.
2003-02-11  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in: Include also the gtk-doc/html documentation in the
	developer package.

	* README.win32: Updates.
2003-02-11 17:59:04 +00:00
Sebastian Wilhelmi
98e22e2693 Changed my e-mail address. Removed my e-mail address.
2003-02-11  Sebastian Wilhelmi  <seppi@seppi.de>

	* AUTHORS: Changed my e-mail address.
	* glib/grand.c: Removed my e-mail address.
2003-02-11 10:13:49 +00:00
Mohammad DAMT
6f1d2c5e09 Added Indonesian translation Added "id" to ALL_LINGUAS
2003-02-10  Mohammad DAMT  <mdamt@bisnisweb.com>

	* po/id.po: Added Indonesian translation
	* configure.in: Added "id" to ALL_LINGUAS
2003-02-10 08:01:42 +00:00
Matthias Clasen
fa21b512d5 Remove all docs from gobject at Tims request. Documentation is only for
2003-02-07  Matthias Clasen  <maclas@gmx.de>

	* gtypemodule.c:
	* gtype.c:
	* gsourceclosure.c:
	* gparamspecs.c:
	* gparam.c:
	* gobject.c:
	* gsignal.c: Remove all docs from gobject at Tims
	request. Documentation is only for weenies anyway...
2003-02-07 22:04:24 +00:00
Tor Lillqvist
5d48d565e3 Fix typo: Should be SOCKET_ERROR, not SO_ERROR. Noticed by Daniel
2003-02-04  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c (g_io_channel_unix_new): Fix typo: Should be
	SOCKET_ERROR, not SO_ERROR. Noticed by Daniel Kaufmann.

	Merge from stable branch:

	Fix for bug #104014, reported by Alex Shaduri:

	* glib/gspawn-win32.c (protect_argv): New function. Add
	double-quotes around argv elements that need it, and escape
	embedded double-quotes with backslash.
	(do_spawn_with_pipes) Call protect_argv().

	* glib/gspawn-win32-helper.c (WinMain): Call protect_argv().

	* glib/gspawn.c (g_spawn_async_with_pipes): Document argument
	vector vs. command line details on Win32.
	(g_spawn_command_line_sync): Improve documentation about
	backslashes in the command line on Windows.
2003-02-04 23:37:04 +00:00
Owen Taylor
305742130f Remove references to glib.spec. (#102231)
Thu Jan 30 16:45:13 2003  Owen Taylor  <otaylor@redhat.com>

        * Makefile.am: Remove references to glib.spec.
        (#102231)

        * configure.in: Don't generate glib.spec.
2003-01-30 21:47:23 +00:00
Owen Taylor
ceca3f430b If msgfmt isn't found, unset gt_cv_have_gettext. (#102552, Tim Mooney)
Tue Jan 28 16:08:56 2003  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-gettext.m4: If msgfmt isn't found,
        unset gt_cv_have_gettext. (#102552, Tim Mooney)
2003-01-28 21:13:43 +00:00
Owen Taylor
476f157396 Fix version in complaint message about automake. (#104366, Rich Burridge)
Tue Jan 28 15:18:24 2003  Owen Taylor  <otaylor@redhat.com>

	* autogen.sh (have_automake): Fix version in complaint
	message about automake. (#104366, Rich Burridge)
2003-01-28 20:26:05 +00:00
Pablo Saratxaga
b7f82ce8e4 Added Bengali file 2003-01-23 11:42:49 +00:00
Christian Rose
0c00bfc60e Added "mn" to ALL_LINGUAS. Added Mongolian translation by Sanlig Badral
2003-01-21  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "mn" to ALL_LINGUAS.
	* po/mn.po: Added Mongolian translation by
	Sanlig Badral <badral@chinggis.com>.
2003-01-21 22:43:17 +00:00
Pablo Saratxaga
c202179763 updated Vietnamese file;
added missing langs to ALL_LINGUAS
2003-01-20 18:38:54 +00:00
Daniel Yacob
5fcbdfbfa6 Adding Amharic translation. 2003-01-16 16:28:30 +00:00
Tor Lillqvist
a9ec93de82 Add some missing entries. Thanks to Kenichi SUTO.
2003-01-12  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add some missing entries. Thanks to Kenichi SUTO.
2003-01-12 02:35:15 +00:00
Tor Lillqvist
b123bcf25c Updates.
2003-01-05  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Updates.

	* configure.in: Don't use -lm in TRIO_LIBS on Windows, with no
	libm. (Mingw has a dummy libm.a, but the .pc file should be
	useable by MSVC users, too.)
2003-01-05 22:51:09 +00:00
Ron Steinke
dcb78fd43a (Ancient, binary compatible fixes found sitting in my tree)
* Added early checks for count == 0 and buf == NULL in g_io_channel_read()
* Better error message for EFAULT in  g_io_channel_error_from_errno()
2003-01-05 18:11:15 +00:00
Tor Lillqvist
90f62a657f Don't distribute glib-zip.
2003-01-04  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (BUILT_EXTRA_DIST): Don't distribute glib-zip.
2003-01-04 17:14:35 +00:00
Tor Lillqvist
933b7ba4b6 [Win32] Install also the .def files, to help users generate import
2003-01-04  Tor Lillqvist  <tml@iki.fi>

	* {glib,gmodule,gobject,gthread}/Makefile.am:
	[Win32] Install also the .def files, to help users generate
	import libraries for other compilers. Uninstall, too.

	* glib-zip.in: Include .def files from above.
2003-01-04 06:47:14 +00:00
Tor Lillqvist
a0821bd753 Don't claim broken pipes are unreadable. (Well, they are, but read()
2003-01-04  Tor Lillqvist  <tml@iki.fi>

	* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Don't claim
	broken pipes are unreadable. (Well, they are, but read() handles
	it, and treats it like EOF.)
2003-01-04 05:43:06 +00:00
Manish Singh
3fa609363c use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for tests for inline
Thu Jan  2 16:19:15 2003  Manish Singh  <yosh@gimp.org>

        * configure.in: use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE for
        tests for inline keywords. Fixes #101976.
2003-01-03 00:16:09 +00:00
Tor Lillqvist
54cadf4528 Correct the comment telling what headers have the declarations of some
2003-01-02  Tor Lillqvist  <tml@iki.fi>

	* glib/gwin32.h: Correct the comment telling what headers have
	the declarations of some POSIXish functions.

	* glib/giowin32.c (g_io_win32_fd_get_flags_internal): Fix braino:
	The checks for readability/writeability were backwards.
2003-01-02 00:30:22 +00:00
Tor Lillqvist
1377e3d1e7 Check the C stdout and stderr streams for validity, instead of what
2003-01-01  Tor Lillqvist  <tml@iki.fi>

	* glib/gmessages.c (ensure_stdout_valid, ensure_stderr_valid):
	Check the C stdout and stderr streams for validity, instead of
	what GetStdHandle() returns.
2003-01-01 23:18:44 +00:00
Tor Lillqvist
ac17691afc Move the alloc_console_called static flag inside these two functions.
2003-01-01  Tor Lillqvist  <tml@iki.fi>

	* glib/gmessages.c (ensure_stderr_valid, ensure_stdout_valid): Move the
	alloc_console_called static flag inside these two functions.
2003-01-01 17:00:51 +00:00
Tor Lillqvist
1b68ce7033 New function, parallel to ensure_stdout_valid(). #defined as empty on
2003-01-01  Tor Lillqvist  <tml@iki.fi>

	* glib/gmessages.c (ensure_stderr_valid): New function, parallel
	to ensure_stdout_valid(). #defined as empty on Unix.
	(mklevel_prefix): Do use either stderr or stdout on Windows,
	too. Otherwise g_warning() messages (that are just warnings, by
	definition) will get mixed with proper stdout output. Noticed in
	GIMP's gimpconfig-dump.
	(strdup_convert, mklevel_prefix, g_printerr): Call
	ensure_stderr_valid() before trying to use stderr.
	(g_logv): [Win32] Convert message to current codepage before
	display with MessageBox().
2003-01-01 01:19:47 +00:00
Owen Taylor
52a20ff026 Split ChangeLog 2002-12-28 21:16:55 +00:00
Tõivo Leedjärv
3eb15f35ce Added et to ALL_LINGUAS.
2002-12-28  Tõivo Leedjärv  <toivo@linux.ee>

        * configure.in: Added et to ALL_LINGUAS.
2002-12-27 23:41:33 +00:00
Owen Taylor
982d9f8611 === Released 2.2.0 ===
Fri Dec 20 10:45:29 2002  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.2.0 ===

        * INSTALL.in: --enable-included-printf, not --enable-trio.
        (Matthias Clasen)
2002-12-20 15:48:15 +00:00
Owen Taylor
7eafb2373c === Released 2.2.0 ===
Fri Dec 20 09:52:15 2002  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.2.0 ===

        * INSTALL.in: Document --enable-trio, --disable-mempools,
        --enable-debug. Include docs on cross compilation.

        * NEWS: Update.

        * configure.in: Version 2.2.0, interface age 0.
2002-12-20 15:23:12 +00:00