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