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