1 Fri Dec 20 09:37:27 2002 Owen Taylor <otaylor@redhat.com>
3 * gthread/gthread-impl.c (g_thread_init): Call g_main_thread_init()
4 after setting g_threads_got_initialized. (#101624,
5 Alceste Scalas, Sebastian Wilhelmi)
7 Wed Dec 18 16:19:08 2002 Manish Singh <yosh@gimp.org>
9 * glib/gtypes.h: new endian asm for ia64 and x86_64, general
10 reorg and clean up. New implementation of GUINT16_SWAP_LE_BE_CONSTANT()
11 that should optimize better. (#101318)
13 2002-12-17 Tor Lillqvist <tml@iki.fi>
15 Improvement based on suggestion by Thorsten Maerz:
17 * glib/giowin32.c (struct _GIOWin32Channel): Don't need thread_handle.
19 (create_thread): We can close thread handle right away, it isn't
22 (read_thread, select_thread): Thus, don't close it here.
24 Fix #57690, partial fix for #57689:
26 * glib/giowin32.c (g_io_win32_set_flags): Don't set the GError,
27 instead call g_warning().
29 (g_io_win32_fd_get_flags_internal): New function, sets the
30 is_readable, is_writeable and is_seekable flags based on the
31 actual access modes of the underlying Win32 HANDLE, by trying
32 Win32 ReadFile() and WriteFile() of zero bytes, and
33 PeekNamedPipe(). Should work for disk files and pipes. For devices
34 (consoles) unfortunately not.
36 (g_io_win32_fd_get_flags): Don't set the
37 G_IO_FLAG_IS_{READ,WRITE}ABLE flags, g_io_channel_get_flags()
38 already does. Call g_io_win32_fd_get_flags_internal() to set the
41 (g_io_win32_msg_get_flags, g_io_win32_sock_get_flags): Splice the
42 generic g_io_win32_get_flags() into these specific functions, as
43 they need to do different things. Not implemented yet, though.
45 (g_io_channel_win32_new_fd_internal): New function, to avoid
46 duplicate fstat() calls. Most code from g_io_channel_win32_new_fd()
47 moved here. Call g_io_win32_fd_get_flags_internal() to set the
50 (g_io_channel_win32_new_fd, g_io_channel_unix_new): Call
51 g_io_channel_win32_new_fd_internal().
53 (g_io_win32_no_seek): Remove. Don't set is_seekable for those
56 Mon Dec 16 17:31:50 2002 Owen Taylor <otaylor@redhat.com>
58 * === Released 2.1.5 ===
60 * configure.in: Version 2.1.5, interface age 2.
64 Mon Dec 16 14:58:33 2002 Owen Taylor <otaylor@redhat.com>
66 * configure.in: Add a hack to mostly deal with
67 problems in support of -pthread and -lpthread;
68 pass -lpthread (for linux) or -Wc,-pthread (for
69 other platforms) to libtool when linking libgthread.
72 2002-12-16 Tor Lillqvist <tml@iki.fi>
74 * glib/gspawn-win32.c (do_spawn): Fix potential heap
75 corruption. Sometimes called g_free() on string literal.
77 Sun Dec 15 19:51:58 2002 Owen Taylor <otaylor@redhat.com>
79 * m4macros/glib-gettext.m4: AC_SUBST() DATADIRNAME, not
82 Sun Dec 15 19:22:58 2002 Owen Taylor <otaylor@redhat.com>
84 * m4macros/glib-gettext.m4: Restore a missing AC_SUBST()
85 for DATADIRNAME. (Found by Kjartan Maraas)
87 Sun Dec 15 11:24:29 2002 Owen Taylor <otaylor@redhat.com>
89 * m4macros/glib-gettext.m4: Actually set INTLLIBS
90 when needed. (Reported by Tor Lillqvist)
92 2002-12-15 Tor Lillqvist <tml@iki.fi>
94 * glib/glib.def: Add g_rand_init.
96 * config.h.win32.in: Slight update to match what is currently
97 produced by configure.
99 Sat Dec 14 21:24:04 2002 Owen Taylor <otaylor@redhat.com>
101 * glib/gutils.c (g_get_any_init): HP-UX 10 xshares the
102 same non-posix getpwuid_r signature as AIX.
103 (#100756, Kai Poitschke)
105 Sat Dec 14 21:10:57 2002 Owen Taylor <otaylor@redhat.com>
107 * glib/gthread.h: Mark the contents of the strucures
108 in this file /*< private >*/
110 * glib/gthread.[ch]: Rename the 'write' field of the
111 structure to 'have_writer' to avoid any possible
112 conflict with system headers. (#90549, Morten Welinder)
114 Sat Dec 14 20:11:41 2002 Owen Taylor <otaylor@redhat.com>
116 * glib/libcharset/{localcharset.[ch] libcharset-glib.patch}
117 glib/gutf8.c: Break _g_locale_charset() into two pieces
118 - a fast "raw" piece, and a slow "unalias pieces".
119 Always call the "raw" piece, and call the unalias bit
120 if it changes. Use a per-thread cache. (#79529)
122 2002-12-15 Matthias Clasen <maclas@gmx.de>
124 * configure.in: Set TRIO_LIBS when building with trio.
126 * glib-2.0.pc.in (Libs): Add @TRIO_LIBS@.
128 * glib/trio/Makefile.am (libtrio_la_LIBADD): Use @TRIO_LIBS@.
130 * glib/trio/glibtrio.h: New file, redefining all trio symbols to
131 fall into the _G/_g_ private glib namespace.
133 * glib/trio/Makefile.am (libtrio_la_SOURCES): Add glibtrio.h
135 * glib/trio/trionan.c:
136 * glib/trio/triostr.c:
137 * glib/trio/trio.c: Include glibtrio.h
140 * glib/trio/trionan.c:
141 * glib/trio/triostr.c:
142 * glib/trio/trio.c: Include glibtrio.h
144 Fri Dec 13 17:10:21 2002 Manish Singh <yosh@gimp.org>
146 * glib/gscanner.c (g_scanner_unexp_token): Fix typo. Missing '%'
149 Thu Dec 12 23:08:29 2002 Owen Taylor <otaylor@redhat.com>
151 Fixes from Johannes Stezenbach
153 * configure.in: When adding extra libraries to $LIBS for
154 tests, always put them at the front, since that's how
155 they'll be used in the actual Makefiles.
157 * configure.in: Add a couple of missing ','s in AC_LINK_IFELSE()
159 * m4macros/glib-gettext.m4: Remove a stray setting of $LIBS.
161 Thu Dec 12 20:46:26 2002 Owen Taylor <otaylor@redhat.com>
163 * configure.in: Allow not setting glib_cv_long_long_format
164 when cross-compiling since we assume other things that
165 will cause us to pull in Trio anyways.
167 * configure.in: long_long_format is always ll for trio.
169 * configure.in: Error out if --disable-trio is specified
170 but the C library doesn't have the necessary features.
172 2002-12-13 Matthias Clasen <maclas@gmx.de>
174 * glib/trio/Makefile.am (libtrio_la_LIBADD): Add -lm for pow().
176 * tests/string-test.c: Add a test for positional parameters in
179 Thu Dec 12 14:58:55 2002 Manish Singh <yosh@gimp.org>
181 * configure.in: pull in trio if host printf doesn't have a known
182 way of printing 64-bit ints.
184 * glib/gmacros.h: remove extra whitespace at the end
186 * glib/gscanner.c (g_scanner_unexp_token): use G_GUINT64_FORMAT
187 instead of hardcoding "%llu"
189 * tests/testglib.c: remove obsolete conditionals using G_HAVE_GINT64,
190 we always have it now.
192 * tests/type-test.c: same as above, and for G_G[U]INT64_FORMAT as
195 Thu Dec 12 13:52:58 2002 Owen Taylor <otaylor@redhat.com>
197 * m4macros/glib-gettext.m4: AC_PREREQ(2.53) here; convinces
198 Debian's wrappers to use the right autoconf for atk, etc.
199 (Reported by Jody Goldberg)
201 2002-12-11 Tor Lillqvist <tml@iki.fi>
203 * glib/gtimer.c (g_timer_elapsed): Fix off-by-one error. (#100853)
205 * glib/gfileutils.c (g_file_test): Bypass extra test for root on
208 * glib/glib.def: Add g_{get,set}_application_name.
210 Wed Dec 11 17:53:34 2002 Owen Taylor <otaylor@redhat.com>
212 * === Released 2.1.4 ===
216 Wed Dec 11 17:49:15 2002 Owen Taylor <otaylor@redhat.com>
218 * m4macros/glib-gettext.m4: Unset
219 ac_cv_func_bind_textdomain_codeset before calling
220 AC_CHECK_FUNCS(bind_textdomain_codeset) again.
222 * configure.in: Remove duplicate call to
223 AC_CHECK_FUNCS(bind_textdomain_codeset)
225 2002-12-11 Pauli Virtanen <pauli.virtanen@hut.fi>
227 * configure.in: Added "fi" to ALL_LINGUAS.
229 Wed Dec 11 17:00:20 2002 Owen Taylor <otaylor@redhat.com>
231 * acglib.m4 (ac_compile): Add GLIB_ASSERT_SET() as
232 a helper for adding "must be set when cross-compiling"
235 * configure.in: For all cached variables without defaults,
236 error out if they aren't set.
238 Wed Dec 11 15:52:01 2002 Owen Taylor <otaylor@redhat.com>
240 * configure.in: Also assume AC_LINK_IFELSE() is
241 OK when cross-compiling for the libs checks, and for
242 the sched_get_priority_min() check.
244 * configure.in: Add cached value glib_cv_use_pid_surrogate.
246 Wed Dec 11 15:10:25 2002 Owen Taylor <otaylor@redhat.com>
248 * configure.in: Factor out repeated thread test into
249 a m4_define(); when cross-compiling, assume that
250 AC_LINK_IFELSE() is good enough for thinking that
251 -pthread[s] is OK. (More of #58786)
253 * m4macros/glib-gettext.m4: Fix typo. (Manish Singh)
255 Wed Dec 11 14:28:50 2002 Owen Taylor <otaylor@redhat.com>
257 * configure.in: Version 2.1.4, interface age 1.
259 * m4macros/glib-gettext.m4: Major rewrite; remove leftovers
260 from building intl/, prefer libintl if both libc and libintl
261 have dgettext and libintl also has bind_textdomain_codeset().
264 * configure.in acinclude.m4: Use an include to avoid having
265 to duplicate the gettext macros between glib-gettext.m4
268 * m4macros/glib-gettext.m4: Do some tricks so that configure.in
269 can use macros under hidden names, but aclocal will still
270 find them when installed.
272 * m4macros/glib-gettext.m4: Add AM_GLIB_DEFINE_LOCALEDIR
273 to encapsulate install location of catalog files.
275 * m4macros/glib-gettext.m4 (AM_GLIB_DEFINE_LOCALEDIR):
276 Fix bug where if --prefix wasn't set on the configure line,
277 GLib would look for translations in NONE/share/locale.
279 Wed Dec 11 11:11:44 2002 Owen Taylor <otaylor@redhat.com>
281 * glib/grand.c: Include string.h, supress a warning.
283 2002-12-10 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
285 * glib/grand.c (g_rand_int_range): Improve generation of
286 pseudo-random integers. (#99720, Morten Welinder <terra@diku.dk>)
288 * README.in, docs/reference/glib/running.sgml,
289 docs/reference/glib/tmpl/random_numbers.sgml,
290 docs/reference/glib/changes.sgml: Added notes about the new
293 2002-12-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
295 * configure.in: use 0 instead of $defattr, as it isn't defined
296 anymore on platforms using -pthread and linux, where this is used,
297 only uses 0 anyway and not "pthread_attr_default".
299 Sun Dec 8 23:36:12 2002 Owen Taylor <otaylor@redhat.com>
301 * glib/gfileutils.c (g_file_test): Guard against
302 the POSIX allowed behavior where access (file, X_OK)
303 succeeds for uid==0 when no executable bits are set.
305 * glib/gfileutils.c (g_file_test): Add doc notes
306 about the possibility of race conditions, and the
307 fact that EXISTS and IS_EXECUTABLE give results
308 for the real uid not the effective user ID.
309 (#81854, Morten Welinder.)
311 Fri Dec 6 14:34:42 2002 Owen Taylor <otaylor@redhat.com>
313 Avoid literal UTF-8. (Allow it to build with
314 IRIX cc, #72757, Tomas Ogren)
316 * tests/patterntest.c (main): Convert literal
317 iso-8859-1 high bit characters in tests to
320 * glib/gunichartable.h glib/gen-unicode-tables.pl:
321 Use hex \xMN escapes rather than literal UTF-8
324 * configure.in: AC_PREREQ(2.53). needed for recent
325 GLIB_SIZEOF() changes.
327 Fri Dec 6 12:40:00 2002 Owen Taylor <otaylor@redhat.com>
329 * glib/libcharset/Makefile.am (EXTRA_DIST): Don't
330 distribute ref-add/del.sed., fixing problem with
331 srcdir != destdir. (#99813, Phuc LeHong)
333 Fri Dec 6 12:31:30 2002 Owen Taylor <otaylor@redhat.com>
335 * configure.in: chmod 0755 scripts in AC_OUTPUT(), since
336 install -c won't necessarily do that. (#74376, Martin
337 Gansser, Joshua Weage)
339 Thu Dec 5 16:05:55 2002 Owen Taylor <otaylor@redhat.com>
341 * configure.in: Use AC_LINK_IFELSE(), not AC_TRY_RUN()
342 for va_copy(), __va_copy() checks.
344 * configure.in: When there is a reasonable default,
345 provide that in the 3rd argument of AC_TRY_RUN(),
346 instead of just leaving the 3rd argument empty.
348 2002-12-05 Matthias Clasen <maclas@gmx.de>
350 * glib/gstrfuncs.c (g_strncasecmp): Break long deprecation
351 info into two paragraphs.
353 Thu Dec 5 15:43:46 2002 Owen Taylor <otaylor@redhat.com>
355 * configure.in: Fix multiple problems with the programs
356 in the argument of AC_TRY_RUN() having preprocessor
357 defines not in the first column.
359 Thu Dec 5 15:24:14 2002 Owen Taylor <otaylor@redhat.com>
361 Start of fixes for cross-compilation. Based on
362 patches from Dimi Shahbaz, Dan Kegel, Johannes Stezenbach,
365 * configure.in: Don't run the Digital-Unix 4 -std1 check
366 when cross_compiling.
368 * configure.in: Use AC_TRY_COMPILE() rather than
369 AC_TRY_RUN() for inline checks. (Daniel Egger)
371 * configure.in: use AC_CHECK_SIZEOF rather than
372 GLIB_SIZEOF for size_t. Remove unused checks for
373 size of ptrdiff_t/intmax_t.
375 * acglib.m4: Resync GLIB_SIZEOF of to the current
376 AC_CHECK_SIZEOF, which handles cross-compilation.
378 * acglib.m4: Remove no longer needed GLIB_SYSDEFS(),
379 add GLIB_CHECK_VALUE() as a wrapper around the
380 amazing _AC_COMPUTE_INT() autoconf 2.5x internal.
382 * configure.in: Redo the POLL* value checks in a
383 cross-compilation friendly way.
385 Thu Dec 5 15:28:37 2002 Owen Taylor <otaylor@redhat.com>
387 * glib/gtimer.c: Include glibconfig.h early so
388 that we include <windows.h> when needed.
390 * glib/gstrfuncs.c: Fix typo.
392 Tue Dec 3 21:10:28 2002 Owen Taylor <otaylor@redhat.com>
394 * configure.in: Add 3rd argument to remaining AC_DEFINES(),
395 so we can get rid of acconfig.h. (#76334, Daniel Egger)
397 * acconfig.h: Removed.
399 Tue Dec 3 20:22:27 2002 Owen Taylor <otaylor@redhat.com>
401 * glib/*.c: Patch from Sven Neumann to make the
402 include order consistent. (#71704)
404 2002-12-03 Matthias Clasen <maclas@gmx.de>
406 * configure.in: Check that strlcpy behaves as per the OpenBSD
407 man page before wrapping it. (#53933)
409 2002-12-03 Frederic Crozat <fcrozat@mandrakesoft.com>
411 * glib/gunicollate.c: (g_utf8_collate_key):
412 Fix typo from previous commit
414 Tue Dec 3 01:05:00 2002 James M. Cape <jcape@ignore-your.tv>
416 * glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key):
417 Check for NULL before doing anything.
419 Mon Dec 2 16:34:13 2002 Owen Taylor <otaylor@redhat.com>
421 * === Released 2.1.3 ===
425 [ Unmerged change from stable from May 16 ]
427 * autogen.sh: Remove check for GNU gettext, since it
428 was causing problems for Solaris CVS builds.
429 (#81885, Hidetoshi Tajima.)
431 Tue Nov 26 09:51:43 2002 Owen Taylor <otaylor@redhat.com>
433 * glib/gstrfuncs.c (g_strchomp): Avoid non-ANSI pointer
434 comparison. (#54344, Morten Welinder)
436 * tests/strfunc-test.c (main): Add tests for strchomp().
438 2002-11-30 Ole Laursen <olau@hardworking.dk>
440 * configure.in: Added "da" to ALL_LINGUAS.
442 2002-11-29 Matthias Clasen <maclas@gmx.de>
444 * glib/gstrfuncs.c (g_ascii_strtoull): It is a 2.2 addition.
446 * glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
448 * glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
450 * glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
452 2002-11-28 Matthias Clasen <maclas@gmx.de>
458 * glib/giochannel.c: Move some docs inline, and add deprecation
459 information. To see the list of affected functions, grep for
462 * configure.in: Fix the definitions around printf: either we use
463 system printf in which case HAVE_VASPRINTF, HAVE_C99_VSNPRINTF and
464 HAVE_UNIX98_PRINTF have already been determined by earlier tests,
465 or we use the included printf, in which case we know that these
466 three can be defined as 1. (#99826)
468 * glib/gutf8.c (g_utf8_strreverse):
469 * glib/gstrfuncs.c (g_str_has_suffix):
471 * glib/gprintf.c (g_printf):
477 * glib/gmarkup.c (g_markup_parse_context_get_element):
478 Mark as 2.2 API additions.
480 * configure.in: Fix the gtk-doc version check.
482 2002-11-27 Matthias Clasen <maclas@gmx.de>
484 * glib/gmessages.h: Use G_LIKELY without surrounding parentheses
485 in g_assert() and g_return_[val]_if_fail() so that we always trigger
486 the gcc warning about "assignment used as truth value".
488 * glib/gmacros.h: Always put parentheses in G_LIKELY and G_UNLIKELY.
490 2002-11-26 Matthias Clasen <maclas@gmx.de>
492 * glib/gmessages.h: Only use G_LIKELY in g_assert() and
493 g_return_[val]_if_fail() if it is actually doing something.
495 2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
497 * glib/grand.c, gthread/gthread-impl.c, tests/rand-test.c:
498 Changed the seeding algorithm. Old behaviour can be achived by
499 setting envvar G_RANDOM_VERSION to "2.0". (#99262)
501 * docs/reference/glib/glib-docs.sgml,
502 docs/reference/glib/Makefile.am: Renamed
503 docs/reference/glib/changes-2.0.sgml to
504 docs/reference/glib/changes.sgml and added section for changes
505 from 2.0 to 2.2 (Also corrected 1.0 to 1.2).
507 * README.in, docs/reference/glib/running.sgml,
508 docs/reference/glib/tmpl/random_numbers.sgml,
509 docs/reference/glib/changes.sgml: Added notes about the new
512 * configure.in: Make CPPFLAGS, not CFLAGS, include
513 G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
514 programs would link to the threads library on some platforms. Also
515 fixed a bug manifesting through this change. (#77981)
517 2002-11-26 Matthias Clasen <maclas@gmx.de>
519 * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
520 and G_UNLIKELY. (Reported by Dan Mills)
522 2002-11-25 Matthias Clasen <maclas@gmx.de>
524 * glib/gfileutils.c (g_build_path):
525 (g_build_filename): Document that the varargs must be
526 NULL-terminated. (#99510)
528 * glib/gmessages.h (g_assert):
530 (g_return_val_if_fail): Remove the (no longer effective) empty
533 * glib/gmacros.h: Change the definition of G_LIKELY, so that
534 g_return_if_fail() and friends still trigger a gcc warning if
535 the expr is an assignment.
537 2002-11-23 Matthias Clasen <maclas@gmx.de>
539 * configure.in: Generate docs/reference/*/version.xml.
541 * glib/gdir.h: Add Copyright notice.
543 2002-11-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
545 * configure.in: Fixed typo: PTHREAD_PRIO_MIN ->
546 PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)
548 Fri Nov 22 09:39:09 2002 Owen Taylor <otaylor@redhat.com>
550 * glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
551 definition which wasn't supposed to be committed
554 Thu Nov 21 16:19:21 2002 Owen Taylor <otaylor@redhat.com>
556 * glib/ghash.c: Patch from Morten Welinder to
557 make ghash.c properly obey DISABLE_MEM_POOLS. (#96600)
559 Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
561 * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
564 2002-11-21 Tor Lillqvist <tml@iki.fi>
566 * config.h.win32.in: Update to match what is currently produced by
569 * configure.in: Remove superfluous spaces on two shell variable
570 assignment lines. Don't define HAVE_GOOD_PRINTF as 0 if we don't
571 have a good printf, it is tested with #ifdef.
573 * glib/glib.def: Add new functions.
575 * glib/Makefile.am: If !HAVE_GOOD_PRINTF, add libtrio.la to LIBADD
579 * gmodule/gmodule.rc.in
580 * gobject/gobject.rc.in
581 * gthread/gthread.rc.in
582 * {glib,gmodule,gobject,gthread}/makefile.{mingw,msc}.in:
583 Hardcode 2.0 in the names, as that is what Makefile.am does.
585 2002-11-21 Matthias Clasen <maclas@gmx.de>
587 Include a printf implementation supporting C99 snprintf and SUS
588 positional parameters: (#79488)
591 * glib/gspawn-win32.c:
594 * glib/gbacktrace.c: Use _g_printf wrappers.
596 * glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
597 snprintf semantics now.
599 * glib/gmessages.c (printf_string_upper_bound): No longer needed,
600 since we can assume C99 snprintf semantics now.
603 * acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
604 printf supports SUS positional parameters.
606 * configure.in: New option --enable-included-printf to force
607 compilation of trio; otherwise trio is compiled if the system
608 printf misses either C99 snprintf semantics of SUS positional
611 * glib/Makefile.am (SUBDIRS): Conditionally compile trio.
612 (libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
613 (glibsubinclude_HEADERS): Add gprintf.h.
615 * glib/gprintfint.h: New private wrapping either system printf
616 or trio printf variants in _g_printf wrappers for use inside glib.
618 * glib/gprintf.h: New public header declaring g_printf variants.
619 * glib/gprintf.c: Corresponding implementations.
621 * glib/trio/*: New directory, containing the trio-1.9 sources.
623 2002-11-20 Matthias Clasen <maclas@gmx.de>
625 * glib/gmessages.h (g_return_if_fail):
626 (g_return_val_if_fail): Use G_LIKELY. (#69022)
628 * glib/gmacros.h (G_LIKELY):
629 (G_UNLIKELY): New macros for hinting the compiler about the
630 expected result of expressions. For gcc 3.x, define these
631 using __builtin_expect. (#69022)
633 Tue Nov 19 14:38:18 2002 Owen Taylor <otaylor@redhat.com>
635 * glib/gstrfuncs.c (g_ascii_strtoull): Fix
636 strtull/strtoull type in docs (#99012, Morten
637 Welinder.) Add copyright information for code
640 2002-11-18 Tor Lillqvist <tml@iki.fi>
642 * glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
643 G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
644 flag is not set, don't call DuplicateHandle() on the handle
645 returned by the helper process, and set the "child pid" returned
646 to the called to zero. Close the handle to the helper process in
649 * glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
650 behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
652 2002-11-18 Tor Lillqvist <tml@iki.fi>
654 [Win32] Fix the asynchronous g_spawn* to return the process handle
655 of the started program properly. (Note: not the process id. The
656 spawn*() functions in the C runtime return the created process's
657 handle. There doesn't seem to be any way to get the process id of
658 a child process if you have the handle. But then, the process
659 handle usually is more useful anyway.)
661 * glib/gspawn-win32-helper.c (WinMain): If the spawning of the
662 child process succeeded, and if asynchronous spawn (P_NOWAIT),
663 write the result handle up to the parent process, waiting to read
664 it in do_spawn_with_pipes().
666 * glib/gspawn-win32.c (do_spawn): Use return value from spawning
667 the helper. If it is -1 the helper wasn't found or couldn't be run
668 for some reason. Otherwise it is the helper's process handle.
670 (g_spawn_async_with_pipes): Pass the child_pid parameter on to
671 do_spawn_with_pipes().
673 (do_spawn_with_pipes): Take also a child_pid parameter. If
674 do_spawn() returned -1, fail immediately. Otherwise make the
675 handle passed to us by the helper process into a handle valid in
676 this process by calling DuplicateHandle().
678 2002-11-17 Tor Lillqvist <tml@iki.fi>
680 * glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
681 G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
682 on Windows, at least not now. Always pass dont_wait as TRUE to
683 do_spawn_with_pipes(). The semantics of the dont_wait parameter is
684 very different from the semantics of the intermediate_child
685 parameter to fork_exec_with_pipes() in the Unix version. This
686 fixes a serious bug, g_spawn_async() in fact behaved
689 (do_spawn_with_pipes, do_spawn): Rename from
690 fork_exec_with_pipes() and do_exec(), those names were from the
691 Unix bersion, and misleading.
693 (close_and_invalidate): Don't try to close invalid fds.
695 * glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
696 Windows behaviour. There is no fork(), so the child_setup()
697 function is in fact called in the parent.
699 * glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
702 * tests/spawn-test-win32-gui.c: New file. Test program to be
703 linked as a GUI application. Behaves differently depending on how
704 invoked (by spawn-test).
706 * tests/spawn-test.c (run_tests): On Win32, run the
707 spawn-test-win32-gui program, too, in several ways, synchronously
710 * tests/Makefile.am: Corresponding change.
712 Fri Nov 8 19:44:20 2002 Soeren Sandmann <sandmann@daimi.au.dk>
714 * docs/reference/glib/tmpl/arrays.sgml:
715 * docs/reference/glib/tmpl/arrays_byte.sgml:
716 * docs/reference/glib/tmpl/arrays_pointer.sgml:
717 * docs/reference/glib/tmpl/date.sgml:
718 * docs/reference/glib/tmpl/linked_lists_double.sgml:
719 * docs/reference/glib/tmpl/linked_lists_single.sgml:
720 * docs/reference/glib/tmpl/main.sgml:
721 * docs/reference/glib/tmpl/queue.sgml:
722 * docs/reference/glib/tmpl/random_numbers.sgml:
723 * docs/reference/glib/tmpl/relations.sgml:
724 * docs/reference/glib/tmpl/scanner.sgml:
725 * docs/reference/gobject/tmpl/gtype.sgml:
726 * docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
727 * glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
728 * glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
729 * glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
731 Trivial s/foo/foo_/ fixes to make <glib.h> includable with
732 -Wshadow without warnings (#91680)
734 Thu Nov 7 19:32:26 2002 Owen Taylor <otaylor@redhat.com>
736 * glib/gutils.[ch] (g_set/get_application_name):
737 Patch from Havoc Pennington to add functions for
738 setting and getting a human readable application
741 * configure.in: Up to version 2.1.3, since we'll
742 need to depend on last addition for GTK+.
744 2002-11-06 Tor Lillqvist <tml@iki.fi>
746 * glib/glib.def: Add g_main_thread_init.
748 2002-11-06 Matthias Clasen <maclas@gmx.de>
750 * glib/gstrfuncs.c (g_str_has_suffix):
751 (g_str_has_prefix): Minor doc markup fix.
753 Mon Nov 4 10:45:48 2002 Owen Taylor <otaylor@redhat.com>
755 * configure.in: Add -DG_DISABLE_CAST_CHECKS for
756 everything but --enable-debug.
758 * configure.in: Require pkg-config 0.14. (#97553)
760 Mon Nov 4 14:41:48 2002 Owen Taylor <otaylor@redhat.com>
762 * glib/gbsearcharray.c: Include config.h
763 so DISABLE_MEMPOOLS actually has an effect.
764 (#96437, Morten Welinder)
766 * tests/uri-test.c: Include <config.h>
768 2002-11-03 Dmitry G. Mastrukov <dmitry@taurussoft.org>
770 * configure.in: Added Belarusian to ALL_LINGUAS
772 2002-11-02 Daniel Elstner <daniel.elstner@gmx.net>
774 * glib/giochannel.c (g_io_channel_write_chars): Fix left_len
775 calculation in the from UTF-8 to UTF-8 case: left_len should
776 be the number of bytes left in the input buffer rather than
777 channel->write_buf. (#96373)
779 2002-10-27 Tor Lillqvist <tml@iki.fi>
781 * configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
784 * glib/gmain.c (g_poll): Fix for bug reported by Herman Bloggs
785 (http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00101.html)
786 and others. We waited for events only for GPollFDs whose events
787 field had G_IO_IN set. We need to wait also for events for
788 GPollFDs that have just G_IO_OUT set. Non-blocking sockets in the
789 process of being connect()ed are one such case. Also silence a
790 couple of gcc warnings.
792 Fri Oct 18 13:41:30 2002 Manish Singh <yosh@gimp.org>
794 * glib/giochannel.c (g_io_channel_read_line_backend): avoid
795 creating negative values out of unsigned values using MAX,
796 check to see if the result would be positive before doing
799 Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
801 * tests/iochannel-test.c: use gsize instead of int where appropriate
802 (64-bit cleanliness fix). Removed leftover line_term cruft.
804 Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
806 * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
807 add -DG_DISABLED_DEPRECATED
809 * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
810 tests/testglib.c test/tree-test.c tests/unicode-collate.c
811 tests/unicode-normalize.c: Deprecation cleanup
813 Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
815 * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
816 leak. (#94550, Sebastian Rittau)
818 Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
820 * glib/gcompletion.[ch] (g_completion_complete): Make
821 prefix argument const. (#91662, Gustavo Carneiro)
823 Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
825 * tests/mainloop-test.c (adder_response): Fix a minor memory
828 Sat Oct 12 21:30:41 2002 Tim Janik <timj@gtk.org>
830 * merged up from glib-2-0:
832 * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
833 (g_ascii_strtoull): new function, acting like strtoull(3) in the C
836 * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
837 support storing 64bit values in GTokenValue by
838 using g_ascii_strtoull().
840 Sat Oct 12 12:34:22 2002 Soeren Sandmann <sandmann@daimi.au.dk>
842 * glib/gtree.c (g_tree_search), glib/gspawn.c
843 (g_spawn_async_with_pipes):
845 Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
848 Thu Oct 10 23:27:02 2002 Tim Janik <timj@gtk.org>
850 * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
851 print out "<memory>" instead of completely skipping input specification
852 and thusly loosing error line information.
854 Sun Sep 29 12:15:44 2002 Manish Singh <yosh@gimp.org>
856 * tests/mainloop-test.c: use gsize instead of int where appropriate
857 (64-bit cleanliness fix)
859 2002-09-29 Tor Lillqvist <tml@iki.fi>
861 * configure.in: Instead of forcing -fnative-struct into CFLAGS
862 when using gcc for Win32, check for gcc version 3.x which uses
863 -mms-bitfields instead. Also check if either of these switches is
864 actually available at all, and warn if not. Thanks to Soren
865 Andersen for the inspiration.
867 * HACKING: Say we require autoconf 2.52 as that is what
870 2002-09-23 Arvind Samptur <arvind.samptur@wipro.com>
871 * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
872 we need to reap it to avoid a zombie. This would
873 happen in case of g_spawn_sync. Fixes #92658
875 2002-09-20 Matthias Clasen <maclas@gmx.de>
877 * glib/gscanner.c (g_scanner_msg_handler): Don't print
878 scanner->input_name when it is NULL. (#93752)
880 2002-09-06 Havoc Pennington <hp@redhat.com>
882 * autogen.sh: automake 1.4
884 2002-09-01 Soeren Sandmann <sandmann@daimi.au.dk>
886 * docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:
888 Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
890 2002-08-26 Tor Lillqvist <tml@iki.fi>
892 * configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
893 Cygwin (#91696, Masahiro Sakai).
895 Tue Aug 20 16:01:03 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
897 * glib/gconvert.c (strdup_len): validate 'len' argument properly
898 for the case that input string is not null-terminated. (#91222)
900 2002-08-10 Gustavo Noronha Silva <kov@debian.org>
902 * configure.in: added pt_BR to ALL_LINGUAS
904 2002-08-07 Matthias Clasen <maclas@gmx.de>
906 * glib/gmarkup.c (g_markup_parse_context_get_element):
907 Use g_return_val_if_fail, no g_return_if_fail.
909 2002-08-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
911 * glib/gthread.c: Set the normal PID surrogate priority according
912 to getpid() to avoid errors for niced processes. (#86116)
914 * gthread/gthread-impl.c, gthread/gthread-posix.c,
915 gthread/gthread-solaris.c: Do the same for the posix/dce
916 implementation. Solaris still needs to set priority of the main
917 thread, because all unbound threads will schedule according to
918 that value and it defaults to 0 (the minimal value).
920 * glib/gmain.c: Factor out g_main_context_init_pipe from
921 g_main_context_new to initialize the wakeup pipe of a
922 context. Call that function from g_main_context_new if threads are
923 initialized and for all contexts when threads are initialized
924 in g_main_thread_init. (#86872)
926 * gthread/gthread-impl.c: Call g_main_thread_init. (#86872)
928 Thu Jul 25 14:23:15 2002 Owen Taylor <otaylor@redhat.com>
930 * glib/gfileutils.c: Clarify the behavior of g_build_path()
931 for empty elements and for leading and trailing copies
932 of the separator in the docs.
934 * glib/gfileutils.c: Fix problems with leading elements
935 consisting only of "/" characters. (#85928, Guillaume Chazarain)
937 * tests/strfunc-test.c (main): Add more test cases
938 for g_build_filename().
940 2002-07-26 Matthias Clasen <maclas@gmx.de>
943 * glib/gutf8.c (g_utf8_strreverse): New function to revert
945 * glib/gpattern.c (g_utf8_reverse): Gone, replaced by
946 g_utf8_strreverse. (#87725)
948 Thu Jul 25 20:57:20 2002 Owen Taylor <otaylor@redhat.com>
950 * glib/giochannel.c (g_io_channel_read_line): Fix
951 docs for @str_return to conform to the main docs
952 and the implementation as to whether the terminator
953 is included. (#87964, Jacob Berkman)
955 Thu Jul 25 19:52:41 2002 Owen Taylor <otaylor@redhat.com>
957 * glib/guniprop.c (real_tolower): Handle the
958 end of the string properly when max_len is set.
959 (#88545, Morten Welinder.) Rename the next_t
960 variable to next_type to make cc-mode happy.
962 * glib/gconvert.c (g_iconv_open): Fix missing
963 label from previous commit.
965 Thu Jul 25 19:41:03 2002 Owen Taylor <otaylor@redhat.com>
967 * glib/giochannel.c (g_io_channel_get_flags): Fix
968 incorrect return value in g_return_val_if_fail
969 (#85545, David L. Cooper II)
971 Thu Jul 25 19:12:43 2002 Owen Taylor <otaylor@redhat.com>
973 * glib/giochannel.c (g_io_channel_set_encoding): Clarify
974 that only one of the conditions listed in the docs
975 need to be true, not all of them. (#87176,
978 * glib/giochannel.c (g_io_channel_read_line): Fix
979 description of the return value. (#87754, Manuel Clos)
981 Thu Jul 25 19:02:53 2002 Owen Taylor <otaylor@redhat.com>
983 * glib/gmain.c (g_timeout_add): Remove reference
984 in the docs to @notify parameter. (#87768,
987 Thu Jul 25 17:57:07 2002 Owen Taylor <otaylor@redhat.com>
989 * glib/gconvert.c (g_iconv_open): Document the
990 (GIConv)-1 return value on failure. (#87559,
993 * glib/gconvert.c (g_iconv_open): Fix potential
994 problems with the assumption that (GIConv)(iconv_t)-1
995 is the same as (GIConv)-1.
997 2002-07-15 Matthias Clasen <maclas@gmx.de>
1000 * glib/gmarkup.c (g_markup_parse_context_get_element): New
1001 function to get the currently open element. (#70448)
1003 2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1005 * tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
1006 throughout the files, which didn't already have them. (#87312)
1008 2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1010 * configure.in: Made the thread flags determination tests first
1011 check for the canonical form -pthread[s], then for other
1012 possibilities. Also recognize some more platforms. Modeled after
1013 patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
1016 * configure.in: Fixed bugs in posix thread priority
1017 resolution. Also added AIX priorities. Fix from
1018 Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)
1020 * gthread/gthread-solaris.c: Use thr_min_stack() instead of
1021 sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
1022 g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
1023 the stack might be to small for any nontrivial thread. Discovered
1024 on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
1026 2002-07-03 Anders Carlsson <andersca@gnu.org>
1028 * configure.in: Add a forgotten trailing ` in the
1029 GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
1031 2002-07-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1033 * configure.in: Set binary age to 0 to make it compile.
1035 * configure.in: Improve checks for dce/posix threads to also do
1036 the right thing, if the thread functions are not declared in
1037 pthread.h. Idea from Miroslaw Dobrzanski-Neumann
1038 <mne@mosaic-ag.com> in #77981.
1040 2002-07-01 Anders Carlsson <andersca@gnu.org>
1042 * configure.in: Up version to 2.1.0.
1044 2002-07-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1046 * glib/garray.h: Add parenthesis to protect macro
1047 argument. Spotted by Sam Couter <sam@topic.com.au>. (#86826)
1049 2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1051 * glib/gmessages.h (g_assert, g_assert_not_reached,
1052 g_return_if_fail, g_return_val_if_fail): In case of
1053 G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
1054 "G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
1055 gcc prior to 3.0. (#86664)
1057 2002-06-26 Yanko Kaneti <yaneti@declera.com>
1059 * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
1061 Thu Jun 13 16:12:04 2002 Owen Taylor <otaylor@redhat.com>
1063 * glib/gmain.c (struct _GTimeoutSource): Make
1064 interval unsigned to match g_timeout_source_new().
1065 (#82624, Tim Janik.)
1067 * glib/gmain.c (g_timeout_prepare): Add some
1068 extra gymnastics to avoid signed/unisgned integer
1071 Thu Jun 13 15:57:46 2002 Owen Taylor <otaylor@redhat.com>
1073 * INSTALL.in: Add a note about the deficiency
1074 of Tru64 iconv. (#81699, Manuel Op de Coul)
1076 Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
1078 * tests/patterntest.c (test_compilation)
1079 * glib/gmem.c (profiler_try_realloc): A couple
1080 of 64-bit printf format fix from George Lebl.
1083 * glib/gconvert.c (open_converter): Fix gsize/gint
1084 mixup for g_iconv() arguments. (#83270,
1087 2002-06-03 Matthias Clasen <maclas@gmx.de>
1089 * glib/gwin32.c (g_win32_get_package_installation_directory):
1090 Replace homegrown "hash" entity by standard ISO entity "num".
1092 2002-05-26 Matthias Clasen <maclas@gmx.de>
1094 * glib/gmain.c: Remove references to nonexisting functions
1095 g_source_set_callback_closure(), g_source_poll(), g_source_add()
1098 * glib/gdir.c (g_dir_open): Typo fix in docs.
1100 * glib/gasyncqueue.c (g_async_queue_lock):
1101 (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
1104 * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
1106 * glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
1108 * glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
1110 2002-05-23 Havoc Pennington <hp@redhat.com>
1112 * glib/gspawn.c (fork_exec_with_pipes): on success, close the
1113 pipes from the child. Fix from Tim.
1115 2002-05-22 jacob berkman <jacob@ximian.com>
1117 * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
1119 Wed May 22 15:40:47 2002 Owen Taylor <otaylor@redhat.com>
1121 * README.in: Remove notes about now-fixed-bugs.
1123 * m4macros/glib-gettext.m4 acinclude.m4: Get rid
1124 of AC_MSG_NOTICE() usage, since some broken systems
1125 (Hi Debian!) might not be using autoconf-2.5x for
1126 downstream packages even though we require it for
1129 * INSTALL.in: Add a note about installing extra
1130 converters for Solaris.
1132 * glib/gutils.h (g_bit_nth_msf): Fix termination
1133 condition. (#82582, Paolo Molaro)
1135 Tue May 21 15:51:17 2002 Owen Taylor <otaylor@redhat.com>
1137 * configure.in: $with_libiconv, not $with_iconv.
1139 Mon May 20 18:02:46 2002 Owen Taylor <otaylor@redhat.com>
1141 * configure.in: Move iconv tests before gettext
1144 * m4macros/glib-gettext.m4 acinclude.m4: If we can't
1145 link to gettext, try adding in -liconv. (#80076,
1148 * m4macros/glib-gettext.m4 acinclude.m4: Suppress
1149 warnings about xgettext not being GNU gettext when
1150 libintl wasn't found at all.
1151 (#79016, Andrew P. Lentvorski, Jr.)
1153 2002-05-21 Matthias Clasen <maclas@gmx.de>
1155 * glib/gmarkup.c (g_markup_parse_context_parse): Added
1156 proper support for CDATA sections.
1158 2002-05-20 jacob berkman <jacob@ximian.com>
1160 * glib/gdir.c: include sys/types.h before dirent.h to build on
1161 darwin (fixes #72859)
1163 Mon May 20 15:35:59 2002 Owen Taylor <otaylor@redhat.com>
1165 * glib/gfileutils.c (get_contents_regfile): Fix double
1166 close of file descriptor on error. (#82139, Wayne Schuller)
1168 * glib/gspawn.c (close_and_invalidate): Don't close
1169 fd's that have already been closed. (Fix from Michael
1172 * glib/giochannel.c (g_io_channel_close): If not flushing,
1173 dump the contents of the write buffers, so we won't try
1174 to write them to an invalid fd later. (Patch from Ron Steinke,
1175 fixing #78290, Andreas Persenius.)
1177 2002-05-18 Matthias Clasen <maclas@gmx.de>
1179 * tests/markups/fail-36.gmarkup:
1180 * tests/markups/fail-35.gmarkup:
1181 * tests/markups/valid-8.gmarkup:
1182 * tests/markups/valid-7.gmarkup:
1183 * tests/markups/valid-6.gmarkup:
1184 * tests/markups/valid-5.gmarkup: New testcases.
1186 * tests/markup-test.c (passthrough_handler):
1187 (text_handler): Don't ignore the text_len parameter.
1189 * glib/gmarkup.c (find_current_text_end): Don't hang on embedded
1191 (g_markup_parse_context_parse): Fix passthrough handling to
1192 correctly skip processing instructions, comments, doctype
1193 declarations and CDATA marked sections. (#81977)
1195 Sat May 18 00:21:51 2002 Tim Janik <timj@gtk.org>
1197 [merged from stable]
1199 * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
1202 2002-05-17 Tor Lillqvist <tml@iki.fi>
1204 * config.h.win32.in: Match new additions in a configure-produced
1207 * glibconfig.h.win32.in: gssize and gsize as in a
1208 configure-produced glibconfig.h.
1210 * glib/glib.def: Add new functions.
1212 Thu May 16 12:24:00 2002 Owen Taylor <otaylor@redhat.com>
1214 * acinclude.m4 m4macros/glib-gettext.m4: Incorporate
1215 AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
1216 dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)
1218 2002-05-14 Alex Larsson <alexl@redhat.com>
1222 New functions g_str_has_suffix and g_str_has_prefix.
1224 * tests/string-test.c: (main):
1225 Test the new functions.
1227 Mon May 13 23:20:00 2002 Owen Taylor <otaylor@redhat.com>
1229 * autogen.sh (have_gettext): Add a check for GNU gettext.
1230 (Pointed out by Dan Winship in #59386.)
1232 Mon May 13 11:55:33 2002 Owen Taylor <otaylor@redhat.com>
1234 * configure.in acglib.m4: If sizeof(int) == sizeof(long)
1235 run compilation tests to determine which way gsize should
1236 be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
1238 Mon May 13 11:42:23 2002 Owen Taylor <otaylor@redhat.com>
1240 * glib/libcharset/*: Update from libcharset CVS.
1241 Includes additional encodings for Solaris (#80396,
1244 * configure.in: Add getc_unlocked to CHECK_FUNCS().
1246 * glib/gmessages.c (strdup_convert): If
1247 g_convert_with_fallback() fails, print the error
1248 message to stderr the first time, then return
1249 the original string. (#78197)
1251 2002-05-10 Naba Kumar <kh_naba@users.sourceforge.net>
1253 * configure.in: Added "hi" to ALL_LINGUAS.
1255 2002-05-08 Michael Natterer <mitch@gimp.org>
1257 * configure.in: fixed yesterdays fix for cross compiling: simply
1258 check the variable "cross_compiling" which gets set by autoconf.
1260 2002-05-07 Matthias Clasen <maclas@gmx.de>
1262 * glib/gmarkup.c (unescape_text): Report unfinished entity
1263 references as errors rather than running into an assert. (#80441)
1265 2002-05-07 Michael Natterer <mitch@gimp.org>
1267 * configure.in: added a new conditional CROSS_COMPILING which
1268 indicates ($build != $host). If it is set, look for
1269 glib-genmarshal in PATH. Error out if it was not found.
1271 Tue May 7 11:24:22 2002 Owen Taylor <otaylor@redhat.com>
1273 Fixes for #79347, Ron Arts.
1275 * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
1276 don't g_return_if_fail().
1278 * tests/qsort-test.c (main): Add a 0 element test.
1280 * glib/garray.c (g_[ptr_]array_sort_with[_data]):
1281 Remove invalid assertions that array->pdata != NULL ..
1282 it's NULL for 0 elements which is a valid case.
1284 Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
1286 * glib/gbacktrace.h: Exclude OSF from alpha definition
1287 of G_BREAKPOINT(), since the assembler apparently
1288 doesn't support bpt. (#77852, Gareth Pierce) [from stable]
1290 Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
1292 [ merged from stable ]
1294 * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
1296 * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
1297 compiling "what went wrong" test case. (#79330)
1299 * m4macros/glib-2.0.m4: Remove reference to editing
1300 pkg-config script. (From Jim Gettys)
1302 * configure.in: (Look for dyld interfaces before dlopen()
1303 since OS X can have both. Patch from Jacob Berkman,
1306 2002-05-01 jacob berkman <jacob@ximian.com>
1308 * configure.in: fix typo on 64-bit printf formatting string
1309 configure message (fixes #80389)
1311 2002-04-29 Pablo Saratxaga <pablo@mandrakesoft.com>
1313 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
1315 2002-04-19 Tor Lillqvist <tml@iki.fi>
1317 * glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
1318 note to the gtk-doc comment.
1320 * glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
1321 blocks. It's enough to have them in gspawn.c.
1323 2002-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1325 * gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
1327 2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1329 * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
1330 for all threads leaving it. (#78348)
1332 2002-04-11 Matthias Clasen <maclas@gmx.de>
1334 * tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
1335 stuff fed to g_print.
1337 2002-04-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1339 * tests/gio-test.c, tests/markup-test.c: Use gsize instead of
1340 gint. From Miroslaw Dobrzanski-Neumann
1341 <mne@mosaic-ag.com>. (#77982)
1343 2002-04-08 Stanislav Brabec <utx@penguin.cz>
1345 * cs.po: Added Czech (cs) to ALL_LINGUAS.
1347 2002-03-31 Hasbullah Bin Pit <sebol@ikhlas.com>
1349 * configure.in: Added Malay (ms)to ALL_LINGUAS.
1351 2002-03-29 Tor Lillqvist <tml@iki.fi>
1353 * glib/glib.def: Add g_convert_init.
1355 Thu Mar 28 18:25:14 2002 Owen Taylor <otaylor@redhat.com>
1359 * configure.in: Version 2.0.1, interface, binary age 1.
1361 Thu Mar 28 18:22:53 2002 Owen Taylor <otaylor@redhat.com>
1363 * README: Remove warning about g_print, etc, encoding.
1367 * glib/gmessages.c (g_log_default_handler): Use %lu
1368 (plus a cast) when printing out pid_t arguments.
1369 (#76770, Morten Welinder)
1371 * glib/gstrfuncs.c (g_strdup_vprintf): Check the
1372 result of vasprintf(), return NULL on failure.
1373 (#76802, Akira Tagoh)
1375 * tests/testglib.c (TEST): Supress a warning with
1378 Thu Mar 28 20:31:51 2002 Tim Janik <timj@gtk.org>
1382 (g_printerr): convert prtinf() strings to local charset
1383 when writing them to stdout or stderr.
1385 Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
1388 major cleanups. introduced _g_log_fallback_handler() to handle
1389 recursive messages which really doesn't call any GLib functions.
1390 this allowes the default handler to use normal GLib functions and
1391 also fixes user supplied log level handlers.
1392 fixed locking issues, based on a patch from Sebastian Willhelmi,
1393 attached to #74356. translate log messages from UTF-8, based
1394 on the same patch. save fatal and recursion flags across flag
1395 loop. use new integer format code from above patch.
1396 move GLib functions out of locked mutex state to avoid deadlocks.
1397 move the level prefix and filedescriptor logic into mklevel_prefix().
1398 move _g_debug_init() into a place where we can figure and handle
1401 Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
1403 * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
1404 qualifier from __asm__ statements... GCC since at least
1405 2.96 has assumed no side effects automaticaly, and gcc-3.1
1406 will warn about this usage. (#73308, Cody Russell)
1408 Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
1410 * glib/gmem.c (g_mem_chunk_reset): Fix problem where
1411 if g_mem_chunk_reset() is called on an alloc-only
1412 memchunk, then a useles GTree was created.
1414 Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
1416 * glib/gconvert.c (open_converter): Try to work around segfaults
1417 on Solaris if NULL is passed for outbuf... supposedly gchar
1418 *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
1420 Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
1422 * glib/gfileutils.c (get_contents_regfile): Close the
1423 file descriptor. (#75507, Matthias Clasen)
1425 Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
1427 * configure.in: Use $PKG_CONFIG, not pkg-config.
1428 (LEE Sau Dan, #75572)
1430 2002-03-20 Sven Neumann <sven@gimp.org>
1432 * glib/ghash.c (g_hash_table_resize): avoid repeated call of
1433 g_spaced_primes_closest() by moving it out of the CLAMP macro
1434 (spotted by Salmaso Raffaele).
1436 2002-03-17 Tor Lillqvist <tml@iki.fi>
1438 * README.win32: Add MSVC-specific text by Hans Breuer.
1440 2002-03-16 Tor Lillqvist <tml@iki.fi>
1442 * glib/giowin32.c: Some debugging output formatting changes. The
1443 following changes fix a problem with buffered GIOChannels, noticed
1444 with the help of Owen's test program, thanks! (#59969)
1445 (g_io_win32_prepare): Return value that takes the buffer condition
1446 into account, like g_io_unix_prepare() does.
1447 (g_io_win32_check): Ditto, like g_io_unix_check().
1448 (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
1450 Thu Mar 14 17:37:45 2002 Owen Taylor <otaylor@redhat.com>
1452 * glib/giochannel.c (g_io_channel_write_chars): Fix some
1453 gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
1455 2002-03-14 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1457 * glib/gmessages.c: Fixed threading issues brought up by
1458 #74577. Make g_log_find_domain, g_log_domain_new,
1459 g_log_domain_check_free and g_log_domain_get_handler require being
1460 called with g_messages_lock held and remove all internal locking
1461 in them. Then added proper locking to g_log_set_handler,
1462 g_log_remove_handler and g_logv. Problem spotted by Miroslaw
1463 Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
1465 2002-03-13 Erwann Chenede <erwann.chenede@sun.com>
1467 glib/gen-unicode-tables.pl
1468 glib/gunidecomp.h : fixed cast/type problems to
1469 avoid warnings (with forte compiler) (#73898)
1471 2002-03-12 Alexander Larsson <alla@lysator.liu.se>
1474 Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
1475 use instead. Add g_convert_init() that calls have_broken_filenames()
1477 * gthread/gthread-impl.c:
1478 Have g_thread_init call g_convert_init.
1480 2002-03-11 Matthias Clasen <maclas@gmx.de>
1482 * glib/gstrfuncs.c (g_strtod):
1485 (g_ascii_formatd): Doc formatting fixes.