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