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