1 2006-06-05 Matthias Clasen <mclasen@redhat.com>
3 * configure.in: Bump version
5 * === Released 2.11.2 ===
7 * configure.in: Set interface age to 0.
11 * glib/gmain.c: Fix some doc formatting issues.
13 * glib/gstrfuncs.c: Revert accidental commit.
15 * glib/gmain.c (get_dispatch): Don't leak the
16 dispatch struct. (#321886)
18 * tests/strtod-test.c: Add some tests involving
21 * glib/gstrfuncs.c (g_ascii_formatd): Skip leading
22 whitespace. (#343899, Øystein Johansen)
24 2006-06-01 Matthias Clasen <mclasen@redhat.com>
27 * glib/gmain.c: Add three new functions,
28 g_main_current_source, g_source_set_funcs and
29 g_source_is_destroyed, that will be necessary to
30 solve thread-safety issues with idles in GTK+.
31 (#321886, Chris Wilson)
33 2006-06-01 Matthias Clasen <mclasen@redhat.com>
35 * glib/giochannel.c (g_io_channel_write_chars): Avoid
36 running in an assertion with small writes. (#343566, Chris
39 * tests/iochannel-test.c: Add a testcase for small writes.
43 * glib/ghash.c: Add g_hash_table_{remove,steal}_all to
44 remove all nodes from a hash table. (#168538, Matt Barnes)
46 2006-06-01 Behdad Esfahbod <behdad@gnome.org>
48 * glib/gkeyfile.c (g_key_file_to_data),
49 (g_key_file_parse_value_as_comment),
50 (g_key_file_parse_comment_as_value):
51 * glib/gscanner.c (g_scanner_get_token_ll): Cleanup. Use return
52 value of g_string_free(...). (#343548, Chris Wilson)
54 2006-05-28 Matthias Clasen <mclasen@redhat.com>
56 * glib/gmarkup.c (g_markup_parse_context_parse):
57 Don't use g_str_has_{prefix,suffix} here.
59 2006-05-28 Matthias Clasen <mclasen@redhat.com>
61 * glib/gmarkup.h: Add a GMarkupParseFlags flag for
62 treating CDATA as text.
64 * glib/gmarkup.c (g_markup_parse_context_parse):
67 2006-05-28 Matthias Clasen <mclasen@redhat.com>
69 * tests/markups/expected-*: Output that test-markup
70 is expected to produce when run on the valid gmarkup
73 * tests/markup-test.c: Only dump the results of the
74 first, unchunked parse, to compare it against the expected
77 * tests/run-markup-tests.sh: For valid examples, compare
78 the output of test-markup against the corresponding
81 2006-05-24 Matthias Clasen <mclasen@redhat.com>
83 * configure.in: Don't compile timeloop on Minix.
84 (Leonard den Ottolander)
86 2006-05-22 Sebastian Wilhelmi <wilhelmi@google.com>
88 * glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init
89 as the first of the full fledged initializers to allow the later
90 to potentially use atomic ints (which they currently do
91 not). (#342563, Peter Kjellerstedt)
93 2006-05-16 Matthias Clasen <mclasen@redhat.com>
96 * tests/strtoll-test.c: Add tests for g_ascii_strtoll()
97 and g_ascii_strtoull().
101 * glib/gstrfuncs.c (g_ascii_strtoll): New function to
102 parse signed 64bit integers like strtoll does.
104 * glib/goption.c (parse_int64): Use g_ascii_strtoll(),
105 since strtoll() is C99 and not available on some
106 systems. (#341826, Kazuki Iwamoto)
108 2006-05-15 Matthias Clasen <mclasen@redhat.com>
110 * configure.in: Bump version
112 * === Released 2.11.1 ===
116 2006-05-13 Matthias Clasen <mclasen@redhat.com>
118 * glib/grel.c: Fix several cases of deref-before-NULL-check.
119 (#341191, Pascal Terjan)
123 * glib/goption.c: Allow optional summary and description
124 texts before and after the option descriptions, and add
125 a way to translate them. (#336120, Behdad Esfahbod)
127 2006-05-12 Tor Lillqvist <tml@novell.com>
129 * glib/giowin32.c (g_io_win32_sock_set_flags): Implement
130 setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
132 (g_io_win32_unimpl_set_flags): set_flags method for the
135 2006-05-11 Bastien Nocera <hadess@hadess.net>
137 * glib/goption.c: (parse_int64), (parse_arg), (free_changes_list):
139 * tests/option-test.c: (arg_test6), (main): add an int64 type for
140 GOption (G_OPTION_ARG_INT64) (#341237)
142 2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com>
144 * glib/gthread.h, gthread/gthread-impl.c: Make the magic and
145 location arguments to the error-checking-mutex functions const and
146 do not write to them, as we might not own them. Clean up the
147 error-checking-mutex code quite a bit. (#335198, Chris Wilson)
149 * glib/gthread.c: Use g_atomic_pointer_set instead of old
150 homegrown version now that we have it. (#335198, Chris Wilson)
152 * gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent
153 calling into g_cond_wait resp. g_mutex_lock/unlock directly to
154 avoid recursions into the errorcheking mutex code (and out of
155 principle anyway). (#335198, Chris Wilson)
157 * tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
159 2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
161 * glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
162 system thread identifier comparision and assignment macros from
163 glib/gthread.c to glib/gthreadprivate.h.
165 * glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
166 glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
167 glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
168 glib/gthreadprivate.h instead of glib/gthreadinit.h.
170 * gthread/gthread-impl.c: Use GSystemThread instead of GThread for
171 owner determination. (#311043, jylefort@FreeBSD.org)
173 * tests/Makefile.am, tests/errorcheck-mutex-test: New test program
174 to test for all checked violations.
176 * glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c,
177 gthread/gthread-impl.c, gthread/gthread-posix.c,
178 gthread/gthread-win32.c: Use canonical include form for internal
179 headers. config.h is always there.
181 * Remove obsolete gthread/gthread-solaris.c.
183 2006-05-08 Matthias Clasen <mclasen@redhat.com>
185 * tests/convert-test.c (test_one_half): Use encoding names which
186 may work better on Solaris. (#340434, Alessandro Vesely)
188 * tests/keyfile-test.c (test_number): Add some tests for
189 invalid floating point numbers.
191 * glib/gkeyfile.c (g_key_file_parse_value_as_double): Return
192 an error for the empty string. (#339105, Morten Welinder)
194 * glib/gscanner.c (g_scanner_config_template): Make const,
195 noticed by Kjartan Maraas.
197 2006-05-06 Matthias Clasen <mclasen@redhat.com>
199 * glib/gkeyfile.c (g_key_file_set_string_list)
200 (g_key_file_set_locale_string_list): Fix invalid memory
201 reads. (#340816, Nick Treleaven)
203 2006-05-04 Alexander Larsson <alexl@redhat.com>
205 * glib/gbase64.c: (g_base64_decode_step):
206 Fix OOB write (#340538)
208 2006-05-03 Matthias Clasen <mclasen@redhat.com>
210 * tests/base64-test.c: Add some more tests.
212 * glib/gbase64.c (g_base64_decode_step): Avoid writing
213 beyond the guaranteed lenght of the output buffer, if
216 * tests/base64-test.c (test_incremental): Use malloced memory
217 instead of stack-allocated, so that MALLOC_CHECK_=2 catches
220 * glib/gbookmarkfile.c (g_bookmark_file_load_from_data): Remove
221 an overzealous return_if_fail check that causes make check to
224 2006-05-02 Matthias Clasen <mclasen@redhat.com>
226 * configure.in: Bump version
228 * === Released 2.11.0 ===
233 * tests/casefold.txt: Regenerate from Unicode 5.0 data.
235 * glib/guniprop.c: Make interval_compare static.
237 Tue May 2 15:00:00 2006 Tim Janik <timj@gtk.org>
239 * tests/gobject/deftype.c: added test code from Behdad Esfahbod,
242 Tue May 2 14:18:25 2006 Tim Janik <timj@gtk.org>
244 * glib/goption.c (g_option_context_parse): fixed leak in short
245 option parsing. rewrote parts of the code to be more concise to
246 enhance readability. fixed exaggerated uses of strlen.
248 2006-04-28 Behdad Esfahbod <behdad@gnome.org>
250 * glib/guniprop.c: #include <stdlib.h>
252 2006-04-27 Matthias Clasen <mclasen@redhat.com>
254 * glib/glib.symbols: Add g_unichar_iswide_cjk.
255 * glib/guniprop.c: Add a "Since: 2.12".
259 2006-04-27 Behdad Esfahbod <behdad@gnome.org>
261 * docs/reference/glib/glib-sections.txt,
262 * glib/gunicode.h glib/guniprop.c: Implement g_unichar_iswide_cjk().
265 2006-04-27 Matthias Clasen <mclasen@redhat.com>
267 * glib/gbookmarkfile.c (g_bookmark_file_set_description)
268 (g_bookmark_file_set_title, g_bookmark_file_set_icon):
269 Remove some special-casing of empty string which led to
270 dangling pointers. (#339337, Morten Welinder)
271 (expand_exec_line): Don't use printf() needlessly, handle
272 trailing '%' gracefully. (#339338, Morten Welinder)
273 (is_element_full): Silence the compiler.
274 (g_bookmark_file_dump, bookmark_metadata_dump):
275 (bookmark_app_info_dump): Escape strings before dumping
276 them in xml. (#339340, Morten Welinder)
278 2006-04-27 Behdad Esfahbod <behdad@gnome.org>
280 * glib/gunibreak.h, glib/gunichartables.h: Regenerated using
281 Unicode Character Database 5.0 beta.
283 2006-04-26 Matthias Clasen <mclasen@redhat.com>
285 * glib/grand.c (g_rand_new): Don't repeat a failed fclose()
286 call, since that invokes undefined behaviour. (Coverity)
288 2006-04-25 Matthias Clasen <mclasen@redhat.com>
290 * glib/gbookmarkfile.c (is_element_full): Avoid a possible
291 NULL dereference (found by Coverity), also avoid some
294 * tests/keyfile-test.c (test_comments): Add a test for
297 * glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
299 (g_key_file_get_group_comment): Don't dereference before
300 checking for NULL. (#338572, Coverity, Pascal Terjan)
302 2006-04-19 Matthias Clasen <mclasen@redhat.com>
304 * glib/gdataset.c: Add some missing Since: 2.8 tags.
306 2006-04-19 Tor Lillqvist <tml@novell.com>
308 * glib/gatomic.c: Adapt to the changed prototype of
309 InterlockedCompareExchange() in newer SDKs. Use
310 InterlockedCompareExchangePointer() when applicable. (#155884,
313 2006-04-18 Matthias Clasen <mclasen@redhat.com>
317 * glib/gkeyfile.c: Add api to get and set doubles and
318 lists of doubles. (#164719, Maurizio Monge, Dom Lachowicz)
320 * tests/keyfile-test.c: Add tests for new api.
322 * glib/gkeyfile.c (g_key_file_add_group): Accept duplicate
323 groups. (#157877, Sebastien Bacher)
325 * tests/keyfile-test.c: Add tests for duplicate key and
326 duplicate group handling.
328 2006-04-17 Matthias Clasen <mclasen@redhat.com>
330 * glib/gcompletion.c (g_completion_complete_utf8): Make passing
331 NULL for new_prefix work as documented. (#338845, Yevgen Muntyan)
333 * tests/completion-test.c: Test that passing NULL for
334 new_prefix in g_completion_complete_utf8 works.
336 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
338 * configure.in: Remove obsolete entry for no_NO.
339 * po/no.po: And the translation.
341 2006-04-16 Matthias Clasen <mclasen@redhat.com>
343 * glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
344 overrun. (Coverity, fix by Pascal Terjan)
346 2006-04-12 Bastien Nocera <hadess@hadess.net>
348 reviewed by: Matthias Clasen <mclasen@redhat.com>
350 * glib/gconvert.c: add more details about which RFC is concerned
351 when using g_filename_to_uri (#337553)
353 2006-04-12 Matthias Clasen <mclasen@redhat.com>
355 * glib/goption.c (parse_arg): Add an assert to make it
356 clear when value can be NULL.
358 2006-04-07 Martyn Russell <martyn@imendio.com>
360 * tests/threadpool-test.c: (test_thread_stop_unused): Removed an
361 assertion which can fail and is not a critical test.
363 2006-04-07 Hans Breuer <hans@breuer.org>
365 * glib/makefile.msc.in : added gbase64.obj and derive the static libs
366 name from auto* variables
367 * glib/makefile.msc.in : link user32.lib for MessageBox()
369 2006-04-07 Martyn Russell <martyn@imendio.com>
371 * glib/gasyncqueue.[ch]: Added private API
372 _g_async_queue_get_mutex so that g_thread_pool_free() can use the
375 * glib/gthreadpool.c: Make sure
376 g_thread_pool_stop_unused_threads() actually stops unused threads
377 and global limits (like max idle time and max unused threads) can
378 be set without creating a thread pool first. Fixed #335215 (patch
381 * tests/threadpool-test.c: Added two new tests, tests setting
382 global limits before creating a thread pool. The second test
383 makes sure unused threads are actually stopped when using the
384 g_thread_pool_stop_unused_threads().
386 2006-04-05 Matthias Clasen <mclasen@redhat.com>
388 * glib/gnulib/vasnprintf.c (vasnprintf): Make
389 long long printing work if snprintf is not
390 available. (#332841, Michael McDonald)
392 2006-04-05 Behdad Esfahbod <behdad@gnome.org>
394 * tests/option-test.c: Check the return value of g_get_prgname for
395 NULL before passing to strcmp.
397 * tests/slice-test.c: Report the correct name in Usage summary.
399 2006-04-05 Matthias Clasen <mclasen@redhat.com>
401 * tests/run-collate-tests.sh: Fix up shell script.
403 * tests/option-test.c (arg_test5): Skip the test if
404 setting the locale fails.
405 (empty_test1): Reset prgname before the test.
407 * tests/Makefile.am: Arrange for run-bookmark-test.sh
408 to be run by make check.
410 * tests/utf8-pointer.c:
411 * tests/tree-test.c: Silence warnings.
413 2006-04-04 Matthias Clasen <mclasen@redhat.com>
416 * glib/gbase64.[hc]: Add G_GNUC_MALLOC where
417 appropriate, use glib types.
419 2006-04-04 Alexander Larsson <alexl@redhat.com>
424 Add base64 encode/decode functions
430 * tests/base64-test.c:
431 Tests for base64 functions
433 2006-04-04 Matthias Clasen <mclasen@redhat.com>
435 * glib/gdate.c: Move short_month_names and long_month_names
438 * glib/gspawn-win32.c (g_spawn_error_quark):
439 * glib/gspawn.c (g_spawn_error_quark):
440 * glib/gshell.c (g_shell_error_quark):
441 * glib/gmarkup.c (g_markup_error_quark):
442 * glib/goption.c (g_option_error_quark):
443 * glib/gkeyfile.c (g_key_file_error_quark):
444 * glib/giochannel.c (g_io_channel_error_quark):
445 * glib/gfileutils.c (g_file_error_quark):
446 * glib/gconvert.c (g_convert_error_quark):
447 * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
448 * glib/gthread.c (g_thread_error_quark): No point in making
449 the error path fast by caching quarks.
451 * glib/gbookmarkfile.c: Make the parser struct const.
453 2006-04-04 Behdad Esfahbod <behdad@gnome.org>
455 * glib/gbookmarkfile.c: Fix accidentally broken build.
457 2006-04-03 Matthias Clasen <mclasen@redhat.com>
459 * glib/gbookmarkfile.c: Don't include sys/time.h (#337027,
462 2006-03-31 Tor Lillqvist <tml@novell.com>
464 * glib/gstdio.c (g_remove): Revert change below. It wasn't a good
465 idea after all, says the original bug reporter. See bug for
468 2006-03-30 Tor Lillqvist <tml@novell.com>
470 * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
471 fails with errno set to ENOENT, to leave errno set to EACCESS if
472 that is the problem. (#334799, Yevgen Muntyan)
474 2006-03-30 Matthias Clasen <mclasen@redhat.com>
476 * glib/gbookmarkfile.c (g_bookmark_file_get_app_info): Sync
477 the parameter names with the .h files, otherwise gtk-doc
480 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
482 * tests/.cvsignore: Add bookmarkfile-test to the ignored files.
484 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
487 * tests/bookmarkfile-test.c:
488 * tests/run-bookmark-test.sh:
489 * tests/bookmarks/*.xbel: Add test suite for GBookmarkFile.
491 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
493 * docs/reference/glib/glib-docs.sgml:
494 * docs/reference/glib/glib-sections.txt:
495 * docs/reference/glib/tmpl/bookmarkfile.sgml: Add documentation for
496 GBookmarkFile to GLib's reference guide.
498 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
501 * glib/gbookmarkfile.h
502 * glib/gbookmarkfile.c: Add GBookmarkFile, a parser for files
503 containing bookmarks stored using the Desktop Bookmark
504 specification. Fixes bug #327662.
508 * glib/makefile.msc.in:
509 * glib/makefile.mingw.in: Build glue for GBookmarkFile.
511 2006-03-27 Dom Lachowicz <cinamod@hotmail.com>
513 * tests/option-test.c: Copy-and-paste error slipped into test5. Enable
514 test5, as per Matthias' comments in bug 329548#c11.
516 Change a gboolean to an int. Fixes bug #329789.
518 * configure.in: Bump version number to 2.11.0
520 2006-03-27 Matthias Clasen <mclasen@redhat.com>
522 Add support for floating point numbers to goption.
523 (#329548, Behdad Esfahbod, patch by Antoine Dopffer and
527 * glib/goption.c: Support double arguments.
529 * tests/option-test.c: Test double arguments.`
531 2006-03-26 Matthias Clasen <mclasen@redhat.com>
533 * glib/goption.c (g_option_context_new): Improve the description
534 of parameter_string in the docs. (#336085, Claudio Saavedra)
536 2006-03-24 Martyn Russell <martyn@imendio.com>
538 * glib/gthreadpool.c: Updated the documentation to explain that
539 when the maximum threads is > 1 the sort functionality is not 100%
540 accurate due to the ramdom nature of the scheduler choosing which
541 threads to execute. Fixes bug #334943.
543 * tests/threadpool-test.c: Disabled the debugging by default and
544 fixed the sort test to set the maximum threads to 1 to guarantee
545 the thread entry function is called in order.
547 2006-03-23 Matthias Clasen <mclasen@redhat.com>
549 === Branch for 2.10 ===