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