adf6edfed6dcf1a67f930ef9ee9edb98c4e3b13f
[platform/upstream/glib.git] / ChangeLog.pre-2-12
1 2006-06-12  Matthias Clasen  <mclasen@redhat.com>
2
3         * NEWS: Updates
4
5 2006-06-09  Emmanuele Bassi  <ebassi@cvs.gnome.org>
6
7         * glib/gbookmarkfile.c (g_bookmark_file_remove_application): Use
8         an empty string to pass the test in set_app_info.
9
10         (g_bookmark_file_move_item): Remove the old item from the
11         look up table; return success in case of empty target.
12
13 2006-06-08  Tor Lillqvist  <tml@novell.com>
14
15         * glib/gunicollate.c (msc_strxfrm_wrapper): Workaround for bug in
16         strxfrm() in Microsoft's newer C runtimes. (#343919, Kazuki
17         Iwamoto)
18
19 2006-06-05  Matthias Clasen  <mclasen@redhat.com>
20
21         * configure.in: Bump version
22
23         * === Released 2.11.2 ===
24
25         * configure.in: Set interface age to 0.
26
27         * NEWS: Updates
28
29         * glib/gmain.c: Fix some doc formatting issues.
30
31         * glib/gstrfuncs.c: Revert accidental commit.
32
33         * glib/gmain.c (get_dispatch): Don't leak the
34         dispatch struct.  (#321886)
35
36         * tests/strtod-test.c: Add some tests involving
37         leading whitespace.
38
39         * glib/gstrfuncs.c (g_ascii_formatd): Skip leading 
40         whitespace.  (#343899, Ã˜ystein Johansen)
41
42 2006-06-01  Matthias Clasen  <mclasen@redhat.com>
43
44         * glib/gmain.h: 
45         * glib/gmain.c: Add three new functions, 
46         g_main_current_source, g_source_set_funcs and 
47         g_source_is_destroyed, that will be necessary to 
48         solve thread-safety issues with idles in GTK+.  
49         (#321886, Chris Wilson)
50
51 2006-06-01  Matthias Clasen  <mclasen@redhat.com>
52
53         * glib/giochannel.c (g_io_channel_write_chars): Avoid
54         running in an assertion with small writes.  (#343566, Chris
55         Wilson)
56
57         * tests/iochannel-test.c: Add a testcase for small writes.
58
59         * glib/glib.symbols: 
60         * glib/ghash.h: 
61         * glib/ghash.c: Add g_hash_table_{remove,steal}_all to
62         remove all nodes from a hash table.  (#168538, Matt Barnes)
63
64 2006-06-01  Behdad Esfahbod  <behdad@gnome.org>
65
66         * glib/gkeyfile.c (g_key_file_to_data),
67         (g_key_file_parse_value_as_comment),
68         (g_key_file_parse_comment_as_value):
69         * glib/gscanner.c (g_scanner_get_token_ll): Cleanup. Use return
70         value of g_string_free(...). (#343548, Chris Wilson)
71
72 2006-05-28  Matthias Clasen  <mclasen@redhat.com>
73
74         * glib/gmarkup.c (g_markup_parse_context_parse): 
75         Don't use g_str_has_{prefix,suffix} here.
76
77 2006-05-28  Matthias Clasen  <mclasen@redhat.com>
78
79         * glib/gmarkup.h: Add a GMarkupParseFlags flag for
80         treating CDATA as text. 
81
82         * glib/gmarkup.c (g_markup_parse_context_parse): 
83         Implement it here.
84
85 2006-05-28  Matthias Clasen  <mclasen@redhat.com>
86
87         * tests/markups/expected-*: Output that test-markup
88         is expected to produce when run on the valid gmarkup 
89         examples.
90
91         * tests/markup-test.c: Only dump the results of the
92         first, unchunked parse, to compare it against the expected
93         output. 
94
95         * tests/run-markup-tests.sh: For valid examples, compare
96         the output of test-markup against the corresponding
97         expected-<n> file.
98         
99 2006-05-24  Matthias Clasen  <mclasen@redhat.com>
100
101         * configure.in: Don't compile timeloop on Minix. 
102         (Leonard den Ottolander)
103
104 2006-05-22  Sebastian Wilhelmi  <wilhelmi@google.com>
105
106         * glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init
107         as the first of the full fledged initializers to allow the later
108         to potentially use atomic ints (which they currently do
109         not). (#342563, Peter Kjellerstedt)
110
111 2006-05-16  Matthias Clasen  <mclasen@redhat.com>
112
113         * tests/Makefile.am: 
114         * tests/strtoll-test.c: Add tests for g_ascii_strtoll()
115         and g_ascii_strtoull().
116
117         * glib/glib.symbols:
118         * glib/gstrfuncs.h: 
119         * glib/gstrfuncs.c (g_ascii_strtoll): New function to
120         parse signed 64bit integers like strtoll does.  
121
122         * glib/goption.c (parse_int64): Use g_ascii_strtoll(),
123         since strtoll() is C99 and not available on some
124         systems.  (#341826, Kazuki Iwamoto)
125
126 2006-05-15  Matthias Clasen  <mclasen@redhat.com>
127         
128         * configure.in: Bump version
129
130         * === Released 2.11.1 ===
131
132         * NEWS: Updates
133
134 2006-05-13  Matthias Clasen  <mclasen@redhat.com>
135
136         * glib/grel.c: Fix several cases of deref-before-NULL-check.
137         (#341191, Pascal Terjan)
138
139         * glib/glib.symbols: 
140         * glib/goption.h: 
141         * glib/goption.c: Allow optional summary and description
142         texts before and after the option descriptions, and add
143         a way to translate them.  (#336120, Behdad Esfahbod)
144
145 2006-05-12  Tor Lillqvist  <tml@novell.com>
146
147         * glib/giowin32.c (g_io_win32_sock_set_flags): Implement
148         setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
149         sockets. (#341192)
150         (g_io_win32_unimpl_set_flags): set_flags method for the
151         unimplemented case.
152         
153 2006-05-11  Bastien Nocera  <hadess@hadess.net>
154
155         * glib/goption.c: (parse_int64), (parse_arg), (free_changes_list):
156         * glib/goption.h:
157         * tests/option-test.c: (arg_test6), (main): add an int64 type for
158         GOption (G_OPTION_ARG_INT64) (#341237)
159
160 2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>
161
162         * glib/gthread.h, gthread/gthread-impl.c: Make the magic and
163         location arguments to the error-checking-mutex functions const and
164         do not write to them, as we might not own them. Clean up the
165         error-checking-mutex code quite a bit. (#335198, Chris Wilson)
166
167         * glib/gthread.c: Use g_atomic_pointer_set instead of old
168         homegrown version now that we have it. (#335198, Chris Wilson)
169
170         * gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent
171         calling into g_cond_wait resp. g_mutex_lock/unlock directly to
172         avoid recursions into the errorcheking mutex code (and out of
173         principle anyway). (#335198, Chris Wilson)
174
175         * tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
176
177 2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
178
179         * glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
180         system thread identifier comparision and assignment macros from
181         glib/gthread.c to glib/gthreadprivate.h.
182
183         * glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
184         glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
185         glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
186         glib/gthreadprivate.h instead of glib/gthreadinit.h.
187
188         * gthread/gthread-impl.c: Use GSystemThread instead of GThread for
189         owner determination. (#311043, jylefort@FreeBSD.org)
190
191         * tests/Makefile.am, tests/errorcheck-mutex-test: New test program
192         to test for all checked violations.
193
194         * glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c,
195         gthread/gthread-impl.c, gthread/gthread-posix.c,
196         gthread/gthread-win32.c: Use canonical include form for internal
197         headers. config.h is always there.
198
199         * Remove obsolete gthread/gthread-solaris.c.
200
201 2006-05-08  Matthias Clasen  <mclasen@redhat.com>
202
203         * tests/convert-test.c (test_one_half): Use encoding names which 
204         may work better on Solaris.  (#340434, Alessandro Vesely)
205
206         * tests/keyfile-test.c (test_number): Add some tests for
207         invalid floating point numbers.
208
209         * glib/gkeyfile.c (g_key_file_parse_value_as_double): Return
210         an error for the empty string.  (#339105, Morten Welinder)
211
212         * glib/gscanner.c (g_scanner_config_template): Make const,
213         noticed by Kjartan Maraas.
214
215 2006-05-06  Matthias Clasen  <mclasen@redhat.com>
216
217         * glib/gkeyfile.c (g_key_file_set_string_list)
218         (g_key_file_set_locale_string_list): Fix invalid memory
219         reads.  (#340816, Nick Treleaven)
220
221 2006-05-04  Alexander Larsson  <alexl@redhat.com>
222
223         * glib/gbase64.c: (g_base64_decode_step):
224         Fix OOB write (#340538)
225
226 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
227
228         * tests/base64-test.c: Add some more tests.
229
230         * glib/gbase64.c (g_base64_decode_step): Avoid writing
231         beyond the guaranteed lenght of the output buffer, if
232         there is padding.
233
234         * tests/base64-test.c (test_incremental): Use malloced memory
235         instead of stack-allocated, so that MALLOC_CHECK_=2 catches
236         the OOB write...
237
238         * glib/gbookmarkfile.c (g_bookmark_file_load_from_data): Remove
239         an overzealous return_if_fail check that causes make check to 
240         fail.
241
242 2006-05-02  Matthias Clasen  <mclasen@redhat.com>
243
244         * configure.in: Bump version
245         
246         * === Released 2.11.0 ===
247
248         * NEWS: Updates
249
250         * tests/casemap.txt: 
251         * tests/casefold.txt: Regenerate from Unicode 5.0 data. 
252
253         * glib/guniprop.c: Make interval_compare static.
254
255 Tue May  2 15:00:00 2006  Tim Janik  <timj@gtk.org>
256
257         * tests/gobject/deftype.c: added test code from Behdad Esfahbod, 
258         see #337128.
259
260 Tue May  2 14:18:25 2006  Tim Janik  <timj@gtk.org>
261
262         * glib/goption.c (g_option_context_parse): fixed leak in short
263         option parsing. rewrote parts of the code to be more concise to
264         enhance readability. fixed exaggerated uses of strlen.
265
266 2006-04-28  Behdad Esfahbod  <behdad@gnome.org>
267
268         * glib/guniprop.c: #include <stdlib.h>
269
270 2006-04-27  Matthias Clasen  <mclasen@redhat.com>
271
272         * glib/glib.symbols: Add g_unichar_iswide_cjk.
273         * glib/guniprop.c: Add a "Since: 2.12".
274
275         * NEWS: Updates
276
277 2006-04-27  Behdad Esfahbod  <behdad@gnome.org>
278
279         * docs/reference/glib/glib-sections.txt,
280         * glib/gunicode.h glib/guniprop.c: Implement g_unichar_iswide_cjk().
281         (#105626)
282
283 2006-04-27  Matthias Clasen  <mclasen@redhat.com>
284
285         * glib/gbookmarkfile.c (g_bookmark_file_set_description) 
286         (g_bookmark_file_set_title, g_bookmark_file_set_icon): 
287         Remove some special-casing of empty string which led to 
288         dangling pointers.  (#339337, Morten Welinder)
289         (expand_exec_line): Don't use printf() needlessly, handle
290         trailing '%' gracefully.  (#339338, Morten Welinder)
291         (is_element_full): Silence the compiler.
292         (g_bookmark_file_dump, bookmark_metadata_dump): 
293         (bookmark_app_info_dump): Escape strings before dumping 
294         them in xml.  (#339340, Morten Welinder)
295
296 2006-04-27  Behdad Esfahbod  <behdad@gnome.org>
297
298         * glib/gunibreak.h, glib/gunichartables.h: Regenerated using
299         Unicode Character Database 5.0 beta.
300
301 2006-04-26  Matthias Clasen  <mclasen@redhat.com>
302
303         * glib/grand.c (g_rand_new): Don't repeat a failed fclose()
304         call, since that invokes undefined behaviour.  (Coverity)
305
306 2006-04-25  Matthias Clasen  <mclasen@redhat.com>
307
308         * glib/gbookmarkfile.c (is_element_full): Avoid a possible
309         NULL dereference (found by Coverity), also avoid some 
310         pointless strdups.
311
312         * tests/keyfile-test.c (test_comments): Add a test for
313         the previous change.
314
315         * glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
316         redundant code.
317         (g_key_file_get_group_comment): Don't dereference before
318         checking for NULL.  (#338572, Coverity, Pascal Terjan)
319
320 2006-04-19  Matthias Clasen  <mclasen@redhat.com>
321
322         * glib/gdataset.c: Add some missing Since: 2.8 tags.
323
324 2006-04-19  Tor Lillqvist  <tml@novell.com>
325
326         * glib/gatomic.c: Adapt to the changed prototype of
327         InterlockedCompareExchange() in newer SDKs. Use
328         InterlockedCompareExchangePointer() when applicable. (#155884,
329         John Ehresman)
330
331 2006-04-18  Matthias Clasen  <mclasen@redhat.com>
332
333         * glib/gkeyfile.h:
334         * glib/glib.symbols:
335         * glib/gkeyfile.c: Add api to get and set doubles and 
336         lists of doubles.  (#164719, Maurizio Monge, Dom Lachowicz)
337
338         * tests/keyfile-test.c: Add tests for new api.
339
340         * glib/gkeyfile.c (g_key_file_add_group): Accept duplicate
341         groups.  (#157877, Sebastien Bacher)
342
343         * tests/keyfile-test.c: Add tests for duplicate key and
344         duplicate group handling.
345
346 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
347
348         * glib/gcompletion.c (g_completion_complete_utf8): Make passing
349         NULL for new_prefix work as documented.  (#338845, Yevgen Muntyan)
350
351         * tests/completion-test.c: Test that passing NULL for 
352         new_prefix in g_completion_complete_utf8 works.
353
354 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
355
356         * configure.in: Remove obsolete entry for no_NO.
357         * po/no.po: And the translation.
358
359 2006-04-16  Matthias Clasen  <mclasen@redhat.com>
360
361         * glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
362         overrun.  (Coverity, fix by Pascal Terjan)
363
364 2006-04-12  Bastien Nocera  <hadess@hadess.net>
365
366         reviewed by: Matthias Clasen <mclasen@redhat.com>
367
368         * glib/gconvert.c: add more details about which RFC is concerned
369         when using g_filename_to_uri (#337553)
370
371 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
372
373         * glib/goption.c (parse_arg): Add an assert to make it
374         clear when value can be NULL.
375
376 2006-04-07  Martyn Russell  <martyn@imendio.com>
377
378         * tests/threadpool-test.c: (test_thread_stop_unused): Removed an
379         assertion which can fail and is not a critical test.
380
381 2006-04-07  Hans Breuer  <hans@breuer.org>
382
383         * glib/makefile.msc.in : added gbase64.obj and derive the static libs
384         name from auto* variables
385         * glib/makefile.msc.in : link user32.lib for MessageBox()
386
387 2006-04-07  Martyn Russell  <martyn@imendio.com>
388
389         * glib/gasyncqueue.[ch]: Added private API
390         _g_async_queue_get_mutex so that g_thread_pool_free() can use the
391         async queue mutex. 
392         
393         * glib/gthreadpool.c: Make sure
394         g_thread_pool_stop_unused_threads() actually stops unused threads
395         and global limits (like max idle time and max unused threads) can
396         be set without creating a thread pool first. Fixed #335215 (patch
397         from Chris Wilson).  
398         
399         * tests/threadpool-test.c: Added two new tests, tests setting
400         global limits before creating a thread pool. The second test
401         makes sure unused threads are actually stopped when using the
402         g_thread_pool_stop_unused_threads(). 
403
404 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
405
406         * glib/gnulib/vasnprintf.c (vasnprintf): Make
407         long long printing work if snprintf is not 
408         available.  (#332841, Michael McDonald)
409
410 2006-04-05  Behdad Esfahbod  <behdad@gnome.org>
411
412         * tests/option-test.c: Check the return value of g_get_prgname for
413         NULL before passing to strcmp.
414
415         * tests/slice-test.c: Report the correct name in Usage summary.
416
417 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
418
419         * tests/run-collate-tests.sh: Fix up shell script.
420
421         * tests/option-test.c (arg_test5): Skip the test if
422         setting the locale fails.
423         (empty_test1): Reset prgname before the test.
424
425         * tests/Makefile.am: Arrange for run-bookmark-test.sh
426         to be run by make check.
427
428         * tests/utf8-pointer.c: 
429         * tests/tree-test.c: Silence warnings.
430
431 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
432
433         * glib/glib.symbols:
434         * glib/gbase64.[hc]: Add G_GNUC_MALLOC where
435         appropriate, use glib types.
436
437 2006-04-04  Alexander Larsson  <alexl@redhat.com>
438
439         * glib/Makefile.am:
440         * glib/gbase64.[ch]:
441         * glib/glib.symbols:
442         Add base64 encode/decode functions
443         
444         * glib/glib.h:
445         Include gbase64.h
446         
447         * tests/Makefile.am:
448         * tests/base64-test.c:
449         Tests for base64 functions
450
451 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
452
453         * glib/gdate.c: Move short_month_names and long_month_names
454         to bss.
455
456         * glib/gspawn-win32.c (g_spawn_error_quark):
457         * glib/gspawn.c (g_spawn_error_quark):
458         * glib/gshell.c (g_shell_error_quark):
459         * glib/gmarkup.c (g_markup_error_quark):
460         * glib/goption.c (g_option_error_quark):
461         * glib/gkeyfile.c (g_key_file_error_quark):
462         * glib/giochannel.c (g_io_channel_error_quark):
463         * glib/gfileutils.c (g_file_error_quark):
464         * glib/gconvert.c (g_convert_error_quark):
465         * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
466         * glib/gthread.c (g_thread_error_quark): No point in making
467         the error path fast by caching quarks.
468
469         * glib/gbookmarkfile.c: Make the parser struct const.
470
471 2006-04-04  Behdad Esfahbod  <behdad@gnome.org>
472
473         * glib/gbookmarkfile.c: Fix accidentally broken build.
474
475 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
476
477         * glib/gbookmarkfile.c: Don't include sys/time.h  (#337027,
478          Kazuki IWAMOTO)
479
480 2006-03-31  Tor Lillqvist  <tml@novell.com>
481
482         * glib/gstdio.c (g_remove): Revert change below. It wasn't a good
483         idea after all, says the original bug reporter. See bug for
484         discussion.
485
486 2006-03-30  Tor Lillqvist  <tml@novell.com>
487
488         * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
489         fails with errno set to ENOENT, to leave errno set to EACCESS if
490         that is the problem. (#334799, Yevgen Muntyan)
491
492 2006-03-30  Matthias Clasen  <mclasen@redhat.com>
493
494         * glib/gbookmarkfile.c (g_bookmark_file_get_app_info): Sync
495         the parameter names with the .h files, otherwise gtk-doc
496         misbehaves.
497
498 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
499
500         * tests/.cvsignore: Add bookmarkfile-test to the ignored files.
501
502 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
503
504         * tests/Makefile.am:
505         * tests/bookmarkfile-test.c:
506         * tests/run-bookmark-test.sh:
507         * tests/bookmarks/*.xbel: Add test suite for GBookmarkFile.
508
509 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
510
511         * docs/reference/glib/glib-docs.sgml:
512         * docs/reference/glib/glib-sections.txt:
513         * docs/reference/glib/tmpl/bookmarkfile.sgml: Add documentation for
514         GBookmarkFile to GLib's reference guide.
515
516 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
517
518         * glib/glib.h:
519         * glib/gbookmarkfile.h
520         * glib/gbookmarkfile.c: Add GBookmarkFile, a parser for files
521         containing bookmarks stored using the Desktop Bookmark
522         specification. Fixes bug #327662.
523
524         * glib/glib.symbols:
525         * glib/Makefile.am:
526         * glib/makefile.msc.in:
527         * glib/makefile.mingw.in: Build glue for GBookmarkFile.
528
529 2006-03-27  Dom Lachowicz  <cinamod@hotmail.com>
530
531         * tests/option-test.c: Copy-and-paste error slipped into test5. Enable
532         test5, as per Matthias' comments in bug 329548#c11.
533
534         Change a gboolean to an int. Fixes bug #329789.
535
536         * configure.in: Bump version number to 2.11.0
537         
538 2006-03-27  Matthias Clasen  <mclasen@redhat.com>
539
540         Add support for floating point numbers to goption.
541         (#329548, Behdad Esfahbod, patch by Antoine Dopffer and 
542          Dom Lachowicz)
543
544         * glib/goption.h:
545         * glib/goption.c: Support double arguments.
546
547         * tests/option-test.c: Test double arguments.`
548
549 2006-03-26  Matthias Clasen  <mclasen@redhat.com>
550
551         * glib/goption.c (g_option_context_new): Improve the description
552         of parameter_string in the docs.  (#336085, Claudio Saavedra)
553
554 2006-03-24  Martyn Russell  <martyn@imendio.com>
555
556         * glib/gthreadpool.c: Updated the documentation to explain that
557         when the maximum threads is > 1 the sort functionality is not 100%
558         accurate due to the ramdom nature of the scheduler choosing which
559         threads to execute. Fixes bug #334943.
560
561         * tests/threadpool-test.c: Disabled the debugging by default and
562         fixed the sort test to set the maximum threads to 1 to guarantee
563         the thread entry function is called in order. 
564
565 2006-03-23  Matthias Clasen  <mclasen@redhat.com> 
566
567         === Branch for 2.10 ===