1 2007-11-26 Matthias Clasen <mclasen@redhat.com>
3 * tests/markup-collect.c: Add some tests for invalid booleans
5 2007-11-26 Ryan Lortie <desrt@desrt.ca>
7 Add new function g_markup_collect_attributes (bug #496847).
9 * glib/glib.symbols: add g_markup_collect_attributes
11 * docs/reference/glib/glib-sections.txt:
13 * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
14 type GMarkupCollectType. Add new error code
15 G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
18 2007-11-27 Tor Lillqvist <tml@novell.com>
20 * glib/win_iconv.c: Some improvements, being upstreamed.
21 (must_use_null_useddefaultchar): New function, checks for those
22 codepages for which one must pass a NULL lpUsedDefaultChar pointer
23 to WideCharToMultiByte().
24 (kernel_wctomb): Use it.
25 (kernel_wctomb): Return with E2BIG immediately if bufsize is zero.
27 2007-11-27 Tor Lillqvist <tml@novell.com>
29 * glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
30 lib/locale or share/locale depending on which one is in
31 GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
32 on the _nl_msg_cat_cntr variable, eek), share/locale gets used.
34 * glib-zip.in: Likewise, look for message catalogs either in
35 lib/locale or share/locale.
37 2007-11-26 Matthias Clasen <mclasen@redhat.com>
39 * gio/gfileattribute.c: Fix up a doc comment.
41 2007-11-26 Alexander Larsson <alexl@redhat.com>
45 * gio-2.0-uninstalled.pc.in:
47 * gio-unix-2.0-uninstalled.pc.in:
51 Merged gio-standalone into glib.
55 Export glib_gettext so that gio can use it
56 Add P_ (using same domain for now)
57 Add I_ as g_intern_static_string
59 2007-11-26 Tor Lillqvist <tml@novell.com>
61 * glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.
63 2007-11-26 Tor Lillqvist <tml@novell.com>
65 Implement #491549: On Windows, always use the native API for
66 character set conversions instead of GNU libiconv. Almost all
67 codesets supported by GNU libiconv exist as Windows codepages.
68 One missing feature is the "C99" and "JAVA" pseudo codesets, but I
69 doubt that is worth worrying about.
71 * glib/win_iconv.c: New file. iconv() implementation for
72 Windows. Placed in the public domain by Yukihiro Nakadaira
73 <yukihiro.nakadaira@gmail.com>. From
74 http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
77 * glib/gconvert.c: Include win_iconv.c on Windows.
79 * glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.
81 * configure.in: Bypass iconv checks on Windows.
83 2007-11-25 Tor Lillqvist <tml@novell.com>
85 * glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
86 unless G_OS_UNIX for now.
88 2007-11-25 Matthias Clasen <mclasen@redhat.com>
90 * configure.in: Require gtk-doc 1.8.
99 * glib/gutils.c: Use gtk-doc abbreviations for
100 examples in doc comments.
102 2007-11-24 Matthias Clasen <mclasen@redhat.com>
104 * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
107 2007-11-24 Matthias Clasen <mclasen@redhat.com>
109 * tests/base64-test.c: Fix a memory overrun.
111 2007-11-24 Matthias Clasen <mclasen@redhat.com>
113 * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
115 2007-11-23 Matthias Clasen <mclasen@redhat.com>
117 * glib/gbase64.c (g_base64_encode): Don't refuse to encode
118 a single byte. (Milan Crha)
120 * tests/base64-test.c: Test encoding short strings.
122 2007-11-23 Matthias Clasen <mclasen@redhat.com>
125 * glib/gi18n.h: Define a two-argument macro C_() for marking
126 translatable strings with context and implement C_() and Q_()
127 using g_dpgettext(). (#142676, Morten Welinder)
130 * glib/gstrfuncs.[hc]: Implement g_dpgettext().
132 2007-11-23 Matthias Clasen <mclasen@redhat.com>
134 * glib/goption.c: Use g_print to print out --help text in
135 locale encoding. (#469551, Takao Fujiwara)
137 2007-11-22 Matthias Clasen <mclasen@redhat.com>
139 * glib/gkeyfile.c: Set length out param in list-returning functions
140 to 0 when returning NULL. (#498728, Christian Persch)
142 2007-11-21 21:06:47 Tim Janik <timj@imendio.com>
144 * Makefile.decl: initialize automake variables EXTRA_DIST and
145 TEST_PROGS for unconditional appending via += in other makefiles.
146 define recursive test targets: test, test-report, perf-report,
147 full-report, as described here:
148 http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
151 * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
152 * build/win32/Makefile.am, build/Makefile.am:
153 * docs/Makefile.am, docs/reference/Makefile.am:
154 * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
155 * gmodule/Makefile.am, tests/Makefile.am:
156 * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
157 * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
158 * glib/tests/Makefile.am, glib/pcre/Makefile.am:
159 * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
160 * gthread/Makefile.am, glib/Makefile.am:
161 include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
163 * glib/tests/Makefile.am: removed example testing rules.
165 * glib/tests/testing.c: conditionalized performance and slow tests.
168 * glib/gtestutils.c: work around g_test_config_vars not changing its
169 exported value after value assignments, aparently due to symbol aliases.
171 * glib/gtester.c: fixed off-by-one error which produced junk in logs.
173 * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
175 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
177 Renamed gtestframework to gtestutils.
180 * glib/Makefile.am: added gtestutils.h to public includes.
182 * glib/gtestutils.c: include gtestutils.h.
186 * glib/tests/testing.c: renamed gtestframework to gtestutils.
188 * glib/gtestframework.h: renamed to gtestutils.h.
190 * glib/gtestframework.c: renamed to gtestutils.c.
192 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
194 glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
196 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
198 gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
200 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
202 gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
204 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
206 Added g_test_bug() and related API.
208 * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
210 * gtestframework.h, gtestframework.c: added test message API and convenience
211 API to send test messages about bug URLs.
213 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
215 Added API to access test framework configuration.
217 * gtestframework.h, gtestframework.c: export testing configuration to test
218 programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
220 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
222 gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
224 * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
225 restart test binaries when tests fail, resuming after the last processed test.
226 support --gtester-selftest to run gtester itself as test program.
227 support --test-arg=<arg> to pass args along to test programs. added
228 main_selftest() which does a simplistic fixture test. fail if exit
229 code of test programs is not 0.
231 * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
233 * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
235 * tests/Makefile.am: added test-report: for demonstration purposes.
236 added gtester-xmllint-check: and hooked it up into check:, this rule calls
237 gtester as test program, running it's selftest, and then uses xmllint to
238 validate the generate XML test log file.
240 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
242 gtester: implemented XML logging.
244 * glib/gtester.c: log test messages to XML output file. beautified normal test
247 * glib/gtestframework.c: fixed GTimer leak.
249 * glib/tests/Makefile.am: start gtester with --verbose.
251 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
253 tests/Makefile.am: execute test programs with gtester, add test: to check:
255 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
257 Fixed PLT symbol exports for gtestframework.h.
259 * glib/glib.symbols: added all exported gtestframework.h symbols.
261 * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
263 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
265 glib/gtester.c: fixed debugging flag.
267 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
269 fixed bogus unistd.h include.
271 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
273 Implemented test log IPC.
275 * gtester.c: read and decode log messages from test binary child processes.
276 fixed GIOChannel and child watch handling to process all messages and avoid
277 hangs. pass --verbose and --quiet on to children, default to --quiet.
279 * gtestframework.h: export g_test_log_type_name().
281 * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
284 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
286 gtester.c: support test case listing through gtester.
288 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
290 gtestframework.c: fixed testpath matches for automatic root suite.
292 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
294 gtester.c: adapted to become a rudimentary test binary launcher.
296 * gtester.c: increased read buffer size to match common unix pipe buffer size.
297 added argument parsing and usage. changed io handling to capture and replicate
298 stdout. fixed io handlers to be cleaned up when the child process exits (catch
299 G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
300 structure, to keep running until the child process exits and all io has been
301 processed. launch the test binaries given on the command line. don't quit when
302 a child couldn't be launched but --keep-going was specified.
304 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
306 Integrated gtester program into build process.
308 * Makefile.am: build and install gtester binary.
310 * gtester.c: fixed up coding style and removed hard wired test coded.
312 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
314 glib/gtester.c:Small -Wall fix
316 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
318 glib/gtester.c:Implemented nonblocking reading properly now
320 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
322 glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
324 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
326 glib/gtester.c:Read the output of the child process
328 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
330 glib/gtester.c:Use g_spawn_async_with_pipes()
332 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
334 glib/gtester.c:Spawn a process async and quit gtester after the child process exited
336 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
338 glib/gtester.c:Added a first revision of gtester
340 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
342 Implemented test log serialization.
344 * glib/gtestframework.h: added g_test_log*() API.
346 * glib/gtestframework.c: implement test log serialization.
348 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
350 Implemented test logging basics.
352 * glib/gtestframework.c: added --debug-log and --verbose, implemented
353 test information logging.
355 * testing.c: test g_test_maximized_result() and g_test_minimized_result().
357 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
359 Implemented g_test_timer*().
361 * gtestframework.c: implemented g_test_timer*().
363 * tests/testing.c: added a g_test_timer*() test.
365 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
367 Implemented support for testpaths.
369 * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
371 * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
373 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
375 testing.c: added tests for the g_test_rand*() API.
377 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
379 Implemented g_test_rand*().
381 * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
382 added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
385 * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
387 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
389 testing.c: added tests for g_assert_cmphex() and forked test traps.
391 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
393 Implemented g_test_trap_fork() API.
395 * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
397 * gtestframework.c: implemented g_test_trap_fork() API.
399 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
401 * glib/gtestframework.c:
403 that match a given test path.
404 (g_test_run_suite): run suite only if it matches the existing test paths.
406 * glib/tests/testing.c: minor rename.
408 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
410 GTest framework started.
412 * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
413 includes elaborate assertions, performance report functions, test traps,
414 test timer, test random numbers, teardoiwn garbage collection functions
415 and general test case / test suite management APIs.
417 * glib/gtestframework.c: first test framework implementation. already covers
418 some test suite management APIs and assertion message implementations.
420 * glib/tests/testing.c: test program for the testing framework.
422 * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
425 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
427 glib/Makefile.am: build tests/ subdir after building libglib.
429 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
431 Fixed up internal 'g_test*' names.
433 * refcount/signals.c:
434 * refcount/objects.c:
435 * refcount/objects2.c:
436 * refcount/closures.c:
437 * refcount/properties.c:
438 * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
439 to not clash with newly introduced g_test* API in glib.
441 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
443 Added gtestframework.[hc] and glib/tests/.
445 2007-11-20 Sven Neumann <sven@gimp.org>
447 * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
448 g_strjoin() to concatenate two strings.
450 2007-11-19 Marco Barisione <marco@barisione.org>
452 * glib/gregex.c: When the compilation of a pattern fails in the error
453 message use the character offset and not the byte offset.
455 * glib/gregex.c: Pass an unsigned long instead of an int to
456 pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
459 2007-11-19 10:30:33 Tim Janik <timj@imendio.com>
461 * configure.in: updated version number to 2.15.0 for development.
463 2007-11-18 Matthias Clasen <mclasen@redhat.com>
465 * glib/gbase64.c: Documentation improvements. (#496518,
466 Stefan Schulze Frielinghaus)
468 2007-11-18 Matthias Clasen <mclasen@redhat.com>
470 * configure.in: Check whether assembler supports numerical local
473 * glib/gatomic.c: Fix powerpc implementation of atomic ops for
474 platforms where the assembler doesn't support numerical local
477 2007-11-15 Ryan Lortie <desrt@desrt.ca>
479 * docs/reference/glib/tmpl/markup.sgml:
481 * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
482 parser to prepend location information (ie: "Error on line %d, char
483 %d:") to errors generated by the GMarkupParser callbacks.
487 2007-11-15 Ryan Lortie <desrt@desrt.ca>
489 * docs/reference/glib/glib-sections.txt:
492 * glib/gerror.c: new functions g_prefix_error and
493 g_propagate_prefixed_error.
495 2007-11-13 Cody Russell <bratsche@gnome.org>
497 * docs/reference/gobject/gobject-docs.sgml:
498 * docs/reference/gobject/tut_gsignal.xml:
499 * docs/reference/gobject/tut_gtype.xml:
500 * docs/reference/gobject/tut_intro.xml:
501 * docs/reference/gobject/tut_tools.xml:
502 * docs/reference/gobject/tut_howto.xml:
503 * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
504 Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
505 NAUTILUS_WINDOW_TYPE). Fixed text which erroneously stated that
506 superclass initializers don't run when an object is
507 instantiated. Fixed numerous spelling mistakes. Minor grammar
508 edits. (#490637, Adam Dingle)
510 2007-11-09 Matthias Clasen <mclasen@redhat.com>
512 * glib/gkeyfile.c: Coding style cleanups and doc
513 improvements. (#491979, #491982, Areg Beketovski)
515 2007-11-09 Matthias Clasen <mclasen@redhat.com>
517 * glib/giochannel.c: Coding style cleanups and doc
518 improvements. (#491975, Areg Beketovski)
520 2007-11-09 Matthias Clasen <mclasen@redhat.com>
522 * glib/gmain.c (g_main_context_iteration): Improve the
523 docs. (#491974, Areg Beketovski)
525 2007-11-09 Matthias Clasen <mclasen@redhat.com>
527 * glib/gdate.c: Coding style fixes.
529 2007-11-09 Matthias Clasen <mclasen@redhat.com>
531 * configure.in: Add AM_PROG_CC_C_O.
533 * Makefile.am: Remove the install-exec-local hook and use
534 configexecincludedir_DATA instead, in an attempt to avoid
535 automake 1.9 <> 1.10 incompatibilities.
537 * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
538 automake 1.10 complains.
540 2007-11-09 Matthias Clasen <mclasen@redhat.com>
542 * glib/gspawn.c (g_spawn_sync): Improve the docs. (#491968,
545 2007-11-08 Matthias Clasen <mclasen@redhat.com>
547 * glib/gmain.c (g_main_context_release):
548 (g_main_context_acquire):
549 (g_main_context_new): Fix the doc wording. (#491957,
550 #491965, #491966, Areg Beketovski)
552 2007-11-08 Matthias Clasen <mclasen@redhat.com>
554 * glib/gutils.c (g_set_application_name): Add a missing
555 since tag. (#464259, Mark Doliner)
557 2007-11-08 Matthias Clasen <mclasen@redhat.com>
559 * glib/goption.c (g_option_context_new): Improve the docs.
560 (#436293, Vincent Untz)
562 2007-11-08 Matthias Clasen <mclasen@redhat.com>
564 * glib/gmain.c (g_main_loop_quit): Expand the docs
565 a bit. (#317775, Søren Sandmann)
567 2007-11-08 Matthias Clasen <mclasen@redhat.com>
569 * autogen.sh: Accept automake 1.10, too
571 * mkinstalldirs: Temporarily add this script, to fix building
574 * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
575 ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
577 2007-11-08 Matthias Clasen <mclasen@redhat.com>
579 * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
581 2007-11-08 Matthias Clasen <mclasen@redhat.com>
583 * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
584 shift state with AIX iconv(). (#467537)
586 2007-11-08 Matthias Clasen <mclasen@redhat.com>
589 * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
590 and in AM_PATH_GLIB_2_0 to be consistent with the use of
591 PKG_PROG_PKG_CONFIG which was introduced in 0.16. (#418778,
594 2007-11-08 Matthias Clasen <mclasen@redhat.com>
596 * glib/gstrfuncs.c (g_parse_long_long): Don't leave
597 out parameters uninitialized. (#490061, Benjamin Otte)
599 2007-11-07 Matthias Clasen <mclasen@redhat.com>
601 * glib/gmain.c (g_main_context_unref): Don't leak the
602 condvar. (#479724, Areg Beketovski)
604 2007-11-07 Matthias Clasen <mclasen@redhat.com>
607 * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack):
608 New function, to get the stack of open elements. (#452887,
611 2007-11-07 Matthias Clasen <mclasen@redhat.com>
613 * glib/gkeyfile.[hc]: Make some functions that take
614 a GError return boolean instead of void. (#375651, Matt Barnes)
616 2007-11-07 Matthias Clasen <mclasen@redhat.com>
618 * autogen.sh: Use automake 1.9
621 * configure.in: Move some inter-*.m4 includes from
622 configure.in to acinclude.m4 to avoid warnings when
623 using automake 1.9. (#449937)
625 2007-11-07 Matthias Clasen <mclasen@redhat.com>
627 === Branch for 2.14 ===