1 2002-11-28 Matthias Clasen <maclas@gmx.de>
3 * configure.in: Fix the gtk-doc version check.
5 2002-11-27 Matthias Clasen <maclas@gmx.de>
7 * glib/gmessages.h: Use G_LIKELY without surrounding parentheses
8 in g_assert() and g_return_[val]_if_fail() so that we always trigger
9 the gcc warning about "assignment used as truth value".
11 * glib/gmacros.h: Always put parentheses in G_LIKELY and G_UNLIKELY.
13 2002-11-26 Matthias Clasen <maclas@gmx.de>
15 * glib/gmessages.h: Only use G_LIKELY in g_assert() and
16 g_return_[val]_if_fail() if it is actually doing something.
18 2002-11-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
20 * glib/grand.c, gthread/gthread-impl.c, tests/rand-test.c:
21 Changed the seeding algorithm. Old behaviour can be achived by
22 setting envvar G_RANDOM_VERSION to "2.0". (#99262)
24 * docs/reference/glib/glib-docs.sgml,
25 docs/reference/glib/Makefile.am: Renamed
26 docs/reference/glib/changes-2.0.sgml to
27 docs/reference/glib/changes.sgml and added section for changes
28 from 2.0 to 2.2 (Also corrected 1.0 to 1.2).
30 * README.in, docs/reference/glib/running.sgml,
31 docs/reference/glib/tmpl/random_numbers.sgml,
32 docs/reference/glib/changes.sgml: Added notes about the new
35 * configure.in: Make CPPFLAGS, not CFLAGS, include
36 G_THREAD_CFLAGS. CFLAGS is used while linking too and thus GLib
37 programs would link to the threads library on some platforms. Also
38 fixed a bug manifesting through this change. (#77981)
40 2002-11-26 Matthias Clasen <maclas@gmx.de>
42 * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
43 and G_UNLIKELY. (Reported by Dan Mills)
45 2002-11-25 Matthias Clasen <maclas@gmx.de>
47 * glib/gfileutils.c (g_build_path):
48 (g_build_filename): Document that the varargs must be
49 NULL-terminated. (#99510)
51 * glib/gmessages.h (g_assert):
53 (g_return_val_if_fail): Remove the (no longer effective) empty
56 * glib/gmacros.h: Change the definition of G_LIKELY, so that
57 g_return_if_fail() and friends still trigger a gcc warning if
58 the expr is an assignment.
60 2002-11-23 Matthias Clasen <maclas@gmx.de>
62 * configure.in: Generate docs/reference/*/version.xml.
64 * glib/gdir.h: Add Copyright notice.
66 2002-11-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
68 * configure.in: Fixed typo: PTHREAD_PRIO_MIN ->
69 PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)
71 Fri Nov 22 09:39:09 2002 Owen Taylor <otaylor@redhat.com>
73 * glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
74 definition which wasn't supposed to be committed
77 Thu Nov 21 16:19:21 2002 Owen Taylor <otaylor@redhat.com>
79 * glib/ghash.c: Patch from Morten Welinder to
80 make ghash.c properly obey DISABLE_MEM_POOLS. (#96600)
82 Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
84 * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
87 2002-11-21 Tor Lillqvist <tml@iki.fi>
89 * config.h.win32.in: Update to match what is currently produced by
92 * configure.in: Remove superfluous spaces on two shell variable
93 assignment lines. Don't define HAVE_GOOD_PRINTF as 0 if we don't
94 have a good printf, it is tested with #ifdef.
96 * glib/glib.def: Add new functions.
98 * glib/Makefile.am: If !HAVE_GOOD_PRINTF, add libtrio.la to LIBADD
102 * gmodule/gmodule.rc.in
103 * gobject/gobject.rc.in
104 * gthread/gthread.rc.in
105 * {glib,gmodule,gobject,gthread}/makefile.{mingw,msc}.in:
106 Hardcode 2.0 in the names, as that is what Makefile.am does.
108 2002-11-21 Matthias Clasen <maclas@gmx.de>
110 Include a printf implementation supporting C99 snprintf and SUS
111 positional parameters: (#79488)
114 * glib/gspawn-win32.c:
117 * glib/gbacktrace.c: Use _g_printf wrappers.
119 * glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
120 snprintf semantics now.
122 * glib/gmessages.c (printf_string_upper_bound): No longer needed,
123 since we can assume C99 snprintf semantics now.
126 * acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
127 printf supports SUS positional parameters.
129 * configure.in: New option --enable-included-printf to force
130 compilation of trio; otherwise trio is compiled if the system
131 printf misses either C99 snprintf semantics of SUS positional
134 * glib/Makefile.am (SUBDIRS): Conditionally compile trio.
135 (libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
136 (glibsubinclude_HEADERS): Add gprintf.h.
138 * glib/gprintfint.h: New private wrapping either system printf
139 or trio printf variants in _g_printf wrappers for use inside glib.
141 * glib/gprintf.h: New public header declaring g_printf variants.
142 * glib/gprintf.c: Corresponding implementations.
144 * glib/trio/*: New directory, containing the trio-1.9 sources.
146 2002-11-20 Matthias Clasen <maclas@gmx.de>
148 * glib/gmessages.h (g_return_if_fail):
149 (g_return_val_if_fail): Use G_LIKELY. (#69022)
151 * glib/gmacros.h (G_LIKELY):
152 (G_UNLIKELY): New macros for hinting the compiler about the
153 expected result of expressions. For gcc 3.x, define these
154 using __builtin_expect. (#69022)
156 Tue Nov 19 14:38:18 2002 Owen Taylor <otaylor@redhat.com>
158 * glib/gstrfuncs.c (g_ascii_strtoull): Fix
159 strtull/strtoull type in docs (#99012, Morten
160 Welinder.) Add copyright information for code
163 2002-11-18 Tor Lillqvist <tml@iki.fi>
165 * glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
166 G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
167 flag is not set, don't call DuplicateHandle() on the handle
168 returned by the helper process, and set the "child pid" returned
169 to the called to zero. Close the handle to the helper process in
172 * glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
173 behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
175 2002-11-18 Tor Lillqvist <tml@iki.fi>
177 [Win32] Fix the asynchronous g_spawn* to return the process handle
178 of the started program properly. (Note: not the process id. The
179 spawn*() functions in the C runtime return the created process's
180 handle. There doesn't seem to be any way to get the process id of
181 a child process if you have the handle. But then, the process
182 handle usually is more useful anyway.)
184 * glib/gspawn-win32-helper.c (WinMain): If the spawning of the
185 child process succeeded, and if asynchronous spawn (P_NOWAIT),
186 write the result handle up to the parent process, waiting to read
187 it in do_spawn_with_pipes().
189 * glib/gspawn-win32.c (do_spawn): Use return value from spawning
190 the helper. If it is -1 the helper wasn't found or couldn't be run
191 for some reason. Otherwise it is the helper's process handle.
193 (g_spawn_async_with_pipes): Pass the child_pid parameter on to
194 do_spawn_with_pipes().
196 (do_spawn_with_pipes): Take also a child_pid parameter. If
197 do_spawn() returned -1, fail immediately. Otherwise make the
198 handle passed to us by the helper process into a handle valid in
199 this process by calling DuplicateHandle().
201 2002-11-17 Tor Lillqvist <tml@iki.fi>
203 * glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
204 G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
205 on Windows, at least not now. Always pass dont_wait as TRUE to
206 do_spawn_with_pipes(). The semantics of the dont_wait parameter is
207 very different from the semantics of the intermediate_child
208 parameter to fork_exec_with_pipes() in the Unix version. This
209 fixes a serious bug, g_spawn_async() in fact behaved
212 (do_spawn_with_pipes, do_spawn): Rename from
213 fork_exec_with_pipes() and do_exec(), those names were from the
214 Unix bersion, and misleading.
216 (close_and_invalidate): Don't try to close invalid fds.
218 * glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
219 Windows behaviour. There is no fork(), so the child_setup()
220 function is in fact called in the parent.
222 * glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
225 * tests/spawn-test-win32-gui.c: New file. Test program to be
226 linked as a GUI application. Behaves differently depending on how
227 invoked (by spawn-test).
229 * tests/spawn-test.c (run_tests): On Win32, run the
230 spawn-test-win32-gui program, too, in several ways, synchronously
233 * tests/Makefile.am: Corresponding change.
235 Fri Nov 8 19:44:20 2002 Soeren Sandmann <sandmann@daimi.au.dk>
237 * docs/reference/glib/tmpl/arrays.sgml:
238 * docs/reference/glib/tmpl/arrays_byte.sgml:
239 * docs/reference/glib/tmpl/arrays_pointer.sgml:
240 * docs/reference/glib/tmpl/date.sgml:
241 * docs/reference/glib/tmpl/linked_lists_double.sgml:
242 * docs/reference/glib/tmpl/linked_lists_single.sgml:
243 * docs/reference/glib/tmpl/main.sgml:
244 * docs/reference/glib/tmpl/queue.sgml:
245 * docs/reference/glib/tmpl/random_numbers.sgml:
246 * docs/reference/glib/tmpl/relations.sgml:
247 * docs/reference/glib/tmpl/scanner.sgml:
248 * docs/reference/gobject/tmpl/gtype.sgml:
249 * docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
250 * glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
251 * glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
252 * glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
254 Trivial s/foo/foo_/ fixes to make <glib.h> includable with
255 -Wshadow without warnings (#91680)
257 Thu Nov 7 19:32:26 2002 Owen Taylor <otaylor@redhat.com>
259 * glib/gutils.[ch] (g_set/get_application_name):
260 Patch from Havoc Pennington to add functions for
261 setting and getting a human readable application
264 * configure.in: Up to version 2.1.3, since we'll
265 need to depend on last addition for GTK+.
267 2002-11-06 Tor Lillqvist <tml@iki.fi>
269 * glib/glib.def: Add g_main_thread_init.
271 2002-11-06 Matthias Clasen <maclas@gmx.de>
273 * glib/gstrfuncs.c (g_str_has_suffix):
274 (g_str_has_prefix): Minor doc markup fix.
276 Mon Nov 4 10:45:48 2002 Owen Taylor <otaylor@redhat.com>
278 * configure.in: Add -DG_DISABLE_CAST_CHECKS for
279 everything but --enable-debug.
281 * configure.in: Require pkg-config 0.14. (#97553)
283 Mon Nov 4 14:41:48 2002 Owen Taylor <otaylor@redhat.com>
285 * glib/gbsearcharray.c: Include config.h
286 so DISABLE_MEMPOOLS actually has an effect.
287 (#96437, Morten Welinder)
289 * tests/uri-test.c: Include <config.h>
291 2002-11-03 Dmitry G. Mastrukov <dmitry@taurussoft.org>
293 * configure.in: Added Belarusian to ALL_LINGUAS
295 2002-11-02 Daniel Elstner <daniel.elstner@gmx.net>
297 * glib/giochannel.c (g_io_channel_write_chars): Fix left_len
298 calculation in the from UTF-8 to UTF-8 case: left_len should
299 be the number of bytes left in the input buffer rather than
300 channel->write_buf. (#96373)
302 2002-10-27 Tor Lillqvist <tml@iki.fi>
304 * configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
307 * glib/gmain.c (g_poll): Fix for bug reported by Herman Bloggs
308 (http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00101.html)
309 and others. We waited for events only for GPollFDs whose events
310 field had G_IO_IN set. We need to wait also for events for
311 GPollFDs that have just G_IO_OUT set. Non-blocking sockets in the
312 process of being connect()ed are one such case. Also silence a
313 couple of gcc warnings.
315 Fri Oct 18 13:41:30 2002 Manish Singh <yosh@gimp.org>
317 * glib/giochannel.c (g_io_channel_read_line_backend): avoid
318 creating negative values out of unsigned values using MAX,
319 check to see if the result would be positive before doing
322 Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
324 * tests/iochannel-test.c: use gsize instead of int where appropriate
325 (64-bit cleanliness fix). Removed leftover line_term cruft.
327 Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
329 * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
330 add -DG_DISABLED_DEPRECATED
332 * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
333 tests/testglib.c test/tree-test.c tests/unicode-collate.c
334 tests/unicode-normalize.c: Deprecation cleanup
336 Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
338 * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
339 leak. (#94550, Sebastian Rittau)
341 Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
343 * glib/gcompletion.[ch] (g_completion_complete): Make
344 prefix argument const. (#91662, Gustavo Carneiro)
346 Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
348 * tests/mainloop-test.c (adder_response): Fix a minor memory
351 Sat Oct 12 21:30:41 2002 Tim Janik <timj@gtk.org>
353 * merged up from glib-2-0:
355 * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
356 (g_ascii_strtoull): new function, acting like strtoull(3) in the C
359 * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
360 support storing 64bit values in GTokenValue by
361 using g_ascii_strtoull().
363 Sat Oct 12 12:34:22 2002 Soeren Sandmann <sandmann@daimi.au.dk>
365 * glib/gtree.c (g_tree_search), glib/gspawn.c
366 (g_spawn_async_with_pipes):
368 Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
371 Thu Oct 10 23:27:02 2002 Tim Janik <timj@gtk.org>
373 * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
374 print out "<memory>" instead of completely skipping input specification
375 and thusly loosing error line information.
377 Sun Sep 29 12:15:44 2002 Manish Singh <yosh@gimp.org>
379 * tests/mainloop-test.c: use gsize instead of int where appropriate
380 (64-bit cleanliness fix)
382 2002-09-29 Tor Lillqvist <tml@iki.fi>
384 * configure.in: Instead of forcing -fnative-struct into CFLAGS
385 when using gcc for Win32, check for gcc version 3.x which uses
386 -mms-bitfields instead. Also check if either of these switches is
387 actually available at all, and warn if not. Thanks to Soren
388 Andersen for the inspiration.
390 * HACKING: Say we require autoconf 2.52 as that is what
393 2002-09-23 Arvind Samptur <arvind.samptur@wipro.com>
394 * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
395 we need to reap it to avoid a zombie. This would
396 happen in case of g_spawn_sync. Fixes #92658
398 2002-09-20 Matthias Clasen <maclas@gmx.de>
400 * glib/gscanner.c (g_scanner_msg_handler): Don't print
401 scanner->input_name when it is NULL. (#93752)
403 2002-09-06 Havoc Pennington <hp@redhat.com>
405 * autogen.sh: automake 1.4
407 2002-09-01 Soeren Sandmann <sandmann@daimi.au.dk>
409 * docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:
411 Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
413 2002-08-26 Tor Lillqvist <tml@iki.fi>
415 * configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
416 Cygwin (#91696, Masahiro Sakai).
418 Tue Aug 20 16:01:03 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
420 * glib/gconvert.c (strdup_len): validate 'len' argument properly
421 for the case that input string is not null-terminated. (#91222)
423 2002-08-10 Gustavo Noronha Silva <kov@debian.org>
425 * configure.in: added pt_BR to ALL_LINGUAS
427 2002-08-07 Matthias Clasen <maclas@gmx.de>
429 * glib/gmarkup.c (g_markup_parse_context_get_element):
430 Use g_return_val_if_fail, no g_return_if_fail.
432 2002-08-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
434 * glib/gthread.c: Set the normal PID surrogate priority according
435 to getpid() to avoid errors for niced processes. (#86116)
437 * gthread/gthread-impl.c, gthread/gthread-posix.c,
438 gthread/gthread-solaris.c: Do the same for the posix/dce
439 implementation. Solaris still needs to set priority of the main
440 thread, because all unbound threads will schedule according to
441 that value and it defaults to 0 (the minimal value).
443 * glib/gmain.c: Factor out g_main_context_init_pipe from
444 g_main_context_new to initialize the wakeup pipe of a
445 context. Call that function from g_main_context_new if threads are
446 initialized and for all contexts when threads are initialized
447 in g_main_thread_init. (#86872)
449 * gthread/gthread-impl.c: Call g_main_thread_init. (#86872)
451 Thu Jul 25 14:23:15 2002 Owen Taylor <otaylor@redhat.com>
453 * glib/gfileutils.c: Clarify the behavior of g_build_path()
454 for empty elements and for leading and trailing copies
455 of the separator in the docs.
457 * glib/gfileutils.c: Fix problems with leading elements
458 consisting only of "/" characters. (#85928, Guillaume Chazarain)
460 * tests/strfunc-test.c (main): Add more test cases
461 for g_build_filename().
463 2002-07-26 Matthias Clasen <maclas@gmx.de>
466 * glib/gutf8.c (g_utf8_strreverse): New function to revert
468 * glib/gpattern.c (g_utf8_reverse): Gone, replaced by
469 g_utf8_strreverse. (#87725)
471 Thu Jul 25 20:57:20 2002 Owen Taylor <otaylor@redhat.com>
473 * glib/giochannel.c (g_io_channel_read_line): Fix
474 docs for @str_return to conform to the main docs
475 and the implementation as to whether the terminator
476 is included. (#87964, Jacob Berkman)
478 Thu Jul 25 19:52:41 2002 Owen Taylor <otaylor@redhat.com>
480 * glib/guniprop.c (real_tolower): Handle the
481 end of the string properly when max_len is set.
482 (#88545, Morten Welinder.) Rename the next_t
483 variable to next_type to make cc-mode happy.
485 * glib/gconvert.c (g_iconv_open): Fix missing
486 label from previous commit.
488 Thu Jul 25 19:41:03 2002 Owen Taylor <otaylor@redhat.com>
490 * glib/giochannel.c (g_io_channel_get_flags): Fix
491 incorrect return value in g_return_val_if_fail
492 (#85545, David L. Cooper II)
494 Thu Jul 25 19:12:43 2002 Owen Taylor <otaylor@redhat.com>
496 * glib/giochannel.c (g_io_channel_set_encoding): Clarify
497 that only one of the conditions listed in the docs
498 need to be true, not all of them. (#87176,
501 * glib/giochannel.c (g_io_channel_read_line): Fix
502 description of the return value. (#87754, Manuel Clos)
504 Thu Jul 25 19:02:53 2002 Owen Taylor <otaylor@redhat.com>
506 * glib/gmain.c (g_timeout_add): Remove reference
507 in the docs to @notify parameter. (#87768,
510 Thu Jul 25 17:57:07 2002 Owen Taylor <otaylor@redhat.com>
512 * glib/gconvert.c (g_iconv_open): Document the
513 (GIConv)-1 return value on failure. (#87559,
516 * glib/gconvert.c (g_iconv_open): Fix potential
517 problems with the assumption that (GIConv)(iconv_t)-1
518 is the same as (GIConv)-1.
520 2002-07-15 Matthias Clasen <maclas@gmx.de>
523 * glib/gmarkup.c (g_markup_parse_context_get_element): New
524 function to get the currently open element. (#70448)
526 2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
528 * tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
529 throughout the files, which didn't already have them. (#87312)
531 2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
533 * configure.in: Made the thread flags determination tests first
534 check for the canonical form -pthread[s], then for other
535 possibilities. Also recognize some more platforms. Modeled after
536 patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
539 * configure.in: Fixed bugs in posix thread priority
540 resolution. Also added AIX priorities. Fix from
541 Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)
543 * gthread/gthread-solaris.c: Use thr_min_stack() instead of
544 sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
545 g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
546 the stack might be to small for any nontrivial thread. Discovered
547 on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
549 2002-07-03 Anders Carlsson <andersca@gnu.org>
551 * configure.in: Add a forgotten trailing ` in the
552 GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
554 2002-07-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
556 * configure.in: Set binary age to 0 to make it compile.
558 * configure.in: Improve checks for dce/posix threads to also do
559 the right thing, if the thread functions are not declared in
560 pthread.h. Idea from Miroslaw Dobrzanski-Neumann
561 <mne@mosaic-ag.com> in #77981.
563 2002-07-01 Anders Carlsson <andersca@gnu.org>
565 * configure.in: Up version to 2.1.0.
567 2002-07-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
569 * glib/garray.h: Add parenthesis to protect macro
570 argument. Spotted by Sam Couter <sam@topic.com.au>. (#86826)
572 2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
574 * glib/gmessages.h (g_assert, g_assert_not_reached,
575 g_return_if_fail, g_return_val_if_fail): In case of
576 G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
577 "G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
578 gcc prior to 3.0. (#86664)
580 2002-06-26 Yanko Kaneti <yaneti@declera.com>
582 * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
584 Thu Jun 13 16:12:04 2002 Owen Taylor <otaylor@redhat.com>
586 * glib/gmain.c (struct _GTimeoutSource): Make
587 interval unsigned to match g_timeout_source_new().
590 * glib/gmain.c (g_timeout_prepare): Add some
591 extra gymnastics to avoid signed/unisgned integer
594 Thu Jun 13 15:57:46 2002 Owen Taylor <otaylor@redhat.com>
596 * INSTALL.in: Add a note about the deficiency
597 of Tru64 iconv. (#81699, Manuel Op de Coul)
599 Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
601 * tests/patterntest.c (test_compilation)
602 * glib/gmem.c (profiler_try_realloc): A couple
603 of 64-bit printf format fix from George Lebl.
606 * glib/gconvert.c (open_converter): Fix gsize/gint
607 mixup for g_iconv() arguments. (#83270,
610 2002-06-03 Matthias Clasen <maclas@gmx.de>
612 * glib/gwin32.c (g_win32_get_package_installation_directory):
613 Replace homegrown "hash" entity by standard ISO entity "num".
615 2002-05-26 Matthias Clasen <maclas@gmx.de>
617 * glib/gmain.c: Remove references to nonexisting functions
618 g_source_set_callback_closure(), g_source_poll(), g_source_add()
621 * glib/gdir.c (g_dir_open): Typo fix in docs.
623 * glib/gasyncqueue.c (g_async_queue_lock):
624 (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
627 * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
629 * glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
631 * glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
633 2002-05-23 Havoc Pennington <hp@redhat.com>
635 * glib/gspawn.c (fork_exec_with_pipes): on success, close the
636 pipes from the child. Fix from Tim.
638 2002-05-22 jacob berkman <jacob@ximian.com>
640 * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
642 Wed May 22 15:40:47 2002 Owen Taylor <otaylor@redhat.com>
644 * README.in: Remove notes about now-fixed-bugs.
646 * m4macros/glib-gettext.m4 acinclude.m4: Get rid
647 of AC_MSG_NOTICE() usage, since some broken systems
648 (Hi Debian!) might not be using autoconf-2.5x for
649 downstream packages even though we require it for
652 * INSTALL.in: Add a note about installing extra
653 converters for Solaris.
655 * glib/gutils.h (g_bit_nth_msf): Fix termination
656 condition. (#82582, Paolo Molaro)
658 Tue May 21 15:51:17 2002 Owen Taylor <otaylor@redhat.com>
660 * configure.in: $with_libiconv, not $with_iconv.
662 Mon May 20 18:02:46 2002 Owen Taylor <otaylor@redhat.com>
664 * configure.in: Move iconv tests before gettext
667 * m4macros/glib-gettext.m4 acinclude.m4: If we can't
668 link to gettext, try adding in -liconv. (#80076,
671 * m4macros/glib-gettext.m4 acinclude.m4: Suppress
672 warnings about xgettext not being GNU gettext when
673 libintl wasn't found at all.
674 (#79016, Andrew P. Lentvorski, Jr.)
676 2002-05-21 Matthias Clasen <maclas@gmx.de>
678 * glib/gmarkup.c (g_markup_parse_context_parse): Added
679 proper support for CDATA sections.
681 2002-05-20 jacob berkman <jacob@ximian.com>
683 * glib/gdir.c: include sys/types.h before dirent.h to build on
684 darwin (fixes #72859)
686 Mon May 20 15:35:59 2002 Owen Taylor <otaylor@redhat.com>
688 * glib/gfileutils.c (get_contents_regfile): Fix double
689 close of file descriptor on error. (#82139, Wayne Schuller)
691 * glib/gspawn.c (close_and_invalidate): Don't close
692 fd's that have already been closed. (Fix from Michael
695 * glib/giochannel.c (g_io_channel_close): If not flushing,
696 dump the contents of the write buffers, so we won't try
697 to write them to an invalid fd later. (Patch from Ron Steinke,
698 fixing #78290, Andreas Persenius.)
700 2002-05-18 Matthias Clasen <maclas@gmx.de>
702 * tests/markups/fail-36.gmarkup:
703 * tests/markups/fail-35.gmarkup:
704 * tests/markups/valid-8.gmarkup:
705 * tests/markups/valid-7.gmarkup:
706 * tests/markups/valid-6.gmarkup:
707 * tests/markups/valid-5.gmarkup: New testcases.
709 * tests/markup-test.c (passthrough_handler):
710 (text_handler): Don't ignore the text_len parameter.
712 * glib/gmarkup.c (find_current_text_end): Don't hang on embedded
714 (g_markup_parse_context_parse): Fix passthrough handling to
715 correctly skip processing instructions, comments, doctype
716 declarations and CDATA marked sections. (#81977)
718 Sat May 18 00:21:51 2002 Tim Janik <timj@gtk.org>
722 * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
725 2002-05-17 Tor Lillqvist <tml@iki.fi>
727 * config.h.win32.in: Match new additions in a configure-produced
730 * glibconfig.h.win32.in: gssize and gsize as in a
731 configure-produced glibconfig.h.
733 * glib/glib.def: Add new functions.
735 Thu May 16 12:24:00 2002 Owen Taylor <otaylor@redhat.com>
737 * acinclude.m4 m4macros/glib-gettext.m4: Incorporate
738 AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
739 dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)
741 2002-05-14 Alex Larsson <alexl@redhat.com>
745 New functions g_str_has_suffix and g_str_has_prefix.
747 * tests/string-test.c: (main):
748 Test the new functions.
750 Mon May 13 23:20:00 2002 Owen Taylor <otaylor@redhat.com>
752 * autogen.sh (have_gettext): Add a check for GNU gettext.
753 (Pointed out by Dan Winship in #59386.)
755 Mon May 13 11:55:33 2002 Owen Taylor <otaylor@redhat.com>
757 * configure.in acglib.m4: If sizeof(int) == sizeof(long)
758 run compilation tests to determine which way gsize should
759 be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
761 Mon May 13 11:42:23 2002 Owen Taylor <otaylor@redhat.com>
763 * glib/libcharset/*: Update from libcharset CVS.
764 Includes additional encodings for Solaris (#80396,
767 * configure.in: Add getc_unlocked to CHECK_FUNCS().
769 * glib/gmessages.c (strdup_convert): If
770 g_convert_with_fallback() fails, print the error
771 message to stderr the first time, then return
772 the original string. (#78197)
774 2002-05-10 Naba Kumar <kh_naba@users.sourceforge.net>
776 * configure.in: Added "hi" to ALL_LINGUAS.
778 2002-05-08 Michael Natterer <mitch@gimp.org>
780 * configure.in: fixed yesterdays fix for cross compiling: simply
781 check the variable "cross_compiling" which gets set by autoconf.
783 2002-05-07 Matthias Clasen <maclas@gmx.de>
785 * glib/gmarkup.c (unescape_text): Report unfinished entity
786 references as errors rather than running into an assert. (#80441)
788 2002-05-07 Michael Natterer <mitch@gimp.org>
790 * configure.in: added a new conditional CROSS_COMPILING which
791 indicates ($build != $host). If it is set, look for
792 glib-genmarshal in PATH. Error out if it was not found.
794 Tue May 7 11:24:22 2002 Owen Taylor <otaylor@redhat.com>
796 Fixes for #79347, Ron Arts.
798 * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
799 don't g_return_if_fail().
801 * tests/qsort-test.c (main): Add a 0 element test.
803 * glib/garray.c (g_[ptr_]array_sort_with[_data]):
804 Remove invalid assertions that array->pdata != NULL ..
805 it's NULL for 0 elements which is a valid case.
807 Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
809 * glib/gbacktrace.h: Exclude OSF from alpha definition
810 of G_BREAKPOINT(), since the assembler apparently
811 doesn't support bpt. (#77852, Gareth Pierce) [from stable]
813 Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
815 [ merged from stable ]
817 * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
819 * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
820 compiling "what went wrong" test case. (#79330)
822 * m4macros/glib-2.0.m4: Remove reference to editing
823 pkg-config script. (From Jim Gettys)
825 * configure.in: (Look for dyld interfaces before dlopen()
826 since OS X can have both. Patch from Jacob Berkman,
829 2002-05-01 jacob berkman <jacob@ximian.com>
831 * configure.in: fix typo on 64-bit printf formatting string
832 configure message (fixes #80389)
834 2002-04-29 Pablo Saratxaga <pablo@mandrakesoft.com>
836 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
838 2002-04-19 Tor Lillqvist <tml@iki.fi>
840 * glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
841 note to the gtk-doc comment.
843 * glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
844 blocks. It's enough to have them in gspawn.c.
846 2002-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
848 * gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
850 2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
852 * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
853 for all threads leaving it. (#78348)
855 2002-04-11 Matthias Clasen <maclas@gmx.de>
857 * tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
858 stuff fed to g_print.
860 2002-04-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
862 * tests/gio-test.c, tests/markup-test.c: Use gsize instead of
863 gint. From Miroslaw Dobrzanski-Neumann
864 <mne@mosaic-ag.com>. (#77982)
866 2002-04-08 Stanislav Brabec <utx@penguin.cz>
868 * cs.po: Added Czech (cs) to ALL_LINGUAS.
870 2002-03-31 Hasbullah Bin Pit <sebol@ikhlas.com>
872 * configure.in: Added Malay (ms)to ALL_LINGUAS.
874 2002-03-29 Tor Lillqvist <tml@iki.fi>
876 * glib/glib.def: Add g_convert_init.
878 Thu Mar 28 18:25:14 2002 Owen Taylor <otaylor@redhat.com>
882 * configure.in: Version 2.0.1, interface, binary age 1.
884 Thu Mar 28 18:22:53 2002 Owen Taylor <otaylor@redhat.com>
886 * README: Remove warning about g_print, etc, encoding.
890 * glib/gmessages.c (g_log_default_handler): Use %lu
891 (plus a cast) when printing out pid_t arguments.
892 (#76770, Morten Welinder)
894 * glib/gstrfuncs.c (g_strdup_vprintf): Check the
895 result of vasprintf(), return NULL on failure.
896 (#76802, Akira Tagoh)
898 * tests/testglib.c (TEST): Supress a warning with
901 Thu Mar 28 20:31:51 2002 Tim Janik <timj@gtk.org>
905 (g_printerr): convert prtinf() strings to local charset
906 when writing them to stdout or stderr.
908 Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
911 major cleanups. introduced _g_log_fallback_handler() to handle
912 recursive messages which really doesn't call any GLib functions.
913 this allowes the default handler to use normal GLib functions and
914 also fixes user supplied log level handlers.
915 fixed locking issues, based on a patch from Sebastian Willhelmi,
916 attached to #74356. translate log messages from UTF-8, based
917 on the same patch. save fatal and recursion flags across flag
918 loop. use new integer format code from above patch.
919 move GLib functions out of locked mutex state to avoid deadlocks.
920 move the level prefix and filedescriptor logic into mklevel_prefix().
921 move _g_debug_init() into a place where we can figure and handle
924 Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
926 * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
927 qualifier from __asm__ statements... GCC since at least
928 2.96 has assumed no side effects automaticaly, and gcc-3.1
929 will warn about this usage. (#73308, Cody Russell)
931 Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
933 * glib/gmem.c (g_mem_chunk_reset): Fix problem where
934 if g_mem_chunk_reset() is called on an alloc-only
935 memchunk, then a useles GTree was created.
937 Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
939 * glib/gconvert.c (open_converter): Try to work around segfaults
940 on Solaris if NULL is passed for outbuf... supposedly gchar
941 *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
943 Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
945 * glib/gfileutils.c (get_contents_regfile): Close the
946 file descriptor. (#75507, Matthias Clasen)
948 Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
950 * configure.in: Use $PKG_CONFIG, not pkg-config.
951 (LEE Sau Dan, #75572)
953 2002-03-20 Sven Neumann <sven@gimp.org>
955 * glib/ghash.c (g_hash_table_resize): avoid repeated call of
956 g_spaced_primes_closest() by moving it out of the CLAMP macro
957 (spotted by Salmaso Raffaele).
959 2002-03-17 Tor Lillqvist <tml@iki.fi>
961 * README.win32: Add MSVC-specific text by Hans Breuer.
963 2002-03-16 Tor Lillqvist <tml@iki.fi>
965 * glib/giowin32.c: Some debugging output formatting changes. The
966 following changes fix a problem with buffered GIOChannels, noticed
967 with the help of Owen's test program, thanks! (#59969)
968 (g_io_win32_prepare): Return value that takes the buffer condition
969 into account, like g_io_unix_prepare() does.
970 (g_io_win32_check): Ditto, like g_io_unix_check().
971 (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
973 Thu Mar 14 17:37:45 2002 Owen Taylor <otaylor@redhat.com>
975 * glib/giochannel.c (g_io_channel_write_chars): Fix some
976 gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
978 2002-03-14 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
980 * glib/gmessages.c: Fixed threading issues brought up by
981 #74577. Make g_log_find_domain, g_log_domain_new,
982 g_log_domain_check_free and g_log_domain_get_handler require being
983 called with g_messages_lock held and remove all internal locking
984 in them. Then added proper locking to g_log_set_handler,
985 g_log_remove_handler and g_logv. Problem spotted by Miroslaw
986 Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
988 2002-03-13 Erwann Chenede <erwann.chenede@sun.com>
990 glib/gen-unicode-tables.pl
991 glib/gunidecomp.h : fixed cast/type problems to
992 avoid warnings (with forte compiler) (#73898)
994 2002-03-12 Alexander Larsson <alla@lysator.liu.se>
997 Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
998 use instead. Add g_convert_init() that calls have_broken_filenames()
1000 * gthread/gthread-impl.c:
1001 Have g_thread_init call g_convert_init.
1003 2002-03-11 Matthias Clasen <maclas@gmx.de>
1005 * glib/gstrfuncs.c (g_strtod):
1008 (g_ascii_formatd): Doc formatting fixes.