0139650cea0e93c926424ab9b6a451101bd64348
[platform/upstream/glib.git] / ChangeLog.pre-2-2
1 2002-11-26  Matthias Clasen  <maclas@gmx.de>
2
3         * glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY 
4         and G_UNLIKELY.  (Reported by Dan Mills)
5
6 2002-11-25  Matthias Clasen  <maclas@gmx.de>
7
8         * glib/gfileutils.c (g_build_path): 
9         (g_build_filename): Document that the varargs must be 
10         NULL-terminated. (#99510)
11
12         * glib/gmessages.h (g_assert): 
13         (g_return_if_fail): 
14         (g_return_val_if_fail): Remove the (no longer effective) empty
15         if-branch.
16
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. 
20
21 2002-11-23  Matthias Clasen  <maclas@gmx.de>
22
23         * configure.in: Generate docs/reference/*/version.xml.
24
25         * glib/gdir.h: Add Copyright notice.
26
27 2002-11-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
28
29         * configure.in: Fixed typo: PTHREAD_PRIO_MIN ->
30         PTHREAD_PRIO_MAX. (Laurent Vivier, #99293)
31
32 Fri Nov 22 09:39:09 2002  Owen Taylor  <otaylor@redhat.com>
33
34         * glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
35         definition which wasn't supposed to be committed
36         at all.
37
38 Thu Nov 21 16:19:21 2002  Owen Taylor  <otaylor@redhat.com>
39
40         * glib/ghash.c: Patch from Morten Welinder to 
41         make ghash.c properly obey DISABLE_MEM_POOLS. (#96600)
42
43 Thu Nov 21 14:09:44 2002  Owen Taylor  <otaylor@redhat.com>
44
45         * glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
46         #87969)
47
48 2002-11-21  Tor Lillqvist  <tml@iki.fi>
49
50         * config.h.win32.in: Update to match what is currently produced by
51         autotools.
52
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.
56
57         * glib/glib.def: Add new functions.
58
59         * glib/Makefile.am: If !HAVE_GOOD_PRINTF, add libtrio.la to LIBADD
60         and DEPENDENCIES.
61
62         * glib/glib.rc.in
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.
68
69 2002-11-21  Matthias Clasen  <maclas@gmx.de>
70
71         Include a printf implementation supporting C99 snprintf and SUS
72         positional parameters:  (#79488)
73         
74         * glib/gstrfuncs.c:
75         * glib/gspawn-win32.c:
76         * glib/gscanner.c:
77         * glib/gconvert.c: 
78         * glib/gbacktrace.c: Use _g_printf wrappers. 
79
80         * glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
81         snprintf semantics now.
82
83         * glib/gmessages.c (printf_string_upper_bound): No longer needed,
84         since we can assume C99 snprintf semantics now.
85         (g_logv): Simplify.
86         
87         * acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
88         printf supports SUS positional parameters.
89
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 
93         parameters.
94
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.
98
99         * glib/gprintfint.h: New private wrapping either system printf
100         or trio printf variants in _g_printf wrappers for use inside glib.
101
102         * glib/gprintf.h: New public header declaring g_printf variants.
103         * glib/gprintf.c: Corresponding implementations.
104
105         * glib/trio/*: New directory, containing the trio-1.9 sources. 
106
107 2002-11-20  Matthias Clasen  <maclas@gmx.de>
108
109         * glib/gmessages.h (g_return_if_fail): 
110         (g_return_val_if_fail): Use G_LIKELY.  (#69022)
111
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)
116
117 Tue Nov 19 14:38:18 2002  Owen Taylor  <otaylor@redhat.com>
118
119         * glib/gstrfuncs.c (g_ascii_strtoull): Fix 
120         strtull/strtoull type in docs (#99012, Morten
121         Welinder.) Add copyright information for code
122         taken from GNU libc.
123
124 2002-11-18  Tor Lillqvist  <tml@iki.fi>
125
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
131         all cases.
132
133         * glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
134         behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
135
136 2002-11-18  Tor Lillqvist  <tml@iki.fi>
137
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.)
144
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().
149
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.
153
154         (g_spawn_async_with_pipes): Pass the child_pid parameter on to
155         do_spawn_with_pipes().
156
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().
161
162 2002-11-17  Tor Lillqvist  <tml@iki.fi>
163
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
171         synchronously.
172
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.
176
177         (close_and_invalidate): Don't try to close invalid fds.
178
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.
182         
183         * glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
184         debugging output.
185
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).
189
190         * tests/spawn-test.c (run_tests): On Win32, run the
191         spawn-test-win32-gui program, too, in several ways, synchronously
192         and asynchronously.
193
194         * tests/Makefile.am: Corresponding change.
195
196 Fri Nov  8 19:44:20 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
197
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:
214
215         Trivial s/foo/foo_/ fixes to make <glib.h> includable with
216         -Wshadow without warnings (#91680)
217
218 Thu Nov  7 19:32:26 2002  Owen Taylor  <otaylor@redhat.com>
219
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
223         name.
224
225         * configure.in: Up to version 2.1.3, since we'll
226         need to depend on last addition for GTK+.
227
228 2002-11-06  Tor Lillqvist  <tml@iki.fi>
229
230         * glib/glib.def: Add g_main_thread_init.
231
232 2002-11-06  Matthias Clasen  <maclas@gmx.de>
233
234         * glib/gstrfuncs.c (g_str_has_suffix): 
235         (g_str_has_prefix): Minor doc markup fix.
236
237 Mon Nov  4 10:45:48 2002  Owen Taylor  <otaylor@redhat.com>
238
239         * configure.in: Add -DG_DISABLE_CAST_CHECKS for 
240         everything but --enable-debug.
241
242         * configure.in: Require pkg-config 0.14. (#97553)
243
244 Mon Nov  4 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>
245  
246         * glib/gbsearcharray.c: Include config.h
247         so DISABLE_MEMPOOLS actually has an effect.
248         (#96437, Morten Welinder)
249  
250         * tests/uri-test.c: Include <config.h>
251
252 2002-11-03  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
253
254         * configure.in: Added Belarusian to ALL_LINGUAS
255
256 2002-11-02  Daniel Elstner  <daniel.elstner@gmx.net>
257
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)
262
263 2002-10-27  Tor Lillqvist  <tml@iki.fi>
264
265         * configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
266         trouble.
267         
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.
275
276 Fri Oct 18 13:41:30 2002  Manish Singh  <yosh@gimp.org>
277
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
281         the calculation.
282
283 Tue Oct 15 15:28:47 2002  Manish Singh  <yosh@gimp.org>
284
285         * tests/iochannel-test.c: use gsize instead of int where appropriate
286         (64-bit cleanliness fix). Removed leftover line_term cruft.
287
288 Tue Oct 15 15:07:45 2002  Manish Singh  <yosh@gimp.org>
289
290         * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
291         add -DG_DISABLED_DEPRECATED
292
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
296
297 Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
298
299         * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
300         leak. (#94550, Sebastian Rittau)
301
302 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
303
304         * glib/gcompletion.[ch] (g_completion_complete): Make
305         prefix argument const. (#91662, Gustavo Carneiro) 
306
307 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
308  
309         * tests/mainloop-test.c (adder_response): Fix a minor memory
310         leak.
311  
312 Sat Oct 12 21:30:41 2002  Tim Janik  <timj@gtk.org>
313
314         * merged up from glib-2-0:
315
316         * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
317         (g_ascii_strtoull): new function, acting like strtoull(3) in the C
318         locale.
319
320         * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
321         support storing 64bit values in GTokenValue by
322         using g_ascii_strtoull().
323
324 Sat Oct 12 12:34:22 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
325
326         * glib/gtree.c (g_tree_search), glib/gspawn.c
327         (g_spawn_async_with_pipes): 
328
329         Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
330         Owen Taylor. 
331
332 Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
333
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.
337
338 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
339
340         * tests/mainloop-test.c: use gsize instead of int where appropriate
341         (64-bit cleanliness fix)
342
343 2002-09-29  Tor Lillqvist  <tml@iki.fi>
344
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.
350
351         * HACKING: Say we require autoconf 2.52 as that is what
352         configure.in does.
353
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
358
359 2002-09-20  Matthias Clasen  <maclas@gmx.de>
360
361         * glib/gscanner.c (g_scanner_msg_handler): Don't print
362         scanner->input_name when it is NULL.  (#93752)
363
364 2002-09-06  Havoc Pennington  <hp@redhat.com>
365
366         * autogen.sh: automake 1.4
367
368 2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>
369
370         * docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:
371
372         Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
373
374 2002-08-26  Tor Lillqvist  <tml@iki.fi>
375
376         * configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
377         Cygwin (#91696, Masahiro Sakai).
378
379 Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
380
381         * glib/gconvert.c (strdup_len): validate 'len' argument properly
382         for the case that input string is not null-terminated. (#91222)
383
384 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
385
386         * configure.in: added pt_BR to ALL_LINGUAS
387
388 2002-08-07  Matthias Clasen  <maclas@gmx.de>
389
390         * glib/gmarkup.c (g_markup_parse_context_get_element): 
391         Use g_return_val_if_fail, no g_return_if_fail.
392
393 2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
394
395         * glib/gthread.c: Set the normal PID surrogate priority according
396         to getpid() to avoid errors for niced processes. (#86116)
397
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). 
403
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) 
409
410         * gthread/gthread-impl.c: Call g_main_thread_init. (#86872) 
411
412 Thu Jul 25 14:23:15 2002  Owen Taylor  <otaylor@redhat.com>
413
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.
417  
418         * glib/gfileutils.c: Fix problems with leading elements
419         consisting only of "/" characters. (#85928, Guillaume Chazarain)
420  
421         * tests/strfunc-test.c (main): Add more test cases
422         for g_build_filename().
423  
424 2002-07-26  Matthias Clasen  <maclas@gmx.de>
425
426         * glib/gunicode.h: 
427         * glib/gutf8.c (g_utf8_strreverse): New function to revert
428         a utf8 string.
429         * glib/gpattern.c (g_utf8_reverse): Gone, replaced by 
430         g_utf8_strreverse.  (#87725)
431
432 Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>
433
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)
438
439 Thu Jul 25 19:52:41 2002  Owen Taylor  <otaylor@redhat.com>
440
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.
445
446         * glib/gconvert.c (g_iconv_open): Fix missing
447         label from previous commit.
448
449 Thu Jul 25 19:41:03 2002  Owen Taylor  <otaylor@redhat.com>
450
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)
454
455 Thu Jul 25 19:12:43 2002  Owen Taylor  <otaylor@redhat.com>
456
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,
460         Sebastian Rittau)
461
462         * glib/giochannel.c (g_io_channel_read_line): Fix 
463         description of the return value. (#87754, Manuel Clos)
464
465 Thu Jul 25 19:02:53 2002  Owen Taylor  <otaylor@redhat.com>
466
467         * glib/gmain.c (g_timeout_add): Remove reference
468         in the docs to @notify parameter. (#87768,
469         Manuel Clos)
470
471 Thu Jul 25 17:57:07 2002  Owen Taylor  <otaylor@redhat.com>
472
473         * glib/gconvert.c (g_iconv_open): Document the
474         (GIConv)-1 return value on failure. (#87559, 
475         Jarek Dukat)
476
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.
480         
481 2002-07-15  Matthias Clasen  <maclas@gmx.de>
482
483         * glib/gmarkup.h: 
484         * glib/gmarkup.c (g_markup_parse_context_get_element): New
485         function to get the currently open element.  (#70448)
486
487 2002-07-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
488
489         * tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
490         throughout the files, which didn't already have them. (#87312)
491
492 2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
493
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>
498         (#77981).
499         
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)
503         
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>.
509
510 2002-07-03  Anders Carlsson  <andersca@gnu.org>
511
512         * configure.in: Add a forgotten trailing ` in the 
513         GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
514
515 2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
516
517         * configure.in: Set binary age to 0 to make it compile.
518
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.
523
524 2002-07-01  Anders Carlsson  <andersca@gnu.org>
525
526         * configure.in: Up version to 2.1.0.
527
528 2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
529
530         * glib/garray.h: Add parenthesis to protect macro
531         argument. Spotted by Sam Couter <sam@topic.com.au>. (#86826)
532
533 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
534
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)
540
541 2002-06-26  Yanko Kaneti <yaneti@declera.com>
542
543         * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
544
545 Thu Jun 13 16:12:04 2002  Owen Taylor  <otaylor@redhat.com>
546
547         * glib/gmain.c (struct _GTimeoutSource): Make 
548         interval unsigned to match g_timeout_source_new().
549         (#82624, Tim Janik.)
550
551         * glib/gmain.c (g_timeout_prepare): Add some
552         extra gymnastics to avoid signed/unisgned integer
553         overflows.
554
555 Thu Jun 13 15:57:46 2002  Owen Taylor  <otaylor@redhat.com>
556
557         * INSTALL.in: Add a note about the deficiency
558         of Tru64 iconv. (#81699, Manuel Op de Coul)
559
560 Tue Jun 11 17:03:39 2002  Owen Taylor  <otaylor@redhat.com>
561
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.
565         (#82817)
566
567         * glib/gconvert.c (open_converter): Fix gsize/gint
568         mixup for g_iconv() arguments. (#83270,
569         David L. Cooper II)
570
571 2002-06-03  Matthias Clasen  <maclas@gmx.de>
572
573         * glib/gwin32.c (g_win32_get_package_installation_directory):
574         Replace homegrown "hash" entity by standard ISO entity "num".
575
576 2002-05-26  Matthias Clasen  <maclas@gmx.de>
577
578         * glib/gmain.c: Remove references to nonexisting functions 
579         g_source_set_callback_closure(), g_source_poll(), g_source_add()
580         from docs.
581
582         * glib/gdir.c (g_dir_open): Typo fix in docs.
583
584         * glib/gasyncqueue.c (g_async_queue_lock):
585         (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous 
586         <link>s in docs.
587
588         * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
589
590         * glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
591
592         * glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
593
594 2002-05-23  Havoc Pennington  <hp@redhat.com>
595
596         * glib/gspawn.c (fork_exec_with_pipes): on success, close the
597         pipes from the child. Fix from Tim.
598
599 2002-05-22  jacob berkman  <jacob@ximian.com>
600
601         * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
602
603 Wed May 22 15:40:47 2002  Owen Taylor  <otaylor@redhat.com>
604
605         * README.in: Remove notes about now-fixed-bugs.
606
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
611         glib itself.
612
613         * INSTALL.in: Add a note about installing extra
614         converters for Solaris.
615
616         * glib/gutils.h (g_bit_nth_msf): Fix termination
617         condition. (#82582, Paolo Molaro)
618  
619 Tue May 21 15:51:17 2002  Owen Taylor  <otaylor@redhat.com>
620
621         * configure.in: $with_libiconv, not $with_iconv.
622
623 Mon May 20 18:02:46 2002  Owen Taylor  <otaylor@redhat.com>
624
625         * configure.in: Move iconv tests before gettext
626         checks. (#81999)
627
628         * m4macros/glib-gettext.m4 acinclude.m4: If we can't
629         link to gettext, try adding in -liconv. (#80076,
630         Boyd Lynn Gerber)
631
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.)
636          
637 2002-05-21  Matthias Clasen  <maclas@gmx.de>
638
639         * glib/gmarkup.c (g_markup_parse_context_parse): Added
640         proper support for CDATA sections.
641
642 2002-05-20  jacob berkman  <jacob@ximian.com>
643
644         * glib/gdir.c: include sys/types.h before dirent.h to build on
645         darwin (fixes #72859)
646
647 Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>
648  
649         * glib/gfileutils.c (get_contents_regfile): Fix double
650         close of file descriptor on error. (#82139, Wayne Schuller)
651  
652         * glib/gspawn.c (close_and_invalidate): Don't close
653         fd's that have already been closed. (Fix from Michael
654         Meeks, #81959)
655  
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.)
660  
661 2002-05-18  Matthias Clasen  <maclas@gmx.de>
662
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.
669
670         * tests/markup-test.c (passthrough_handler): 
671         (text_handler): Don't ignore the text_len parameter.
672
673         * glib/gmarkup.c (find_current_text_end): Don't hang on embedded
674         nuls.  (#81977)
675         (g_markup_parse_context_parse): Fix passthrough handling to
676         correctly skip processing instructions, comments, doctype
677         declarations and CDATA marked sections.  (#81977)
678
679 Sat May 18 00:21:51 2002  Tim Janik  <timj@gtk.org>
680
681         [merged from stable]
682
683         * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
684         expected_token.
685
686 2002-05-17  Tor Lillqvist  <tml@iki.fi>
687
688         * config.h.win32.in: Match new additions in a configure-produced
689         config.h.
690
691         * glibconfig.h.win32.in: gssize and gsize as in a
692         configure-produced glibconfig.h.
693
694         * glib/glib.def: Add new functions.
695
696 Thu May 16 12:24:00 2002  Owen Taylor  <otaylor@redhat.com>
697  
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.)
701         
702 2002-05-14  Alex Larsson <alexl@redhat.com>
703         
704         * glib/gstrfuncs.c: 
705         * glib/gstrfuncs.h:
706         New functions g_str_has_suffix and g_str_has_prefix.
707         
708         * tests/string-test.c: (main):
709         Test the new functions.
710
711 Mon May 13 23:20:00 2002  Owen Taylor  <otaylor@redhat.com>
712
713         * autogen.sh (have_gettext): Add a check for GNU gettext.
714         (Pointed out by Dan Winship in #59386.)
715
716 Mon May 13 11:55:33 2002  Owen Taylor  <otaylor@redhat.com>
717
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)
721
722 Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>
723  
724         * glib/libcharset/*: Update from libcharset CVS.
725         Includes additional encodings for Solaris (#80396,
726         Qingjiang Yuan)
727  
728         * configure.in: Add getc_unlocked to CHECK_FUNCS().
729  
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)
734  
735 2002-05-10  Naba Kumar  <kh_naba@users.sourceforge.net>
736
737         * configure.in: Added "hi" to ALL_LINGUAS.
738
739 2002-05-08  Michael Natterer  <mitch@gimp.org>
740
741         * configure.in: fixed yesterdays fix for cross compiling: simply
742         check the variable "cross_compiling" which gets set by autoconf.
743
744 2002-05-07  Matthias Clasen  <maclas@gmx.de>
745
746         * glib/gmarkup.c (unescape_text): Report unfinished entity
747         references as errors rather than running into an assert.  (#80441)
748
749 2002-05-07  Michael Natterer  <mitch@gimp.org>
750
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.
754
755 Tue May  7 11:24:22 2002  Owen Taylor  <otaylor@redhat.com>
756
757         Fixes for #79347, Ron Arts.
758
759         * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
760         don't g_return_if_fail().
761
762         * tests/qsort-test.c (main): Add a 0 element test.
763
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.
767
768 Mon May  6 16:00:41 2002  Owen Taylor  <otaylor@redhat.com>
769
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]
773
774 Mon May  6 11:48:08 2002  Owen Taylor  <otaylor@redhat.com>
775
776         [ merged from stable ]
777  
778         * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
779  
780         * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
781         compiling "what went wrong" test case. (#79330)
782  
783         * m4macros/glib-2.0.m4: Remove reference to editing
784         pkg-config script. (From Jim Gettys)
785  
786         * configure.in: (Look for dyld interfaces before dlopen()
787         since OS X can have both. Patch from Jacob Berkman, 
788         #80438)
789         
790 2002-05-01  jacob berkman  <jacob@ximian.com>
791
792         * configure.in: fix typo on 64-bit printf formatting string
793         configure message (fixes #80389)
794
795 2002-04-29  Pablo Saratxaga  <pablo@mandrakesoft.com>
796
797         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
798
799 2002-04-19  Tor Lillqvist  <tml@iki.fi>
800
801         * glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
802         note to the gtk-doc comment.
803
804         * glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
805         blocks. It's enough to have them in gspawn.c.
806
807 2002-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
808
809         * gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
810
811 2002-04-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
812
813         * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
814         for all threads leaving it. (#78348)
815
816 2002-04-11  Matthias Clasen  <maclas@gmx.de>
817
818         * tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
819         stuff fed to g_print.
820
821 2002-04-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
822
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)
826         
827 2002-04-08  Stanislav Brabec  <utx@penguin.cz> 
828
829         * cs.po: Added Czech (cs) to ALL_LINGUAS.
830
831 2002-03-31  Hasbullah Bin Pit <sebol@ikhlas.com>
832
833         * configure.in: Added Malay (ms)to ALL_LINGUAS.
834
835 2002-03-29  Tor Lillqvist  <tml@iki.fi>
836
837         * glib/glib.def: Add g_convert_init.
838
839 Thu Mar 28 18:25:14 2002  Owen Taylor  <otaylor@redhat.com>
840
841         * Released 2.0.1
842
843         * configure.in: Version 2.0.1, interface, binary age 1.
844
845 Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>
846
847         * README: Remove warning about g_print, etc, encoding.
848
849         * NEWS: Updates.
850
851         * glib/gmessages.c (g_log_default_handler): Use %lu
852         (plus a cast) when printing out pid_t arguments.
853         (#76770, Morten Welinder)
854
855         * glib/gstrfuncs.c (g_strdup_vprintf): Check the
856         result of vasprintf(), return NULL on failure.
857         (#76802, Akira Tagoh)
858
859         * tests/testglib.c (TEST): Supress a warning with
860         some GCC versions. 
861
862 Thu Mar 28 20:31:51 2002  Tim Janik  <timj@gtk.org>
863
864         * glib/gmessages.c:
865         (g_print): 
866         (g_printerr): convert prtinf() strings to local charset
867         when writing them to stdout or stderr.
868
869 Wed Mar 27 18:42:22 2002  Tim Janik  <timj@gtk.org>
870
871         * gmessages.[hc]:
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
883         recursion.
884
885 Mon Mar 25 18:13:06 2002  Owen Taylor  <otaylor@redhat.com>
886
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)
891
892 Fri Mar 22 17:59:27 2002  Owen Taylor  <otaylor@redhat.com>
893
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.
897
898 Wed Mar 20 18:20:21 2002  Owen Taylor  <otaylor@redhat.com>
899
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)
903
904 Wed Mar 20 11:17:32 2002  Owen Taylor  <otaylor@redhat.com>
905
906         * glib/gfileutils.c (get_contents_regfile): Close the
907         file descriptor. (#75507, Matthias Clasen)
908
909 Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>
910
911         * configure.in: Use $PKG_CONFIG, not pkg-config.
912         (LEE Sau Dan, #75572)
913
914 2002-03-20  Sven Neumann  <sven@gimp.org>
915
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).
919
920 2002-03-17  Tor Lillqvist  <tml@iki.fi>
921
922         * README.win32: Add MSVC-specific text by Hans Breuer.
923
924 2002-03-16  Tor Lillqvist  <tml@iki.fi>
925
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().
933
934 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
935
936         * glib/giochannel.c (g_io_channel_write_chars): Fix some
937         gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
938
939 2002-03-14  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
940
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)
948
949 2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
950         * glib/gconvert.c 
951           glib/gen-unicode-tables.pl
952           glib/gunidecomp.h : fixed cast/type problems to 
953           avoid warnings (with forte compiler) (#73898)
954         
955 2002-03-12  Alexander Larsson  <alla@lysator.liu.se>
956
957         * glib/gconvert.c:
958         Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
959         use instead. Add g_convert_init() that calls have_broken_filenames()
960
961         * gthread/gthread-impl.c:
962         Have g_thread_init call g_convert_init.
963
964 2002-03-11  Matthias Clasen  <maclas@gmx.de>
965
966         * glib/gstrfuncs.c (g_strtod): 
967         (g_ascii_strtod): 
968         (g_ascii_dtostr): 
969         (g_ascii_formatd): Doc formatting fixes.
970