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