1 2002-11-26 Matthias Clasen <maclas@gmx.de>
3 * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
4 and G_UNLIKELY. (Reported by Dan Mills)
6 2002-11-25 Matthias Clasen <maclas@gmx.de>
8 * glib/gfileutils.c (g_build_path):
9 (g_build_filename): Document that the varargs must be
10 NULL-terminated. (#99510)
12 * glib/gmessages.h (g_assert):
14 (g_return_val_if_fail): Remove the (no longer effective) empty
17 * glib/gmacros.h: Change the definition of G_LIKELY, so that
18 g_return_if_fail() and friends still trigger a gcc warning if
19 the expr is an assignment.
21 2002-11-23 Matthias Clasen <maclas@gmx.de>
23 * configure.in: Generate docs/reference/*/version.xml.
25 * glib/gdir.h: Add Copyright notice.
27 2002-11-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
29 * configure.in: Fixed typo: PTHREAD_PRIO_MIN ->
30 PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)
32 Fri Nov 22 09:39:09 2002 Owen Taylor <otaylor@redhat.com>
34 * glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
35 definition which wasn't supposed to be committed
38 Thu Nov 21 16:19:21 2002 Owen Taylor <otaylor@redhat.com>
40 * glib/ghash.c: Patch from Morten Welinder to
41 make ghash.c properly obey DISABLE_MEM_POOLS. (#96600)
43 Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>
45 * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
48 2002-11-21 Tor Lillqvist <tml@iki.fi>
50 * config.h.win32.in: Update to match what is currently produced by
53 * configure.in: Remove superfluous spaces on two shell variable
54 assignment lines. Don't define HAVE_GOOD_PRINTF as 0 if we don't
55 have a good printf, it is tested with #ifdef.
57 * glib/glib.def: Add new functions.
59 * glib/Makefile.am: If !HAVE_GOOD_PRINTF, add libtrio.la to LIBADD
63 * gmodule/gmodule.rc.in
64 * gobject/gobject.rc.in
65 * gthread/gthread.rc.in
66 * {glib,gmodule,gobject,gthread}/makefile.{mingw,msc}.in:
67 Hardcode 2.0 in the names, as that is what Makefile.am does.
69 2002-11-21 Matthias Clasen <maclas@gmx.de>
71 Include a printf implementation supporting C99 snprintf and SUS
72 positional parameters: (#79488)
75 * glib/gspawn-win32.c:
78 * glib/gbacktrace.c: Use _g_printf wrappers.
80 * glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
81 snprintf semantics now.
83 * glib/gmessages.c (printf_string_upper_bound): No longer needed,
84 since we can assume C99 snprintf semantics now.
87 * acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
88 printf supports SUS positional parameters.
90 * configure.in: New option --enable-included-printf to force
91 compilation of trio; otherwise trio is compiled if the system
92 printf misses either C99 snprintf semantics of SUS positional
95 * glib/Makefile.am (SUBDIRS): Conditionally compile trio.
96 (libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
97 (glibsubinclude_HEADERS): Add gprintf.h.
99 * glib/gprintfint.h: New private wrapping either system printf
100 or trio printf variants in _g_printf wrappers for use inside glib.
102 * glib/gprintf.h: New public header declaring g_printf variants.
103 * glib/gprintf.c: Corresponding implementations.
105 * glib/trio/*: New directory, containing the trio-1.9 sources.
107 2002-11-20 Matthias Clasen <maclas@gmx.de>
109 * glib/gmessages.h (g_return_if_fail):
110 (g_return_val_if_fail): Use G_LIKELY. (#69022)
112 * glib/gmacros.h (G_LIKELY):
113 (G_UNLIKELY): New macros for hinting the compiler about the
114 expected result of expressions. For gcc 3.x, define these
115 using __builtin_expect. (#69022)
117 Tue Nov 19 14:38:18 2002 Owen Taylor <otaylor@redhat.com>
119 * glib/gstrfuncs.c (g_ascii_strtoull): Fix
120 strtull/strtoull type in docs (#99012, Morten
121 Welinder.) Add copyright information for code
124 2002-11-18 Tor Lillqvist <tml@iki.fi>
126 * glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
127 G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
128 flag is not set, don't call DuplicateHandle() on the handle
129 returned by the helper process, and set the "child pid" returned
130 to the called to zero. Close the handle to the helper process in
133 * glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
134 behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
136 2002-11-18 Tor Lillqvist <tml@iki.fi>
138 [Win32] Fix the asynchronous g_spawn* to return the process handle
139 of the started program properly. (Note: not the process id. The
140 spawn*() functions in the C runtime return the created process's
141 handle. There doesn't seem to be any way to get the process id of
142 a child process if you have the handle. But then, the process
143 handle usually is more useful anyway.)
145 * glib/gspawn-win32-helper.c (WinMain): If the spawning of the
146 child process succeeded, and if asynchronous spawn (P_NOWAIT),
147 write the result handle up to the parent process, waiting to read
148 it in do_spawn_with_pipes().
150 * glib/gspawn-win32.c (do_spawn): Use return value from spawning
151 the helper. If it is -1 the helper wasn't found or couldn't be run
152 for some reason. Otherwise it is the helper's process handle.
154 (g_spawn_async_with_pipes): Pass the child_pid parameter on to
155 do_spawn_with_pipes().
157 (do_spawn_with_pipes): Take also a child_pid parameter. If
158 do_spawn() returned -1, fail immediately. Otherwise make the
159 handle passed to us by the helper process into a handle valid in
160 this process by calling DuplicateHandle().
162 2002-11-17 Tor Lillqvist <tml@iki.fi>
164 * glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
165 G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
166 on Windows, at least not now. Always pass dont_wait as TRUE to
167 do_spawn_with_pipes(). The semantics of the dont_wait parameter is
168 very different from the semantics of the intermediate_child
169 parameter to fork_exec_with_pipes() in the Unix version. This
170 fixes a serious bug, g_spawn_async() in fact behaved
173 (do_spawn_with_pipes, do_spawn): Rename from
174 fork_exec_with_pipes() and do_exec(), those names were from the
175 Unix bersion, and misleading.
177 (close_and_invalidate): Don't try to close invalid fds.
179 * glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
180 Windows behaviour. There is no fork(), so the child_setup()
181 function is in fact called in the parent.
183 * glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
186 * tests/spawn-test-win32-gui.c: New file. Test program to be
187 linked as a GUI application. Behaves differently depending on how
188 invoked (by spawn-test).
190 * tests/spawn-test.c (run_tests): On Win32, run the
191 spawn-test-win32-gui program, too, in several ways, synchronously
194 * tests/Makefile.am: Corresponding change.
196 Fri Nov 8 19:44:20 2002 Soeren Sandmann <sandmann@daimi.au.dk>
198 * docs/reference/glib/tmpl/arrays.sgml:
199 * docs/reference/glib/tmpl/arrays_byte.sgml:
200 * docs/reference/glib/tmpl/arrays_pointer.sgml:
201 * docs/reference/glib/tmpl/date.sgml:
202 * docs/reference/glib/tmpl/linked_lists_double.sgml:
203 * docs/reference/glib/tmpl/linked_lists_single.sgml:
204 * docs/reference/glib/tmpl/main.sgml:
205 * docs/reference/glib/tmpl/queue.sgml:
206 * docs/reference/glib/tmpl/random_numbers.sgml:
207 * docs/reference/glib/tmpl/relations.sgml:
208 * docs/reference/glib/tmpl/scanner.sgml:
209 * docs/reference/gobject/tmpl/gtype.sgml:
210 * docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
211 * glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
212 * glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
213 * glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
215 Trivial s/foo/foo_/ fixes to make <glib.h> includable with
216 -Wshadow without warnings (#91680)
218 Thu Nov 7 19:32:26 2002 Owen Taylor <otaylor@redhat.com>
220 * glib/gutils.[ch] (g_set/get_application_name):
221 Patch from Havoc Pennington to add functions for
222 setting and getting a human readable application
225 * configure.in: Up to version 2.1.3, since we'll
226 need to depend on last addition for GTK+.
228 2002-11-06 Tor Lillqvist <tml@iki.fi>
230 * glib/glib.def: Add g_main_thread_init.
232 2002-11-06 Matthias Clasen <maclas@gmx.de>
234 * glib/gstrfuncs.c (g_str_has_suffix):
235 (g_str_has_prefix): Minor doc markup fix.
237 Mon Nov 4 10:45:48 2002 Owen Taylor <otaylor@redhat.com>
239 * configure.in: Add -DG_DISABLE_CAST_CHECKS for
240 everything but --enable-debug.
242 * configure.in: Require pkg-config 0.14. (#97553)
244 Mon Nov 4 14:41:48 2002 Owen Taylor <otaylor@redhat.com>
246 * glib/gbsearcharray.c: Include config.h
247 so DISABLE_MEMPOOLS actually has an effect.
248 (#96437, Morten Welinder)
250 * tests/uri-test.c: Include <config.h>
252 2002-11-03 Dmitry G. Mastrukov <dmitry@taurussoft.org>
254 * configure.in: Added Belarusian to ALL_LINGUAS
256 2002-11-02 Daniel Elstner <daniel.elstner@gmx.net>
258 * glib/giochannel.c (g_io_channel_write_chars): Fix left_len
259 calculation in the from UTF-8 to UTF-8 case: left_len should
260 be the number of bytes left in the input buffer rather than
261 channel->write_buf. (#96373)
263 2002-10-27 Tor Lillqvist <tml@iki.fi>
265 * configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
268 * glib/gmain.c (g_poll): Fix for bug reported by Herman Bloggs
269 (http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00101.html)
270 and others. We waited for events only for GPollFDs whose events
271 field had G_IO_IN set. We need to wait also for events for
272 GPollFDs that have just G_IO_OUT set. Non-blocking sockets in the
273 process of being connect()ed are one such case. Also silence a
274 couple of gcc warnings.
276 Fri Oct 18 13:41:30 2002 Manish Singh <yosh@gimp.org>
278 * glib/giochannel.c (g_io_channel_read_line_backend): avoid
279 creating negative values out of unsigned values using MAX,
280 check to see if the result would be positive before doing
283 Tue Oct 15 15:28:47 2002 Manish Singh <yosh@gimp.org>
285 * tests/iochannel-test.c: use gsize instead of int where appropriate
286 (64-bit cleanliness fix). Removed leftover line_term cruft.
288 Tue Oct 15 15:07:45 2002 Manish Singh <yosh@gimp.org>
290 * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
291 add -DG_DISABLED_DEPRECATED
293 * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
294 tests/testglib.c test/tree-test.c tests/unicode-collate.c
295 tests/unicode-normalize.c: Deprecation cleanup
297 Mon Oct 14 15:51:05 2002 Owen Taylor <otaylor@redhat.com>
299 * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
300 leak. (#94550, Sebastian Rittau)
302 Mon Oct 14 15:36:11 2002 Owen Taylor <otaylor@redhat.com>
304 * glib/gcompletion.[ch] (g_completion_complete): Make
305 prefix argument const. (#91662, Gustavo Carneiro)
307 Mon Oct 14 15:32:14 2002 Owen Taylor <otaylor@redhat.com>
309 * tests/mainloop-test.c (adder_response): Fix a minor memory
312 Sat Oct 12 21:30:41 2002 Tim Janik <timj@gtk.org>
314 * merged up from glib-2-0:
316 * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
317 (g_ascii_strtoull): new function, acting like strtoull(3) in the C
320 * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
321 support storing 64bit values in GTokenValue by
322 using g_ascii_strtoull().
324 Sat Oct 12 12:34:22 2002 Soeren Sandmann <sandmann@daimi.au.dk>
326 * glib/gtree.c (g_tree_search), glib/gspawn.c
327 (g_spawn_async_with_pipes):
329 Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
332 Thu Oct 10 23:27:02 2002 Tim Janik <timj@gtk.org>
334 * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
335 print out "<memory>" instead of completely skipping input specification
336 and thusly loosing error line information.
338 Sun Sep 29 12:15:44 2002 Manish Singh <yosh@gimp.org>
340 * tests/mainloop-test.c: use gsize instead of int where appropriate
341 (64-bit cleanliness fix)
343 2002-09-29 Tor Lillqvist <tml@iki.fi>
345 * configure.in: Instead of forcing -fnative-struct into CFLAGS
346 when using gcc for Win32, check for gcc version 3.x which uses
347 -mms-bitfields instead. Also check if either of these switches is
348 actually available at all, and warn if not. Thanks to Soren
349 Andersen for the inspiration.
351 * HACKING: Say we require autoconf 2.52 as that is what
354 2002-09-23 Arvind Samptur <arvind.samptur@wipro.com>
355 * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
356 we need to reap it to avoid a zombie. This would
357 happen in case of g_spawn_sync. Fixes #92658
359 2002-09-20 Matthias Clasen <maclas@gmx.de>
361 * glib/gscanner.c (g_scanner_msg_handler): Don't print
362 scanner->input_name when it is NULL. (#93752)
364 2002-09-06 Havoc Pennington <hp@redhat.com>
366 * autogen.sh: automake 1.4
368 2002-09-01 Soeren Sandmann <sandmann@daimi.au.dk>
370 * docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:
372 Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
374 2002-08-26 Tor Lillqvist <tml@iki.fi>
376 * configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
377 Cygwin (#91696, Masahiro Sakai).
379 Tue Aug 20 16:01:03 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
381 * glib/gconvert.c (strdup_len): validate 'len' argument properly
382 for the case that input string is not null-terminated. (#91222)
384 2002-08-10 Gustavo Noronha Silva <kov@debian.org>
386 * configure.in: added pt_BR to ALL_LINGUAS
388 2002-08-07 Matthias Clasen <maclas@gmx.de>
390 * glib/gmarkup.c (g_markup_parse_context_get_element):
391 Use g_return_val_if_fail, no g_return_if_fail.
393 2002-08-06 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
395 * glib/gthread.c: Set the normal PID surrogate priority according
396 to getpid() to avoid errors for niced processes. (#86116)
398 * gthread/gthread-impl.c, gthread/gthread-posix.c,
399 gthread/gthread-solaris.c: Do the same for the posix/dce
400 implementation. Solaris still needs to set priority of the main
401 thread, because all unbound threads will schedule according to
402 that value and it defaults to 0 (the minimal value).
404 * glib/gmain.c: Factor out g_main_context_init_pipe from
405 g_main_context_new to initialize the wakeup pipe of a
406 context. Call that function from g_main_context_new if threads are
407 initialized and for all contexts when threads are initialized
408 in g_main_thread_init. (#86872)
410 * gthread/gthread-impl.c: Call g_main_thread_init. (#86872)
412 Thu Jul 25 14:23:15 2002 Owen Taylor <otaylor@redhat.com>
414 * glib/gfileutils.c: Clarify the behavior of g_build_path()
415 for empty elements and for leading and trailing copies
416 of the separator in the docs.
418 * glib/gfileutils.c: Fix problems with leading elements
419 consisting only of "/" characters. (#85928, Guillaume Chazarain)
421 * tests/strfunc-test.c (main): Add more test cases
422 for g_build_filename().
424 2002-07-26 Matthias Clasen <maclas@gmx.de>
427 * glib/gutf8.c (g_utf8_strreverse): New function to revert
429 * glib/gpattern.c (g_utf8_reverse): Gone, replaced by
430 g_utf8_strreverse. (#87725)
432 Thu Jul 25 20:57:20 2002 Owen Taylor <otaylor@redhat.com>
434 * glib/giochannel.c (g_io_channel_read_line): Fix
435 docs for @str_return to conform to the main docs
436 and the implementation as to whether the terminator
437 is included. (#87964, Jacob Berkman)
439 Thu Jul 25 19:52:41 2002 Owen Taylor <otaylor@redhat.com>
441 * glib/guniprop.c (real_tolower): Handle the
442 end of the string properly when max_len is set.
443 (#88545, Morten Welinder.) Rename the next_t
444 variable to next_type to make cc-mode happy.
446 * glib/gconvert.c (g_iconv_open): Fix missing
447 label from previous commit.
449 Thu Jul 25 19:41:03 2002 Owen Taylor <otaylor@redhat.com>
451 * glib/giochannel.c (g_io_channel_get_flags): Fix
452 incorrect return value in g_return_val_if_fail
453 (#85545, David L. Cooper II)
455 Thu Jul 25 19:12:43 2002 Owen Taylor <otaylor@redhat.com>
457 * glib/giochannel.c (g_io_channel_set_encoding): Clarify
458 that only one of the conditions listed in the docs
459 need to be true, not all of them. (#87176,
462 * glib/giochannel.c (g_io_channel_read_line): Fix
463 description of the return value. (#87754, Manuel Clos)
465 Thu Jul 25 19:02:53 2002 Owen Taylor <otaylor@redhat.com>
467 * glib/gmain.c (g_timeout_add): Remove reference
468 in the docs to @notify parameter. (#87768,
471 Thu Jul 25 17:57:07 2002 Owen Taylor <otaylor@redhat.com>
473 * glib/gconvert.c (g_iconv_open): Document the
474 (GIConv)-1 return value on failure. (#87559,
477 * glib/gconvert.c (g_iconv_open): Fix potential
478 problems with the assumption that (GIConv)(iconv_t)-1
479 is the same as (GIConv)-1.
481 2002-07-15 Matthias Clasen <maclas@gmx.de>
484 * glib/gmarkup.c (g_markup_parse_context_get_element): New
485 function to get the currently open element. (#70448)
487 2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
489 * tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
490 throughout the files, which didn't already have them. (#87312)
492 2002-07-03 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
494 * configure.in: Made the thread flags determination tests first
495 check for the canonical form -pthread[s], then for other
496 possibilities. Also recognize some more platforms. Modeled after
497 patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
500 * configure.in: Fixed bugs in posix thread priority
501 resolution. Also added AIX priorities. Fix from
502 Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)
504 * gthread/gthread-solaris.c: Use thr_min_stack() instead of
505 sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
506 g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
507 the stack might be to small for any nontrivial thread. Discovered
508 on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
510 2002-07-03 Anders Carlsson <andersca@gnu.org>
512 * configure.in: Add a forgotten trailing ` in the
513 GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
515 2002-07-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
517 * configure.in: Set binary age to 0 to make it compile.
519 * configure.in: Improve checks for dce/posix threads to also do
520 the right thing, if the thread functions are not declared in
521 pthread.h. Idea from Miroslaw Dobrzanski-Neumann
522 <mne@mosaic-ag.com> in #77981.
524 2002-07-01 Anders Carlsson <andersca@gnu.org>
526 * configure.in: Up version to 2.1.0.
528 2002-07-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
530 * glib/garray.h: Add parenthesis to protect macro
531 argument. Spotted by Sam Couter <sam@topic.com.au>. (#86826)
533 2002-06-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
535 * glib/gmessages.h (g_assert, g_assert_not_reached,
536 g_return_if_fail, g_return_val_if_fail): In case of
537 G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
538 "G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
539 gcc prior to 3.0. (#86664)
541 2002-06-26 Yanko Kaneti <yaneti@declera.com>
543 * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
545 Thu Jun 13 16:12:04 2002 Owen Taylor <otaylor@redhat.com>
547 * glib/gmain.c (struct _GTimeoutSource): Make
548 interval unsigned to match g_timeout_source_new().
551 * glib/gmain.c (g_timeout_prepare): Add some
552 extra gymnastics to avoid signed/unisgned integer
555 Thu Jun 13 15:57:46 2002 Owen Taylor <otaylor@redhat.com>
557 * INSTALL.in: Add a note about the deficiency
558 of Tru64 iconv. (#81699, Manuel Op de Coul)
560 Tue Jun 11 17:03:39 2002 Owen Taylor <otaylor@redhat.com>
562 * tests/patterntest.c (test_compilation)
563 * glib/gmem.c (profiler_try_realloc): A couple
564 of 64-bit printf format fix from George Lebl.
567 * glib/gconvert.c (open_converter): Fix gsize/gint
568 mixup for g_iconv() arguments. (#83270,
571 2002-06-03 Matthias Clasen <maclas@gmx.de>
573 * glib/gwin32.c (g_win32_get_package_installation_directory):
574 Replace homegrown "hash" entity by standard ISO entity "num".
576 2002-05-26 Matthias Clasen <maclas@gmx.de>
578 * glib/gmain.c: Remove references to nonexisting functions
579 g_source_set_callback_closure(), g_source_poll(), g_source_add()
582 * glib/gdir.c (g_dir_open): Typo fix in docs.
584 * glib/gasyncqueue.c (g_async_queue_lock):
585 (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
588 * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
590 * glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
592 * glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
594 2002-05-23 Havoc Pennington <hp@redhat.com>
596 * glib/gspawn.c (fork_exec_with_pipes): on success, close the
597 pipes from the child. Fix from Tim.
599 2002-05-22 jacob berkman <jacob@ximian.com>
601 * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
603 Wed May 22 15:40:47 2002 Owen Taylor <otaylor@redhat.com>
605 * README.in: Remove notes about now-fixed-bugs.
607 * m4macros/glib-gettext.m4 acinclude.m4: Get rid
608 of AC_MSG_NOTICE() usage, since some broken systems
609 (Hi Debian!) might not be using autoconf-2.5x for
610 downstream packages even though we require it for
613 * INSTALL.in: Add a note about installing extra
614 converters for Solaris.
616 * glib/gutils.h (g_bit_nth_msf): Fix termination
617 condition. (#82582, Paolo Molaro)
619 Tue May 21 15:51:17 2002 Owen Taylor <otaylor@redhat.com>
621 * configure.in: $with_libiconv, not $with_iconv.
623 Mon May 20 18:02:46 2002 Owen Taylor <otaylor@redhat.com>
625 * configure.in: Move iconv tests before gettext
628 * m4macros/glib-gettext.m4 acinclude.m4: If we can't
629 link to gettext, try adding in -liconv. (#80076,
632 * m4macros/glib-gettext.m4 acinclude.m4: Suppress
633 warnings about xgettext not being GNU gettext when
634 libintl wasn't found at all.
635 (#79016, Andrew P. Lentvorski, Jr.)
637 2002-05-21 Matthias Clasen <maclas@gmx.de>
639 * glib/gmarkup.c (g_markup_parse_context_parse): Added
640 proper support for CDATA sections.
642 2002-05-20 jacob berkman <jacob@ximian.com>
644 * glib/gdir.c: include sys/types.h before dirent.h to build on
645 darwin (fixes #72859)
647 Mon May 20 15:35:59 2002 Owen Taylor <otaylor@redhat.com>
649 * glib/gfileutils.c (get_contents_regfile): Fix double
650 close of file descriptor on error. (#82139, Wayne Schuller)
652 * glib/gspawn.c (close_and_invalidate): Don't close
653 fd's that have already been closed. (Fix from Michael
656 * glib/giochannel.c (g_io_channel_close): If not flushing,
657 dump the contents of the write buffers, so we won't try
658 to write them to an invalid fd later. (Patch from Ron Steinke,
659 fixing #78290, Andreas Persenius.)
661 2002-05-18 Matthias Clasen <maclas@gmx.de>
663 * tests/markups/fail-36.gmarkup:
664 * tests/markups/fail-35.gmarkup:
665 * tests/markups/valid-8.gmarkup:
666 * tests/markups/valid-7.gmarkup:
667 * tests/markups/valid-6.gmarkup:
668 * tests/markups/valid-5.gmarkup: New testcases.
670 * tests/markup-test.c (passthrough_handler):
671 (text_handler): Don't ignore the text_len parameter.
673 * glib/gmarkup.c (find_current_text_end): Don't hang on embedded
675 (g_markup_parse_context_parse): Fix passthrough handling to
676 correctly skip processing instructions, comments, doctype
677 declarations and CDATA marked sections. (#81977)
679 Sat May 18 00:21:51 2002 Tim Janik <timj@gtk.org>
683 * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
686 2002-05-17 Tor Lillqvist <tml@iki.fi>
688 * config.h.win32.in: Match new additions in a configure-produced
691 * glibconfig.h.win32.in: gssize and gsize as in a
692 configure-produced glibconfig.h.
694 * glib/glib.def: Add new functions.
696 Thu May 16 12:24:00 2002 Owen Taylor <otaylor@redhat.com>
698 * acinclude.m4 m4macros/glib-gettext.m4: Incorporate
699 AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid
700 dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)
702 2002-05-14 Alex Larsson <alexl@redhat.com>
706 New functions g_str_has_suffix and g_str_has_prefix.
708 * tests/string-test.c: (main):
709 Test the new functions.
711 Mon May 13 23:20:00 2002 Owen Taylor <otaylor@redhat.com>
713 * autogen.sh (have_gettext): Add a check for GNU gettext.
714 (Pointed out by Dan Winship in #59386.)
716 Mon May 13 11:55:33 2002 Owen Taylor <otaylor@redhat.com>
718 * configure.in acglib.m4: If sizeof(int) == sizeof(long)
719 run compilation tests to determine which way gsize should
720 be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
722 Mon May 13 11:42:23 2002 Owen Taylor <otaylor@redhat.com>
724 * glib/libcharset/*: Update from libcharset CVS.
725 Includes additional encodings for Solaris (#80396,
728 * configure.in: Add getc_unlocked to CHECK_FUNCS().
730 * glib/gmessages.c (strdup_convert): If
731 g_convert_with_fallback() fails, print the error
732 message to stderr the first time, then return
733 the original string. (#78197)
735 2002-05-10 Naba Kumar <kh_naba@users.sourceforge.net>
737 * configure.in: Added "hi" to ALL_LINGUAS.
739 2002-05-08 Michael Natterer <mitch@gimp.org>
741 * configure.in: fixed yesterdays fix for cross compiling: simply
742 check the variable "cross_compiling" which gets set by autoconf.
744 2002-05-07 Matthias Clasen <maclas@gmx.de>
746 * glib/gmarkup.c (unescape_text): Report unfinished entity
747 references as errors rather than running into an assert. (#80441)
749 2002-05-07 Michael Natterer <mitch@gimp.org>
751 * configure.in: added a new conditional CROSS_COMPILING which
752 indicates ($build != $host). If it is set, look for
753 glib-genmarshal in PATH. Error out if it was not found.
755 Tue May 7 11:24:22 2002 Owen Taylor <otaylor@redhat.com>
757 Fixes for #79347, Ron Arts.
759 * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
760 don't g_return_if_fail().
762 * tests/qsort-test.c (main): Add a 0 element test.
764 * glib/garray.c (g_[ptr_]array_sort_with[_data]):
765 Remove invalid assertions that array->pdata != NULL ..
766 it's NULL for 0 elements which is a valid case.
768 Mon May 6 16:00:41 2002 Owen Taylor <otaylor@redhat.com>
770 * glib/gbacktrace.h: Exclude OSF from alpha definition
771 of G_BREAKPOINT(), since the assembler apparently
772 doesn't support bpt. (#77852, Gareth Pierce) [from stable]
774 Mon May 6 11:48:08 2002 Owen Taylor <otaylor@redhat.com>
776 [ merged from stable ]
778 * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
780 * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
781 compiling "what went wrong" test case. (#79330)
783 * m4macros/glib-2.0.m4: Remove reference to editing
784 pkg-config script. (From Jim Gettys)
786 * configure.in: (Look for dyld interfaces before dlopen()
787 since OS X can have both. Patch from Jacob Berkman,
790 2002-05-01 jacob berkman <jacob@ximian.com>
792 * configure.in: fix typo on 64-bit printf formatting string
793 configure message (fixes #80389)
795 2002-04-29 Pablo Saratxaga <pablo@mandrakesoft.com>
797 * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
799 2002-04-19 Tor Lillqvist <tml@iki.fi>
801 * glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
802 note to the gtk-doc comment.
804 * glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
805 blocks. It's enough to have them in gspawn.c.
807 2002-04-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
809 * gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
811 2002-04-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
813 * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
814 for all threads leaving it. (#78348)
816 2002-04-11 Matthias Clasen <maclas@gmx.de>
818 * tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
819 stuff fed to g_print.
821 2002-04-08 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
823 * tests/gio-test.c, tests/markup-test.c: Use gsize instead of
824 gint. From Miroslaw Dobrzanski-Neumann
825 <mne@mosaic-ag.com>. (#77982)
827 2002-04-08 Stanislav Brabec <utx@penguin.cz>
829 * cs.po: Added Czech (cs) to ALL_LINGUAS.
831 2002-03-31 Hasbullah Bin Pit <sebol@ikhlas.com>
833 * configure.in: Added Malay (ms)to ALL_LINGUAS.
835 2002-03-29 Tor Lillqvist <tml@iki.fi>
837 * glib/glib.def: Add g_convert_init.
839 Thu Mar 28 18:25:14 2002 Owen Taylor <otaylor@redhat.com>
843 * configure.in: Version 2.0.1, interface, binary age 1.
845 Thu Mar 28 18:22:53 2002 Owen Taylor <otaylor@redhat.com>
847 * README: Remove warning about g_print, etc, encoding.
851 * glib/gmessages.c (g_log_default_handler): Use %lu
852 (plus a cast) when printing out pid_t arguments.
853 (#76770, Morten Welinder)
855 * glib/gstrfuncs.c (g_strdup_vprintf): Check the
856 result of vasprintf(), return NULL on failure.
857 (#76802, Akira Tagoh)
859 * tests/testglib.c (TEST): Supress a warning with
862 Thu Mar 28 20:31:51 2002 Tim Janik <timj@gtk.org>
866 (g_printerr): convert prtinf() strings to local charset
867 when writing them to stdout or stderr.
869 Wed Mar 27 18:42:22 2002 Tim Janik <timj@gtk.org>
872 major cleanups. introduced _g_log_fallback_handler() to handle
873 recursive messages which really doesn't call any GLib functions.
874 this allowes the default handler to use normal GLib functions and
875 also fixes user supplied log level handlers.
876 fixed locking issues, based on a patch from Sebastian Willhelmi,
877 attached to #74356. translate log messages from UTF-8, based
878 on the same patch. save fatal and recursion flags across flag
879 loop. use new integer format code from above patch.
880 move GLib functions out of locked mutex state to avoid deadlocks.
881 move the level prefix and filedescriptor logic into mklevel_prefix().
882 move _g_debug_init() into a place where we can figure and handle
885 Mon Mar 25 18:13:06 2002 Owen Taylor <otaylor@redhat.com>
887 * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
888 qualifier from __asm__ statements... GCC since at least
889 2.96 has assumed no side effects automaticaly, and gcc-3.1
890 will warn about this usage. (#73308, Cody Russell)
892 Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
894 * glib/gmem.c (g_mem_chunk_reset): Fix problem where
895 if g_mem_chunk_reset() is called on an alloc-only
896 memchunk, then a useles GTree was created.
898 Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
900 * glib/gconvert.c (open_converter): Try to work around segfaults
901 on Solaris if NULL is passed for outbuf... supposedly gchar
902 *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
904 Wed Mar 20 11:17:32 2002 Owen Taylor <otaylor@redhat.com>
906 * glib/gfileutils.c (get_contents_regfile): Close the
907 file descriptor. (#75507, Matthias Clasen)
909 Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
911 * configure.in: Use $PKG_CONFIG, not pkg-config.
912 (LEE Sau Dan, #75572)
914 2002-03-20 Sven Neumann <sven@gimp.org>
916 * glib/ghash.c (g_hash_table_resize): avoid repeated call of
917 g_spaced_primes_closest() by moving it out of the CLAMP macro
918 (spotted by Salmaso Raffaele).
920 2002-03-17 Tor Lillqvist <tml@iki.fi>
922 * README.win32: Add MSVC-specific text by Hans Breuer.
924 2002-03-16 Tor Lillqvist <tml@iki.fi>
926 * glib/giowin32.c: Some debugging output formatting changes. The
927 following changes fix a problem with buffered GIOChannels, noticed
928 with the help of Owen's test program, thanks! (#59969)
929 (g_io_win32_prepare): Return value that takes the buffer condition
930 into account, like g_io_unix_prepare() does.
931 (g_io_win32_check): Ditto, like g_io_unix_check().
932 (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
934 Thu Mar 14 17:37:45 2002 Owen Taylor <otaylor@redhat.com>
936 * glib/giochannel.c (g_io_channel_write_chars): Fix some
937 gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
939 2002-03-14 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
941 * glib/gmessages.c: Fixed threading issues brought up by
942 #74577. Make g_log_find_domain, g_log_domain_new,
943 g_log_domain_check_free and g_log_domain_get_handler require being
944 called with g_messages_lock held and remove all internal locking
945 in them. Then added proper locking to g_log_set_handler,
946 g_log_remove_handler and g_logv. Problem spotted by Miroslaw
947 Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
949 2002-03-13 Erwann Chenede <erwann.chenede@sun.com>
951 glib/gen-unicode-tables.pl
952 glib/gunidecomp.h : fixed cast/type problems to
953 avoid warnings (with forte compiler) (#73898)
955 2002-03-12 Alexander Larsson <alla@lysator.liu.se>
958 Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
959 use instead. Add g_convert_init() that calls have_broken_filenames()
961 * gthread/gthread-impl.c:
962 Have g_thread_init call g_convert_init.
964 2002-03-11 Matthias Clasen <maclas@gmx.de>
966 * glib/gstrfuncs.c (g_strtod):
969 (g_ascii_formatd): Doc formatting fixes.