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