1 2006-07-31 Behdad Esfahbod <behdad@gnome.org>
3 * glib/guniprop.c (g_unichar_isxdigit): Make it only accept those
4 characters that we accept i g_unichar_xdigit_value(), i.e. don't
5 accept non-decimal digits. (#347842, Nikolai Weibull)
7 2006-07-31 Behdad Esfahbod <behdad@gnome.org>
9 * glib/gunidecomp.c (_g_utf8_normalize_wc): Update to reflect Unicode
10 PR #29 (#348694, Nikolai Weibull)
12 * tests/unicode-normalize.c (encode), (test_form): Make output more
13 useful, reporting the unexpected output of the test.
15 2006-07-24 Tor Lillqvist <tml@novell.com>
17 * tests/slice-test.c: Use g_get_current_time() insted of
20 2006-07-22 Matthias Clasen <mclasen@redhat.com>
22 * configure.in: Bump version
24 * === Released 2.12.1 ===
26 * glib/gconvert.c: Fix the prototype of _g_charset_get_aliases.
27 (#346494, Thomas Klausner)
31 2006-07-21 Behdad Esfahbod <behdad@gnome.org>
33 * glib/gmirroringtable.h: Updated to Unicode Character Database 5.0.0.
35 2006-07-20 Matthias Clasen <mclasen@redhat.com>
37 * glib/guniprop.c (real_toupper, real_tolower): Small optimization.
38 (#348011, Nikolai Weibull)
40 2006-07-19 Behdad Esfahbod <behdad@gnome.org>
43 * glib/gunichartables.h:
46 Update to final Unicode Character Database 5.0.0. (#336281)
48 2006-07-06 Behdad Esfahbod <behdad@gnome.org>
50 * glib/gutils.c (g_parse_debug_string): When matching debug flag keys,
51 ignore case and accept any of comma, colon, semicolon, space, and tab
52 as separators. Also, match dash with underscore.
54 2006-07-05 Matthias Clasen <mclasen@redhat.com>
56 * glib/gbase64.c: Fix typos in the docs. (#346660, Mark
59 2006-07-03 Runa Bhattacharjee <runabh@gmail.com>
61 * configure.in: Added Bengali India (bn_IN) in ALL_LINGUAS.
63 2006-07-02 Matthias Clasen <mclasen@redhat.com>
65 * configure.in: Bump version
67 * === Released 2.12.0 ===
69 2006-06-30 Matthias Clasen <mclasen@redhat.com>
73 * configure.in: Set version to 2.12.0
75 2006-06-20 Matthias Clasen <mclasen@redhat.com>
77 * glib/gtimer.c (mktime_utc): Fix an off-by-2 error
78 in the leap year calculation. (#344905, Dan Winship)
80 * tests/testglib.c (main): Change the test data for
81 the g_time_val_from_iso8601 tests to expose an off-by-2
82 error in the leap year calculation.
84 * configure.in: Bump version
86 * === Released 2.11.4 ===
90 2006-06-16 Matthias Clasen <mclasen@redhat.com>
92 * tests/file-test.c (test_mkstemp): Add tests.
94 * glib/gfileutils.c (g_mkstemp): Allow the XXXXXX to occur
95 inside the template, not just at the end.
97 2006-06-14 Matthias Clasen <mclasen@redhat.com>
99 * glib/gkeyfile.c (g_key_file_to_data): Separate groups by
100 an empty line (#344868, Christian Persch)
102 2006-06-14 Tor Lillqvist <tml@novell.com>
104 * glib/gutils.c (g_listenv): Add Windows notes to doc comment.
106 2006-06-12 Emmanuele Bassi <ebassi@cvs.gnome.org>
108 * glib/gbookmarkfile.h:
109 * glib/gbookmarkfile.c (g_bookmark_file_remove_item): Return
110 a boolean instead of void.
112 * tests/bookmarkfile-test.c (test_modify): Add a test case
113 for g_bookmark_file_remove_item().
115 2006-06-12 Matthias Clasen <mclasen@redhat.com>
119 * === Released 2.11.3 ===
123 2006-06-09 Emmanuele Bassi <ebassi@cvs.gnome.org>
125 * glib/gbookmarkfile.c (g_bookmark_file_remove_application): Use
126 an empty string to pass the test in set_app_info.
128 (g_bookmark_file_move_item): Remove the old item from the
129 look up table; return success in case of empty target.
131 2006-06-08 Tor Lillqvist <tml@novell.com>
133 * glib/gunicollate.c (msc_strxfrm_wrapper): Workaround for bug in
134 strxfrm() in Microsoft's newer C runtimes. (#343919, Kazuki
137 2006-06-05 Matthias Clasen <mclasen@redhat.com>
139 * configure.in: Bump version
141 * === Released 2.11.2 ===
143 * configure.in: Set interface age to 0.
147 * glib/gmain.c: Fix some doc formatting issues.
149 * glib/gstrfuncs.c: Revert accidental commit.
151 * glib/gmain.c (get_dispatch): Don't leak the
152 dispatch struct. (#321886)
154 * tests/strtod-test.c: Add some tests involving
157 * glib/gstrfuncs.c (g_ascii_formatd): Skip leading
158 whitespace. (#343899, Øystein Johansen)
160 2006-06-01 Matthias Clasen <mclasen@redhat.com>
163 * glib/gmain.c: Add three new functions,
164 g_main_current_source, g_source_set_funcs and
165 g_source_is_destroyed, that will be necessary to
166 solve thread-safety issues with idles in GTK+.
167 (#321886, Chris Wilson)
169 2006-06-01 Matthias Clasen <mclasen@redhat.com>
171 * glib/giochannel.c (g_io_channel_write_chars): Avoid
172 running in an assertion with small writes. (#343566, Chris
175 * tests/iochannel-test.c: Add a testcase for small writes.
179 * glib/ghash.c: Add g_hash_table_{remove,steal}_all to
180 remove all nodes from a hash table. (#168538, Matt Barnes)
182 2006-06-01 Behdad Esfahbod <behdad@gnome.org>
184 * glib/gkeyfile.c (g_key_file_to_data),
185 (g_key_file_parse_value_as_comment),
186 (g_key_file_parse_comment_as_value):
187 * glib/gscanner.c (g_scanner_get_token_ll): Cleanup. Use return
188 value of g_string_free(...). (#343548, Chris Wilson)
190 2006-05-28 Matthias Clasen <mclasen@redhat.com>
192 * glib/gmarkup.c (g_markup_parse_context_parse):
193 Don't use g_str_has_{prefix,suffix} here.
195 2006-05-28 Matthias Clasen <mclasen@redhat.com>
197 * glib/gmarkup.h: Add a GMarkupParseFlags flag for
198 treating CDATA as text.
200 * glib/gmarkup.c (g_markup_parse_context_parse):
203 2006-05-28 Matthias Clasen <mclasen@redhat.com>
205 * tests/markups/expected-*: Output that test-markup
206 is expected to produce when run on the valid gmarkup
209 * tests/markup-test.c: Only dump the results of the
210 first, unchunked parse, to compare it against the expected
213 * tests/run-markup-tests.sh: For valid examples, compare
214 the output of test-markup against the corresponding
217 2006-05-24 Matthias Clasen <mclasen@redhat.com>
219 * configure.in: Don't compile timeloop on Minix.
220 (Leonard den Ottolander)
222 2006-05-22 Sebastian Wilhelmi <wilhelmi@google.com>
224 * glib/gthread.c (g_thread_init_glib): Run _g_atomic_thread_init
225 as the first of the full fledged initializers to allow the later
226 to potentially use atomic ints (which they currently do
227 not). (#342563, Peter Kjellerstedt)
229 2006-05-16 Matthias Clasen <mclasen@redhat.com>
232 * tests/strtoll-test.c: Add tests for g_ascii_strtoll()
233 and g_ascii_strtoull().
237 * glib/gstrfuncs.c (g_ascii_strtoll): New function to
238 parse signed 64bit integers like strtoll does.
240 * glib/goption.c (parse_int64): Use g_ascii_strtoll(),
241 since strtoll() is C99 and not available on some
242 systems. (#341826, Kazuki Iwamoto)
244 2006-05-15 Matthias Clasen <mclasen@redhat.com>
246 * configure.in: Bump version
248 * === Released 2.11.1 ===
252 2006-05-13 Matthias Clasen <mclasen@redhat.com>
254 * glib/grel.c: Fix several cases of deref-before-NULL-check.
255 (#341191, Pascal Terjan)
259 * glib/goption.c: Allow optional summary and description
260 texts before and after the option descriptions, and add
261 a way to translate them. (#336120, Behdad Esfahbod)
263 2006-05-12 Tor Lillqvist <tml@novell.com>
265 * glib/giowin32.c (g_io_win32_sock_set_flags): Implement
266 setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
268 (g_io_win32_unimpl_set_flags): set_flags method for the
271 2006-05-11 Bastien Nocera <hadess@hadess.net>
273 * glib/goption.c: (parse_int64), (parse_arg), (free_changes_list):
275 * tests/option-test.c: (arg_test6), (main): add an int64 type for
276 GOption (G_OPTION_ARG_INT64) (#341237)
278 2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com>
280 * glib/gthread.h, gthread/gthread-impl.c: Make the magic and
281 location arguments to the error-checking-mutex functions const and
282 do not write to them, as we might not own them. Clean up the
283 error-checking-mutex code quite a bit. (#335198, Chris Wilson)
285 * glib/gthread.c: Use g_atomic_pointer_set instead of old
286 homegrown version now that we have it. (#335198, Chris Wilson)
288 * gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent
289 calling into g_cond_wait resp. g_mutex_lock/unlock directly to
290 avoid recursions into the errorcheking mutex code (and out of
291 principle anyway). (#335198, Chris Wilson)
293 * tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
295 2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
297 * glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
298 system thread identifier comparision and assignment macros from
299 glib/gthread.c to glib/gthreadprivate.h.
301 * glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
302 glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
303 glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
304 glib/gthreadprivate.h instead of glib/gthreadinit.h.
306 * gthread/gthread-impl.c: Use GSystemThread instead of GThread for
307 owner determination. (#311043, jylefort@FreeBSD.org)
309 * tests/Makefile.am, tests/errorcheck-mutex-test: New test program
310 to test for all checked violations.
312 * glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c,
313 gthread/gthread-impl.c, gthread/gthread-posix.c,
314 gthread/gthread-win32.c: Use canonical include form for internal
315 headers. config.h is always there.
317 * Remove obsolete gthread/gthread-solaris.c.
319 2006-05-08 Matthias Clasen <mclasen@redhat.com>
321 * tests/convert-test.c (test_one_half): Use encoding names which
322 may work better on Solaris. (#340434, Alessandro Vesely)
324 * tests/keyfile-test.c (test_number): Add some tests for
325 invalid floating point numbers.
327 * glib/gkeyfile.c (g_key_file_parse_value_as_double): Return
328 an error for the empty string. (#339105, Morten Welinder)
330 * glib/gscanner.c (g_scanner_config_template): Make const,
331 noticed by Kjartan Maraas.
333 2006-05-06 Matthias Clasen <mclasen@redhat.com>
335 * glib/gkeyfile.c (g_key_file_set_string_list)
336 (g_key_file_set_locale_string_list): Fix invalid memory
337 reads. (#340816, Nick Treleaven)
339 2006-05-04 Alexander Larsson <alexl@redhat.com>
341 * glib/gbase64.c: (g_base64_decode_step):
342 Fix OOB write (#340538)
344 2006-05-03 Matthias Clasen <mclasen@redhat.com>
346 * tests/base64-test.c: Add some more tests.
348 * glib/gbase64.c (g_base64_decode_step): Avoid writing
349 beyond the guaranteed lenght of the output buffer, if
352 * tests/base64-test.c (test_incremental): Use malloced memory
353 instead of stack-allocated, so that MALLOC_CHECK_=2 catches
356 * glib/gbookmarkfile.c (g_bookmark_file_load_from_data): Remove
357 an overzealous return_if_fail check that causes make check to
360 2006-05-02 Matthias Clasen <mclasen@redhat.com>
362 * configure.in: Bump version
364 * === Released 2.11.0 ===
369 * tests/casefold.txt: Regenerate from Unicode 5.0 data.
371 * glib/guniprop.c: Make interval_compare static.
373 Tue May 2 15:00:00 2006 Tim Janik <timj@gtk.org>
375 * tests/gobject/deftype.c: added test code from Behdad Esfahbod,
378 Tue May 2 14:18:25 2006 Tim Janik <timj@gtk.org>
380 * glib/goption.c (g_option_context_parse): fixed leak in short
381 option parsing. rewrote parts of the code to be more concise to
382 enhance readability. fixed exaggerated uses of strlen.
384 2006-04-28 Behdad Esfahbod <behdad@gnome.org>
386 * glib/guniprop.c: #include <stdlib.h>
388 2006-04-27 Matthias Clasen <mclasen@redhat.com>
390 * glib/glib.symbols: Add g_unichar_iswide_cjk.
391 * glib/guniprop.c: Add a "Since: 2.12".
395 2006-04-27 Behdad Esfahbod <behdad@gnome.org>
397 * docs/reference/glib/glib-sections.txt,
398 * glib/gunicode.h glib/guniprop.c: Implement g_unichar_iswide_cjk().
401 2006-04-27 Matthias Clasen <mclasen@redhat.com>
403 * glib/gbookmarkfile.c (g_bookmark_file_set_description)
404 (g_bookmark_file_set_title, g_bookmark_file_set_icon):
405 Remove some special-casing of empty string which led to
406 dangling pointers. (#339337, Morten Welinder)
407 (expand_exec_line): Don't use printf() needlessly, handle
408 trailing '%' gracefully. (#339338, Morten Welinder)
409 (is_element_full): Silence the compiler.
410 (g_bookmark_file_dump, bookmark_metadata_dump):
411 (bookmark_app_info_dump): Escape strings before dumping
412 them in xml. (#339340, Morten Welinder)
414 2006-04-27 Behdad Esfahbod <behdad@gnome.org>
416 * glib/gunibreak.h, glib/gunichartables.h: Regenerated using
417 Unicode Character Database 5.0 beta.
419 2006-04-26 Matthias Clasen <mclasen@redhat.com>
421 * glib/grand.c (g_rand_new): Don't repeat a failed fclose()
422 call, since that invokes undefined behaviour. (Coverity)
424 2006-04-25 Matthias Clasen <mclasen@redhat.com>
426 * glib/gbookmarkfile.c (is_element_full): Avoid a possible
427 NULL dereference (found by Coverity), also avoid some
430 * tests/keyfile-test.c (test_comments): Add a test for
433 * glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
435 (g_key_file_get_group_comment): Don't dereference before
436 checking for NULL. (#338572, Coverity, Pascal Terjan)
438 2006-04-19 Matthias Clasen <mclasen@redhat.com>
440 * glib/gdataset.c: Add some missing Since: 2.8 tags.
442 2006-04-19 Tor Lillqvist <tml@novell.com>
444 * glib/gatomic.c: Adapt to the changed prototype of
445 InterlockedCompareExchange() in newer SDKs. Use
446 InterlockedCompareExchangePointer() when applicable. (#155884,
449 2006-04-18 Matthias Clasen <mclasen@redhat.com>
453 * glib/gkeyfile.c: Add api to get and set doubles and
454 lists of doubles. (#164719, Maurizio Monge, Dom Lachowicz)
456 * tests/keyfile-test.c: Add tests for new api.
458 * glib/gkeyfile.c (g_key_file_add_group): Accept duplicate
459 groups. (#157877, Sebastien Bacher)
461 * tests/keyfile-test.c: Add tests for duplicate key and
462 duplicate group handling.
464 2006-04-17 Matthias Clasen <mclasen@redhat.com>
466 * glib/gcompletion.c (g_completion_complete_utf8): Make passing
467 NULL for new_prefix work as documented. (#338845, Yevgen Muntyan)
469 * tests/completion-test.c: Test that passing NULL for
470 new_prefix in g_completion_complete_utf8 works.
472 2006-04-17 Kjartan Maraas <kmaraas@gnome.org>
474 * configure.in: Remove obsolete entry for no_NO.
475 * po/no.po: And the translation.
477 2006-04-16 Matthias Clasen <mclasen@redhat.com>
479 * glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
480 overrun. (Coverity, fix by Pascal Terjan)
482 2006-04-12 Bastien Nocera <hadess@hadess.net>
484 reviewed by: Matthias Clasen <mclasen@redhat.com>
486 * glib/gconvert.c: add more details about which RFC is concerned
487 when using g_filename_to_uri (#337553)
489 2006-04-12 Matthias Clasen <mclasen@redhat.com>
491 * glib/goption.c (parse_arg): Add an assert to make it
492 clear when value can be NULL.
494 2006-04-07 Martyn Russell <martyn@imendio.com>
496 * tests/threadpool-test.c: (test_thread_stop_unused): Removed an
497 assertion which can fail and is not a critical test.
499 2006-04-07 Hans Breuer <hans@breuer.org>
501 * glib/makefile.msc.in : added gbase64.obj and derive the static libs
502 name from auto* variables
503 * glib/makefile.msc.in : link user32.lib for MessageBox()
505 2006-04-07 Martyn Russell <martyn@imendio.com>
507 * glib/gasyncqueue.[ch]: Added private API
508 _g_async_queue_get_mutex so that g_thread_pool_free() can use the
511 * glib/gthreadpool.c: Make sure
512 g_thread_pool_stop_unused_threads() actually stops unused threads
513 and global limits (like max idle time and max unused threads) can
514 be set without creating a thread pool first. Fixed #335215 (patch
517 * tests/threadpool-test.c: Added two new tests, tests setting
518 global limits before creating a thread pool. The second test
519 makes sure unused threads are actually stopped when using the
520 g_thread_pool_stop_unused_threads().
522 2006-04-05 Matthias Clasen <mclasen@redhat.com>
524 * glib/gnulib/vasnprintf.c (vasnprintf): Make
525 long long printing work if snprintf is not
526 available. (#332841, Michael McDonald)
528 2006-04-05 Behdad Esfahbod <behdad@gnome.org>
530 * tests/option-test.c: Check the return value of g_get_prgname for
531 NULL before passing to strcmp.
533 * tests/slice-test.c: Report the correct name in Usage summary.
535 2006-04-05 Matthias Clasen <mclasen@redhat.com>
537 * tests/run-collate-tests.sh: Fix up shell script.
539 * tests/option-test.c (arg_test5): Skip the test if
540 setting the locale fails.
541 (empty_test1): Reset prgname before the test.
543 * tests/Makefile.am: Arrange for run-bookmark-test.sh
544 to be run by make check.
546 * tests/utf8-pointer.c:
547 * tests/tree-test.c: Silence warnings.
549 2006-04-04 Matthias Clasen <mclasen@redhat.com>
552 * glib/gbase64.[hc]: Add G_GNUC_MALLOC where
553 appropriate, use glib types.
555 2006-04-04 Alexander Larsson <alexl@redhat.com>
560 Add base64 encode/decode functions
566 * tests/base64-test.c:
567 Tests for base64 functions
569 2006-04-04 Matthias Clasen <mclasen@redhat.com>
571 * glib/gdate.c: Move short_month_names and long_month_names
574 * glib/gspawn-win32.c (g_spawn_error_quark):
575 * glib/gspawn.c (g_spawn_error_quark):
576 * glib/gshell.c (g_shell_error_quark):
577 * glib/gmarkup.c (g_markup_error_quark):
578 * glib/goption.c (g_option_error_quark):
579 * glib/gkeyfile.c (g_key_file_error_quark):
580 * glib/giochannel.c (g_io_channel_error_quark):
581 * glib/gfileutils.c (g_file_error_quark):
582 * glib/gconvert.c (g_convert_error_quark):
583 * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
584 * glib/gthread.c (g_thread_error_quark): No point in making
585 the error path fast by caching quarks.
587 * glib/gbookmarkfile.c: Make the parser struct const.
589 2006-04-04 Behdad Esfahbod <behdad@gnome.org>
591 * glib/gbookmarkfile.c: Fix accidentally broken build.
593 2006-04-03 Matthias Clasen <mclasen@redhat.com>
595 * glib/gbookmarkfile.c: Don't include sys/time.h (#337027,
598 2006-03-31 Tor Lillqvist <tml@novell.com>
600 * glib/gstdio.c (g_remove): Revert change below. It wasn't a good
601 idea after all, says the original bug reporter. See bug for
604 2006-03-30 Tor Lillqvist <tml@novell.com>
606 * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
607 fails with errno set to ENOENT, to leave errno set to EACCESS if
608 that is the problem. (#334799, Yevgen Muntyan)
610 2006-03-30 Matthias Clasen <mclasen@redhat.com>
612 * glib/gbookmarkfile.c (g_bookmark_file_get_app_info): Sync
613 the parameter names with the .h files, otherwise gtk-doc
616 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
618 * tests/.cvsignore: Add bookmarkfile-test to the ignored files.
620 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
623 * tests/bookmarkfile-test.c:
624 * tests/run-bookmark-test.sh:
625 * tests/bookmarks/*.xbel: Add test suite for GBookmarkFile.
627 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
629 * docs/reference/glib/glib-docs.sgml:
630 * docs/reference/glib/glib-sections.txt:
631 * docs/reference/glib/tmpl/bookmarkfile.sgml: Add documentation for
632 GBookmarkFile to GLib's reference guide.
634 2006-03-27 Emmanuele Bassi <ebassi@cvs.gnome.org>
637 * glib/gbookmarkfile.h
638 * glib/gbookmarkfile.c: Add GBookmarkFile, a parser for files
639 containing bookmarks stored using the Desktop Bookmark
640 specification. Fixes bug #327662.
644 * glib/makefile.msc.in:
645 * glib/makefile.mingw.in: Build glue for GBookmarkFile.
647 2006-03-27 Dom Lachowicz <cinamod@hotmail.com>
649 * tests/option-test.c: Copy-and-paste error slipped into test5. Enable
650 test5, as per Matthias' comments in bug 329548#c11.
652 Change a gboolean to an int. Fixes bug #329789.
654 * configure.in: Bump version number to 2.11.0
656 2006-03-27 Matthias Clasen <mclasen@redhat.com>
658 Add support for floating point numbers to goption.
659 (#329548, Behdad Esfahbod, patch by Antoine Dopffer and
663 * glib/goption.c: Support double arguments.
665 * tests/option-test.c: Test double arguments.`
667 2006-03-26 Matthias Clasen <mclasen@redhat.com>
669 * glib/goption.c (g_option_context_new): Improve the description
670 of parameter_string in the docs. (#336085, Claudio Saavedra)
672 2006-03-24 Martyn Russell <martyn@imendio.com>
674 * glib/gthreadpool.c: Updated the documentation to explain that
675 when the maximum threads is > 1 the sort functionality is not 100%
676 accurate due to the ramdom nature of the scheduler choosing which
677 threads to execute. Fixes bug #334943.
679 * tests/threadpool-test.c: Disabled the debugging by default and
680 fixed the sort test to set the maximum threads to 1 to guarantee
681 the thread entry function is called in order.
683 2006-03-23 Matthias Clasen <mclasen@redhat.com>
685 === Branch for 2.10 ===