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