Do handle G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If
[platform/upstream/glib.git] / ChangeLog.pre-2-10
1 2002-11-18  Tor Lillqvist  <tml@iki.fi>
2
3         * glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
4         G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
5         flag is not set, don't call DuplicateHandle() on the handle
6         returned by the helper process, and set the "child pid" returned
7         to the called to zero. Close the handle to the helper process in
8         all cases.
9
10         * glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
11         behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
12
13 2002-11-18  Tor Lillqvist  <tml@iki.fi>
14
15         [Win32] Fix the asynchronous g_spawn* to return the process handle
16         of the started program properly. (Note: not the process id. The
17         spawn*() functions in the C runtime return the created process's
18         handle. There doesn't seem to be any way to get the process id of
19         a child process if you have the handle. But then, the process
20         handle usually is more useful anyway.)
21
22         * glib/gspawn-win32-helper.c (WinMain): If the spawning of the
23         child process succeeded, and if asynchronous spawn (P_NOWAIT),
24         write the result handle up to the parent process, waiting to read
25         it in do_spawn_with_pipes().
26
27         * glib/gspawn-win32.c (do_spawn): Use return value from spawning
28         the helper. If it is -1 the helper wasn't found or couldn't be run
29         for some reason. Otherwise it is the helper's process handle.
30
31         (g_spawn_async_with_pipes): Pass the child_pid parameter on to
32         do_spawn_with_pipes().
33
34         (do_spawn_with_pipes): Take also a child_pid parameter. If
35         do_spawn() returned -1, fail immediately. Otherwise make the
36         handle passed to us by the helper process into a handle valid in
37         this process by calling DuplicateHandle().
38
39 2002-11-17  Tor Lillqvist  <tml@iki.fi>
40
41         * glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
42         G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
43         on Windows, at least not now. Always pass dont_wait as TRUE to
44         do_spawn_with_pipes(). The semantics of the dont_wait parameter is
45         very different from the semantics of the intermediate_child
46         parameter to fork_exec_with_pipes() in the Unix version. This
47         fixes a serious bug, g_spawn_async() in fact behaved
48         synchronously.
49
50         (do_spawn_with_pipes, do_spawn): Rename from
51         fork_exec_with_pipes() and do_exec(), those names were from the
52         Unix bersion, and misleading.
53
54         (close_and_invalidate): Don't try to close invalid fds.
55
56         * glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
57         Windows behaviour. There is no fork(), so the child_setup()
58         function is in fact called in the parent.
59         
60         * glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
61         debugging output.
62
63         * tests/spawn-test-win32-gui.c: New file. Test program to be
64         linked as a GUI application. Behaves differently depending on how
65         invoked (by spawn-test).
66
67         * tests/spawn-test.c (run_tests): On Win32, run the
68         spawn-test-win32-gui program, too, in several ways, synchronously
69         and asynchronously.
70
71         * tests/Makefile.am: Corresponding change.
72
73 Fri Nov  8 19:44:20 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
74
75         * docs/reference/glib/tmpl/arrays.sgml:
76         * docs/reference/glib/tmpl/arrays_byte.sgml:
77         * docs/reference/glib/tmpl/arrays_pointer.sgml:
78         * docs/reference/glib/tmpl/date.sgml:
79         * docs/reference/glib/tmpl/linked_lists_double.sgml:
80         * docs/reference/glib/tmpl/linked_lists_single.sgml:
81         * docs/reference/glib/tmpl/main.sgml:
82         * docs/reference/glib/tmpl/queue.sgml:
83         * docs/reference/glib/tmpl/random_numbers.sgml:
84         * docs/reference/glib/tmpl/relations.sgml:
85         * docs/reference/glib/tmpl/scanner.sgml:
86         * docs/reference/gobject/tmpl/gtype.sgml:
87         * docs/reference/gobject/tmpl/value_arrays.sgml glib/garray.h:
88         * glib/gdate.h glib/giochannel.h glib/glist.h glib/gmain.c:
89         * glib/gmain.h glib/gqueue.c glib/gqueue.h glib/grand.c glib/grand.h:
90         * glib/grel.h glib/gslist.h glib/gtimer.h gobject/gvaluearray.h:
91
92         Trivial s/foo/foo_/ fixes to make <glib.h> includable with
93         -Wshadow without warnings (#91680)
94
95 Thu Nov  7 19:32:26 2002  Owen Taylor  <otaylor@redhat.com>
96
97         * glib/gutils.[ch] (g_set/get_application_name): 
98         Patch from Havoc Pennington to add functions for 
99         setting and getting a human readable application
100         name.
101
102         * configure.in: Up to version 2.1.3, since we'll
103         need to depend on last addition for GTK+.
104
105 2002-11-06  Tor Lillqvist  <tml@iki.fi>
106
107         * glib/glib.def: Add g_main_thread_init.
108
109 2002-11-06  Matthias Clasen  <maclas@gmx.de>
110
111         * glib/gstrfuncs.c (g_str_has_suffix): 
112         (g_str_has_prefix): Minor doc markup fix.
113
114 Mon Nov  4 10:45:48 2002  Owen Taylor  <otaylor@redhat.com>
115
116         * configure.in: Add -DG_DISABLE_CAST_CHECKS for 
117         everything but --enable-debug.
118
119         * configure.in: Require pkg-config 0.14. (#97553)
120
121 Mon Nov  4 14:41:48 2002  Owen Taylor  <otaylor@redhat.com>
122  
123         * glib/gbsearcharray.c: Include config.h
124         so DISABLE_MEMPOOLS actually has an effect.
125         (#96437, Morten Welinder)
126  
127         * tests/uri-test.c: Include <config.h>
128
129 2002-11-03  Dmitry G. Mastrukov  <dmitry@taurussoft.org>
130
131         * configure.in: Added Belarusian to ALL_LINGUAS
132
133 2002-11-02  Daniel Elstner  <daniel.elstner@gmx.net>
134
135         * glib/giochannel.c (g_io_channel_write_chars): Fix left_len
136         calculation in the from UTF-8 to UTF-8 case: left_len should
137         be the number of bytes left in the input buffer rather than
138         channel->write_buf. (#96373)
139
140 2002-10-27  Tor Lillqvist  <tml@iki.fi>
141
142         * configure.in (G_MODULE_LDFLAGS): Don't set on Win32, only causes
143         trouble.
144         
145         * glib/gmain.c (g_poll): Fix for bug reported by Herman Bloggs
146         (http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00101.html)
147         and others. We waited for events only for GPollFDs whose events
148         field had G_IO_IN set. We need to wait also for events for
149         GPollFDs that have just G_IO_OUT set. Non-blocking sockets in the
150         process of being connect()ed are one such case. Also silence a
151         couple of gcc warnings.
152
153 Fri Oct 18 13:41:30 2002  Manish Singh  <yosh@gimp.org>
154
155         * glib/giochannel.c (g_io_channel_read_line_backend): avoid
156         creating negative values out of unsigned values using MAX,
157         check to see if the result would be positive before doing
158         the calculation.
159
160 Tue Oct 15 15:28:47 2002  Manish Singh  <yosh@gimp.org>
161
162         * tests/iochannel-test.c: use gsize instead of int where appropriate
163         (64-bit cleanliness fix). Removed leftover line_term cruft.
164
165 Tue Oct 15 15:07:45 2002  Manish Singh  <yosh@gimp.org>
166
167         * gmodule/Makefile.am gobject/Makefile.am gthread/Makefile.am:
168         add -DG_DISABLED_DEPRECATED
169
170         * tests/gio-test.c tests/mainloop-test.c tests/string-test.c
171         tests/testglib.c test/tree-test.c tests/unicode-collate.c
172         tests/unicode-normalize.c: Deprecation cleanup
173
174 Mon Oct 14 15:51:05 2002  Owen Taylor  <otaylor@redhat.com>
175
176         * glib/gdate.c (g_date_fill_parse_tokens): Fix a memory
177         leak. (#94550, Sebastian Rittau)
178
179 Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
180
181         * glib/gcompletion.[ch] (g_completion_complete): Make
182         prefix argument const. (#91662, Gustavo Carneiro) 
183
184 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
185  
186         * tests/mainloop-test.c (adder_response): Fix a minor memory
187         leak.
188  
189 Sat Oct 12 21:30:41 2002  Tim Janik  <timj@gtk.org>
190
191         * merged up from glib-2-0:
192
193         * glib/gstrfuncs.c (g_ascii_strtod): fix comment.
194         (g_ascii_strtoull): new function, acting like strtoull(3) in the C
195         locale.
196
197         * glib/gscanner.[hc]: fix 32bit issues with integer parsing and
198         support storing 64bit values in GTokenValue by
199         using g_ascii_strtoull().
200
201 Sat Oct 12 12:34:22 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
202
203         * glib/gtree.c (g_tree_search), glib/gspawn.c
204         (g_spawn_async_with_pipes): 
205
206         Documentation fixes: #71778, Owen Taylor; #85095, Bill Janssen,
207         Owen Taylor. 
208
209 Thu Oct 10 23:27:02 2002  Tim Janik  <timj@gtk.org>
210
211         * glib/gscanner.c (g_scanner_msg_handler): if input_name is NULL,
212         print out "<memory>" instead of completely skipping input specification
213         and thusly loosing error line information.
214
215 Sun Sep 29 12:15:44 2002  Manish Singh  <yosh@gimp.org>
216
217         * tests/mainloop-test.c: use gsize instead of int where appropriate
218         (64-bit cleanliness fix)
219
220 2002-09-29  Tor Lillqvist  <tml@iki.fi>
221
222         * configure.in: Instead of forcing -fnative-struct into CFLAGS
223         when using gcc for Win32, check for gcc version 3.x which uses
224         -mms-bitfields instead. Also check if either of these switches is
225         actually available at all, and warn if not. Thanks to Soren
226         Andersen for the inspiration.
227
228         * HACKING: Say we require autoconf 2.52 as that is what
229         configure.in does.
230
231 2002-09-23  Arvind Samptur <arvind.samptur@wipro.com>
232         * glib/gspawn.c (fork_exec_with_pipes) : when the child fails
233         we need to reap it to avoid a zombie. This would
234         happen in case of g_spawn_sync. Fixes #92658
235
236 2002-09-20  Matthias Clasen  <maclas@gmx.de>
237
238         * glib/gscanner.c (g_scanner_msg_handler): Don't print
239         scanner->input_name when it is NULL.  (#93752)
240
241 2002-09-06  Havoc Pennington  <hp@redhat.com>
242
243         * autogen.sh: automake 1.4
244
245 2002-09-01  Soeren Sandmann  <sandmann@daimi.au.dk>
246
247         * docs/reference/glib/tmpl/datalist.sgml, glib/gmain.c:
248
249         Documentation fixes: (#75255, Martin Schulze; #76104, Daryll Strauss)
250
251 2002-08-26  Tor Lillqvist  <tml@iki.fi>
252
253         * configure.in (G_LIBS_EXTRA): Don't link with -lwsock32 on
254         Cygwin (#91696, Masahiro Sakai).
255
256 Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
257
258         * glib/gconvert.c (strdup_len): validate 'len' argument properly
259         for the case that input string is not null-terminated. (#91222)
260
261 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
262
263         * configure.in: added pt_BR to ALL_LINGUAS
264
265 2002-08-07  Matthias Clasen  <maclas@gmx.de>
266
267         * glib/gmarkup.c (g_markup_parse_context_get_element): 
268         Use g_return_val_if_fail, no g_return_if_fail.
269
270 2002-08-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
271
272         * glib/gthread.c: Set the normal PID surrogate priority according
273         to getpid() to avoid errors for niced processes. (#86116)
274
275         * gthread/gthread-impl.c, gthread/gthread-posix.c,
276         gthread/gthread-solaris.c: Do the same for the posix/dce
277         implementation. Solaris still needs to set priority of the main
278         thread, because all unbound threads will schedule according to
279         that value and it defaults to 0 (the minimal value). 
280
281         * glib/gmain.c: Factor out g_main_context_init_pipe from
282         g_main_context_new to initialize the wakeup pipe of a
283         context. Call that function from g_main_context_new if threads are
284         initialized and for all contexts when threads are initialized
285         in g_main_thread_init. (#86872) 
286
287         * gthread/gthread-impl.c: Call g_main_thread_init. (#86872) 
288
289 Thu Jul 25 14:23:15 2002  Owen Taylor  <otaylor@redhat.com>
290
291         * glib/gfileutils.c: Clarify the behavior of g_build_path()
292         for empty elements and for leading and trailing copies
293         of the separator in the docs.
294  
295         * glib/gfileutils.c: Fix problems with leading elements
296         consisting only of "/" characters. (#85928, Guillaume Chazarain)
297  
298         * tests/strfunc-test.c (main): Add more test cases
299         for g_build_filename().
300  
301 2002-07-26  Matthias Clasen  <maclas@gmx.de>
302
303         * glib/gunicode.h: 
304         * glib/gutf8.c (g_utf8_strreverse): New function to revert
305         a utf8 string.
306         * glib/gpattern.c (g_utf8_reverse): Gone, replaced by 
307         g_utf8_strreverse.  (#87725)
308
309 Thu Jul 25 20:57:20 2002  Owen Taylor  <otaylor@redhat.com>
310
311         * glib/giochannel.c (g_io_channel_read_line): Fix 
312         docs for @str_return to conform to the main docs
313         and the implementation as to whether the terminator
314         is included. (#87964, Jacob Berkman)
315
316 Thu Jul 25 19:52:41 2002  Owen Taylor  <otaylor@redhat.com>
317
318         * glib/guniprop.c (real_tolower): Handle the 
319         end of the string properly when max_len is set.
320         (#88545, Morten Welinder.) Rename the next_t
321         variable to next_type to make cc-mode happy.
322
323         * glib/gconvert.c (g_iconv_open): Fix missing
324         label from previous commit.
325
326 Thu Jul 25 19:41:03 2002  Owen Taylor  <otaylor@redhat.com>
327
328         * glib/giochannel.c (g_io_channel_get_flags): Fix 
329         incorrect return value in g_return_val_if_fail 
330         (#85545, David L. Cooper II)
331
332 Thu Jul 25 19:12:43 2002  Owen Taylor  <otaylor@redhat.com>
333
334         * glib/giochannel.c (g_io_channel_set_encoding): Clarify
335         that only one of the conditions listed in the docs
336         need to be true, not all of them. (#87176,
337         Sebastian Rittau)
338
339         * glib/giochannel.c (g_io_channel_read_line): Fix 
340         description of the return value. (#87754, Manuel Clos)
341
342 Thu Jul 25 19:02:53 2002  Owen Taylor  <otaylor@redhat.com>
343
344         * glib/gmain.c (g_timeout_add): Remove reference
345         in the docs to @notify parameter. (#87768,
346         Manuel Clos)
347
348 Thu Jul 25 17:57:07 2002  Owen Taylor  <otaylor@redhat.com>
349
350         * glib/gconvert.c (g_iconv_open): Document the
351         (GIConv)-1 return value on failure. (#87559, 
352         Jarek Dukat)
353
354         * glib/gconvert.c (g_iconv_open): Fix potential
355         problems with the assumption that (GIConv)(iconv_t)-1
356         is the same as (GIConv)-1.
357         
358 2002-07-15  Matthias Clasen  <maclas@gmx.de>
359
360         * glib/gmarkup.h: 
361         * glib/gmarkup.c (g_markup_parse_context_get_element): New
362         function to get the currently open element.  (#70448)
363
364 2002-07-04  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
365
366         * tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
367         throughout the files, which didn't already have them. (#87312)
368
369 2002-07-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
370
371         * configure.in: Made the thread flags determination tests first
372         check for the canonical form -pthread[s], then for other
373         possibilities. Also recognize some more platforms. Modeled after
374         patch from Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
375         (#77981).
376         
377         * configure.in: Fixed bugs in posix thread priority
378         resolution. Also added AIX priorities. Fix from
379         Laurent Vivier <Laurent.Vivier@bull.net>. (#82599)
380         
381         * gthread/gthread-solaris.c: Use thr_min_stack() instead of
382         sysconf (_SC_THREAD_STACK_MIN). if stack_size is 0 on entry to
383         g_thread_create_solaris_impl, also pass 0 to thr_create. Otherwise
384         the stack might be to small for any nontrivial thread. Discovered
385         on intel-solaris by Rajkumar Sivasamy <rajkumar.siva@wipro.com>.
386
387 2002-07-03  Anders Carlsson  <andersca@gnu.org>
388
389         * configure.in: Add a forgotten trailing ` in the 
390         GLIB_BINARY_AGE expression. Also fixup LT_CURRENT.
391
392 2002-07-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
393
394         * configure.in: Set binary age to 0 to make it compile.
395
396         * configure.in: Improve checks for dce/posix threads to also do
397         the right thing, if the thread functions are not declared in
398         pthread.h. Idea from Miroslaw Dobrzanski-Neumann
399         <mne@mosaic-ag.com> in #77981.
400
401 2002-07-01  Anders Carlsson  <andersca@gnu.org>
402
403         * configure.in: Up version to 2.1.0.
404
405 2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
406
407         * glib/garray.h: Add parenthesis to protect macro
408         argument. Spotted by Sam Couter <sam@topic.com.au>. (#86826)
409
410 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
411
412         * glib/gmessages.h (g_assert, g_assert_not_reached,
413         g_return_if_fail, g_return_val_if_fail): In case of
414         G_DISABLE_ASSERT replace "G_STMT_START{ }G_STMT_END" with
415         "G_STMT_START{ (void)0; }G_STMT_END", because the former chokes
416         gcc prior to 3.0. (#86664)
417
418 2002-06-26  Yanko Kaneti <yaneti@declera.com>
419
420         * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
421
422 Thu Jun 13 16:12:04 2002  Owen Taylor  <otaylor@redhat.com>
423
424         * glib/gmain.c (struct _GTimeoutSource): Make 
425         interval unsigned to match g_timeout_source_new().
426         (#82624, Tim Janik.)
427
428         * glib/gmain.c (g_timeout_prepare): Add some
429         extra gymnastics to avoid signed/unisgned integer
430         overflows.
431
432 Thu Jun 13 15:57:46 2002  Owen Taylor  <otaylor@redhat.com>
433
434         * INSTALL.in: Add a note about the deficiency
435         of Tru64 iconv. (#81699, Manuel Op de Coul)
436
437 Tue Jun 11 17:03:39 2002  Owen Taylor  <otaylor@redhat.com>
438
439         * tests/patterntest.c (test_compilation)
440         * glib/gmem.c (profiler_try_realloc): A couple
441         of 64-bit printf format fix from George Lebl.
442         (#82817)
443
444         * glib/gconvert.c (open_converter): Fix gsize/gint
445         mixup for g_iconv() arguments. (#83270,
446         David L. Cooper II)
447
448 2002-06-03  Matthias Clasen  <maclas@gmx.de>
449
450         * glib/gwin32.c (g_win32_get_package_installation_directory):
451         Replace homegrown "hash" entity by standard ISO entity "num".
452
453 2002-05-26  Matthias Clasen  <maclas@gmx.de>
454
455         * glib/gmain.c: Remove references to nonexisting functions 
456         g_source_set_callback_closure(), g_source_poll(), g_source_add()
457         from docs.
458
459         * glib/gdir.c (g_dir_open): Typo fix in docs.
460
461         * glib/gasyncqueue.c (g_async_queue_lock):
462         (g_async_queue_unref_and_unlock): Fix markup to avoid erroneous 
463         <link>s in docs.
464
465         * glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
466
467         * glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
468
469         * glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
470
471 2002-05-23  Havoc Pennington  <hp@redhat.com>
472
473         * glib/gspawn.c (fork_exec_with_pipes): on success, close the
474         pipes from the child. Fix from Tim.
475
476 2002-05-22  jacob berkman  <jacob@ximian.com>
477
478         * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop
479
480 Wed May 22 15:40:47 2002  Owen Taylor  <otaylor@redhat.com>
481
482         * README.in: Remove notes about now-fixed-bugs.
483
484         * m4macros/glib-gettext.m4 acinclude.m4: Get rid
485         of AC_MSG_NOTICE() usage, since some broken systems
486         (Hi Debian!) might not be using autoconf-2.5x for
487         downstream packages even though we require it for
488         glib itself.
489
490         * INSTALL.in: Add a note about installing extra
491         converters for Solaris.
492
493         * glib/gutils.h (g_bit_nth_msf): Fix termination
494         condition. (#82582, Paolo Molaro)
495  
496 Tue May 21 15:51:17 2002  Owen Taylor  <otaylor@redhat.com>
497
498         * configure.in: $with_libiconv, not $with_iconv.
499
500 Mon May 20 18:02:46 2002  Owen Taylor  <otaylor@redhat.com>
501
502         * configure.in: Move iconv tests before gettext
503         checks. (#81999)
504
505         * m4macros/glib-gettext.m4 acinclude.m4: If we can't
506         link to gettext, try adding in -liconv. (#80076,
507         Boyd Lynn Gerber)
508
509         * m4macros/glib-gettext.m4 acinclude.m4: Suppress
510         warnings about xgettext not being GNU gettext when
511         libintl wasn't found at all. 
512         (#79016, Andrew P. Lentvorski, Jr.)
513          
514 2002-05-21  Matthias Clasen  <maclas@gmx.de>
515
516         * glib/gmarkup.c (g_markup_parse_context_parse): Added
517         proper support for CDATA sections.
518
519 2002-05-20  jacob berkman  <jacob@ximian.com>
520
521         * glib/gdir.c: include sys/types.h before dirent.h to build on
522         darwin (fixes #72859)
523
524 Mon May 20 15:35:59 2002  Owen Taylor  <otaylor@redhat.com>
525  
526         * glib/gfileutils.c (get_contents_regfile): Fix double
527         close of file descriptor on error. (#82139, Wayne Schuller)
528  
529         * glib/gspawn.c (close_and_invalidate): Don't close
530         fd's that have already been closed. (Fix from Michael
531         Meeks, #81959)
532  
533         * glib/giochannel.c (g_io_channel_close): If not flushing,
534         dump the contents of the write buffers, so we won't try
535         to write them to an invalid fd later. (Patch from Ron Steinke,
536         fixing #78290, Andreas Persenius.)
537  
538 2002-05-18  Matthias Clasen  <maclas@gmx.de>
539
540         * tests/markups/fail-36.gmarkup: 
541         * tests/markups/fail-35.gmarkup: 
542         * tests/markups/valid-8.gmarkup: 
543         * tests/markups/valid-7.gmarkup: 
544         * tests/markups/valid-6.gmarkup: 
545         * tests/markups/valid-5.gmarkup: New testcases.
546
547         * tests/markup-test.c (passthrough_handler): 
548         (text_handler): Don't ignore the text_len parameter.
549
550         * glib/gmarkup.c (find_current_text_end): Don't hang on embedded
551         nuls.  (#81977)
552         (g_markup_parse_context_parse): Fix passthrough handling to
553         correctly skip processing instructions, comments, doctype
554         declarations and CDATA marked sections.  (#81977)
555
556 Sat May 18 00:21:51 2002  Tim Janik  <timj@gtk.org>
557
558         [merged from stable]
559
560         * glib/gscanner.c (g_scanner_unexp_token): fix missing cases for
561         expected_token.
562
563 2002-05-17  Tor Lillqvist  <tml@iki.fi>
564
565         * config.h.win32.in: Match new additions in a configure-produced
566         config.h.
567
568         * glibconfig.h.win32.in: gssize and gsize as in a
569         configure-produced glibconfig.h.
570
571         * glib/glib.def: Add new functions.
572
573 Thu May 16 12:24:00 2002  Owen Taylor  <otaylor@redhat.com>
574  
575         * acinclude.m4 m4macros/glib-gettext.m4: Incorporate 
576         AM_LC_MESSAGES, AM_PATH_PROG_WITH_TEST as AM_GLIB_* to avoid 
577         dependencies on gettext m4 files. (#81885, Hidetoshi Tajima.)
578         
579 2002-05-14  Alex Larsson <alexl@redhat.com>
580         
581         * glib/gstrfuncs.c: 
582         * glib/gstrfuncs.h:
583         New functions g_str_has_suffix and g_str_has_prefix.
584         
585         * tests/string-test.c: (main):
586         Test the new functions.
587
588 Mon May 13 23:20:00 2002  Owen Taylor  <otaylor@redhat.com>
589
590         * autogen.sh (have_gettext): Add a check for GNU gettext.
591         (Pointed out by Dan Winship in #59386.)
592
593 Mon May 13 11:55:33 2002  Owen Taylor  <otaylor@redhat.com>
594
595         * configure.in acglib.m4: If sizeof(int) == sizeof(long)
596         run compilation tests to determine which way gsize should
597         be defined. (#74413, reported by Miroslaw Dobrzanski-Neumann)
598
599 Mon May 13 11:42:23 2002  Owen Taylor  <otaylor@redhat.com>
600  
601         * glib/libcharset/*: Update from libcharset CVS.
602         Includes additional encodings for Solaris (#80396,
603         Qingjiang Yuan)
604  
605         * configure.in: Add getc_unlocked to CHECK_FUNCS().
606  
607         * glib/gmessages.c (strdup_convert): If
608         g_convert_with_fallback() fails, print the error
609         message to stderr the first time, then return
610         the original string. (#78197)
611  
612 2002-05-10  Naba Kumar  <kh_naba@users.sourceforge.net>
613
614         * configure.in: Added "hi" to ALL_LINGUAS.
615
616 2002-05-08  Michael Natterer  <mitch@gimp.org>
617
618         * configure.in: fixed yesterdays fix for cross compiling: simply
619         check the variable "cross_compiling" which gets set by autoconf.
620
621 2002-05-07  Matthias Clasen  <maclas@gmx.de>
622
623         * glib/gmarkup.c (unescape_text): Report unfinished entity
624         references as errors rather than running into an assert.  (#80441)
625
626 2002-05-07  Michael Natterer  <mitch@gimp.org>
627
628         * configure.in: added a new conditional CROSS_COMPILING which
629         indicates ($build != $host). If it is set, look for
630         glib-genmarshal in PATH. Error out if it was not found.
631
632 Tue May  7 11:24:22 2002  Owen Taylor  <otaylor@redhat.com>
633
634         Fixes for #79347, Ron Arts.
635
636         * glib/gqsort.c (g_qsort_with_data): Handle 0 elements,
637         don't g_return_if_fail().
638
639         * tests/qsort-test.c (main): Add a 0 element test.
640
641         * glib/garray.c (g_[ptr_]array_sort_with[_data]): 
642         Remove invalid assertions that array->pdata != NULL ..
643         it's NULL for 0 elements which is a valid case.
644
645 Mon May  6 16:00:41 2002  Owen Taylor  <otaylor@redhat.com>
646
647         * glib/gbacktrace.h: Exclude OSF from alpha definition
648         of G_BREAKPOINT(), since the assembler apparently
649         doesn't support bpt. (#77852, Gareth Pierce) [from stable]
650
651 Mon May  6 11:48:08 2002  Owen Taylor  <otaylor@redhat.com>
652
653         [ merged from stable ]
654  
655         * Makefile.am (EXTRA_DIST): Add ChangeLog.pre-2-0 (#78641)
656  
657         * m4macros/glib-2.0.m4: save CFLAGS/LIBS properly when
658         compiling "what went wrong" test case. (#79330)
659  
660         * m4macros/glib-2.0.m4: Remove reference to editing
661         pkg-config script. (From Jim Gettys)
662  
663         * configure.in: (Look for dyld interfaces before dlopen()
664         since OS X can have both. Patch from Jacob Berkman, 
665         #80438)
666         
667 2002-05-01  jacob berkman  <jacob@ximian.com>
668
669         * configure.in: fix typo on 64-bit printf formatting string
670         configure message (fixes #80389)
671
672 2002-04-29  Pablo Saratxaga  <pablo@mandrakesoft.com>
673
674         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
675
676 2002-04-19  Tor Lillqvist  <tml@iki.fi>
677
678         * glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
679         note to the gtk-doc comment.
680
681         * glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
682         blocks. It's enough to have them in gspawn.c.
683
684 2002-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
685
686         * gthread/gthread-impl.c (g_thread_init): Fixed typo. (#78985)
687
688 2002-04-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
689
690         * glib/gthreadpool.c (g_thread_pool_thread_proxy): Unlock the pool
691         for all threads leaving it. (#78348)
692
693 2002-04-11  Matthias Clasen  <maclas@gmx.de>
694
695         * tests/patterntest.c: Remove manual UTF-8 -> Latin1 conversion for
696         stuff fed to g_print.
697
698 2002-04-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
699
700         * tests/gio-test.c, tests/markup-test.c: Use gsize instead of
701         gint. From Miroslaw Dobrzanski-Neumann
702         <mne@mosaic-ag.com>. (#77982)
703         
704 2002-04-08  Stanislav Brabec  <utx@penguin.cz> 
705
706         * cs.po: Added Czech (cs) to ALL_LINGUAS.
707
708 2002-03-31  Hasbullah Bin Pit <sebol@ikhlas.com>
709
710         * configure.in: Added Malay (ms)to ALL_LINGUAS.
711
712 2002-03-29  Tor Lillqvist  <tml@iki.fi>
713
714         * glib/glib.def: Add g_convert_init.
715
716 Thu Mar 28 18:25:14 2002  Owen Taylor  <otaylor@redhat.com>
717
718         * Released 2.0.1
719
720         * configure.in: Version 2.0.1, interface, binary age 1.
721
722 Thu Mar 28 18:22:53 2002  Owen Taylor  <otaylor@redhat.com>
723
724         * README: Remove warning about g_print, etc, encoding.
725
726         * NEWS: Updates.
727
728         * glib/gmessages.c (g_log_default_handler): Use %lu
729         (plus a cast) when printing out pid_t arguments.
730         (#76770, Morten Welinder)
731
732         * glib/gstrfuncs.c (g_strdup_vprintf): Check the
733         result of vasprintf(), return NULL on failure.
734         (#76802, Akira Tagoh)
735
736         * tests/testglib.c (TEST): Supress a warning with
737         some GCC versions. 
738
739 Thu Mar 28 20:31:51 2002  Tim Janik  <timj@gtk.org>
740
741         * glib/gmessages.c:
742         (g_print): 
743         (g_printerr): convert prtinf() strings to local charset
744         when writing them to stdout or stderr.
745
746 Wed Mar 27 18:42:22 2002  Tim Janik  <timj@gtk.org>
747
748         * gmessages.[hc]:
749         major cleanups. introduced _g_log_fallback_handler() to handle
750         recursive messages which really doesn't call any GLib functions.
751         this allowes the default handler to use normal GLib functions and
752         also fixes user supplied log level handlers.
753         fixed locking issues, based on a patch from Sebastian Willhelmi,
754         attached to #74356. translate log messages from UTF-8, based
755         on the same patch. save fatal and recursion flags across flag
756         loop. use new integer format code from above patch.
757         move GLib functions out of locked mutex state to avoid deadlocks.
758         move the level prefix and filedescriptor logic into mklevel_prefix().
759         move _g_debug_init() into a place where we can figure and handle
760         recursion.
761
762 Mon Mar 25 18:13:06 2002  Owen Taylor  <otaylor@redhat.com>
763
764         * glib/gtypes.h (GUINT*_SWAP_LE_BE_X86): Remove __const__
765         qualifier from __asm__ statements... GCC since at least
766         2.96 has assumed no side effects automaticaly, and gcc-3.1
767         will warn about this usage. (#73308, Cody Russell)
768
769 Fri Mar 22 17:59:27 2002  Owen Taylor  <otaylor@redhat.com>
770
771         * glib/gmem.c (g_mem_chunk_reset): Fix problem where
772         if g_mem_chunk_reset() is called on an alloc-only
773         memchunk, then a useles GTree was created.
774
775 Wed Mar 20 18:20:21 2002  Owen Taylor  <otaylor@redhat.com>
776
777         * glib/gconvert.c (open_converter): Try to work around segfaults
778         on Solaris if NULL is passed for outbuf... supposedly gchar
779         *outbuf = NULL... &outbuf works. (#74336, Lauri Alanko)
780
781 Wed Mar 20 11:17:32 2002  Owen Taylor  <otaylor@redhat.com>
782
783         * glib/gfileutils.c (get_contents_regfile): Close the
784         file descriptor. (#75507, Matthias Clasen)
785
786 Wed Mar 20 11:00:59 2002  Owen Taylor  <otaylor@redhat.com>
787
788         * configure.in: Use $PKG_CONFIG, not pkg-config.
789         (LEE Sau Dan, #75572)
790
791 2002-03-20  Sven Neumann  <sven@gimp.org>
792
793         * glib/ghash.c (g_hash_table_resize): avoid repeated call of 
794         g_spaced_primes_closest() by moving it out of the CLAMP macro 
795         (spotted by Salmaso Raffaele).
796
797 2002-03-17  Tor Lillqvist  <tml@iki.fi>
798
799         * README.win32: Add MSVC-specific text by Hans Breuer.
800
801 2002-03-16  Tor Lillqvist  <tml@iki.fi>
802
803         * glib/giowin32.c: Some debugging output formatting changes. The
804         following changes fix a problem with buffered GIOChannels, noticed
805         with the help of Owen's test program, thanks! (#59969)
806         (g_io_win32_prepare): Return value that takes the buffer condition
807         into account, like g_io_unix_prepare() does.
808         (g_io_win32_check): Ditto, like g_io_unix_check().
809         (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
810
811 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
812
813         * glib/giochannel.c (g_io_channel_write_chars): Fix some
814         gsize/gint mismatches. (#74422, Miroslaw Dobrzanski-Neumann)
815
816 2002-03-14  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
817
818         * glib/gmessages.c: Fixed threading issues brought up by
819         #74577. Make g_log_find_domain, g_log_domain_new,
820         g_log_domain_check_free and g_log_domain_get_handler require being
821         called with g_messages_lock held and remove all internal locking
822         in them. Then added proper locking to g_log_set_handler,
823         g_log_remove_handler and g_logv. Problem spotted by Miroslaw
824         Dobrzanski-Neumann <mne@mosaic-ag.com>. (#74577)
825
826 2002-03-13  Erwann Chenede  <erwann.chenede@sun.com>
827         * glib/gconvert.c 
828           glib/gen-unicode-tables.pl
829           glib/gunidecomp.h : fixed cast/type problems to 
830           avoid warnings (with forte compiler) (#73898)
831         
832 2002-03-12  Alexander Larsson  <alla@lysator.liu.se>
833
834         * glib/gconvert.c:
835         Cache getenv("G_BROKEN_FILENAMES") in have_broken_filenames() and
836         use instead. Add g_convert_init() that calls have_broken_filenames()
837
838         * gthread/gthread-impl.c:
839         Have g_thread_init call g_convert_init.
840
841 2002-03-11  Matthias Clasen  <maclas@gmx.de>
842
843         * glib/gstrfuncs.c (g_strtod): 
844         (g_ascii_strtod): 
845         (g_ascii_dtostr): 
846         (g_ascii_formatd): Doc formatting fixes.
847