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