Define a two-argument macro C_() for marking translatable strings with
[platform/upstream/glib.git] / ChangeLog
1 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/gi18n-lib.h: 
4         * glib/gi18n.h: Define a two-argument macro C_() for marking
5         translatable strings with context and implement C_() and Q_()
6         using g_dpgettext().  (#142676, Morten Welinder)
7
8         * glib/glib.symbols:
9         * glib/gstrfuncs.[hc]: Implement g_dpgettext().
10
11 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
12
13         * glib/goption.c: Use g_print to print out --help text in 
14         locale encoding.  (#469551, Takao Fujiwara)
15
16 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
17
18         * glib/gkeyfile.c: Set length out param in list-returning functions
19         to 0 when returning NULL.  (#498728, Christian Persch)
20
21 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
22
23         * Makefile.decl: initialize automake variables EXTRA_DIST and
24         TEST_PROGS for unconditional appending via += in other makefiles.
25         define recursive test targets: test, test-report, perf-report,
26         full-report, as described here:
27       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
28
29         * Makefile.am:
30         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
31         * build/win32/Makefile.am, build/Makefile.am:
32         * docs/Makefile.am, docs/reference/Makefile.am:
33         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
34         * gmodule/Makefile.am, tests/Makefile.am:
35         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
36         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
37         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
38         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
39         * gthread/Makefile.am, glib/Makefile.am:
40         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
41
42         * glib/tests/Makefile.am: removed example testing rules.
43
44         * glib/tests/testing.c: conditionalized performance and slow tests.
45
46         * glib/gtestutils.h:
47         * glib/gtestutils.c: work around g_test_config_vars not changing its
48         exported value after value assignments, aparently due to symbol aliases.
49
50         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
51
52         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
53
54 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
55
56         Renamed gtestframework to gtestutils.
57
58         * glib/glib.h:
59         * glib/Makefile.am: added gtestutils.h to public includes.
60
61         * glib/gtestutils.c: include gtestutils.h.
62
63         * glib/gtestutils.h:
64         * glib/glib.symbols:
65         * glib/tests/testing.c: renamed gtestframework to gtestutils.
66
67         * glib/gtestframework.h: renamed to gtestutils.h.
68
69         * glib/gtestframework.c: renamed to gtestutils.c.
70
71 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
72
73         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
74
75 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
76
77         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
78
79 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
80
81         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
82
83 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
84
85         Added g_test_bug() and related API.
86
87         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
88
89         * gtestframework.h, gtestframework.c: added test message API and convenience
90         API to send test messages about bug URLs.
91
92 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
93
94         Added API to access test framework configuration.
95
96         * gtestframework.h, gtestframework.c: export testing configuration to test
97         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
98
99 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
100
101         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
102
103         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
104         restart test binaries when tests fail, resuming after the last processed test.
105         support --gtester-selftest to run gtester itself as test program.
106         support --test-arg=<arg> to pass args along to test programs. added
107         main_selftest() which does a simplistic fixture test. fail if exit
108         code of test programs is not 0.
109
110         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
111
112         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
113
114         * tests/Makefile.am: added test-report: for demonstration purposes.
115         added gtester-xmllint-check: and hooked it up into check:, this rule calls
116         gtester as test program, running it's selftest, and then uses xmllint to
117         validate the generate XML test log file.
118
119 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
120
121         gtester: implemented XML logging.
122
123         * glib/gtester.c: log test messages to XML output file. beautified normal test
124         result output.
125
126         * glib/gtestframework.c: fixed GTimer leak.
127
128         * glib/tests/Makefile.am: start gtester with --verbose.
129
130 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
131
132         tests/Makefile.am: execute test programs with gtester, add test: to check:
133
134 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
135
136         Fixed PLT symbol exports for gtestframework.h.
137
138         * glib/glib.symbols: added all exported gtestframework.h symbols.
139
140         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
141
142 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
143
144         glib/gtester.c: fixed debugging flag.
145
146 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
147
148         fixed bogus unistd.h include.
149
150 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
151
152         Implemented test log IPC.
153
154         * gtester.c: read and decode log messages from test binary child processes.
155         fixed GIOChannel and child watch handling to process all messages and avoid
156         hangs. pass --verbose and --quiet on to children, default to --quiet.
157
158         * gtestframework.h: export g_test_log_type_name().
159
160         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
161         bogus -o-option.
162
163 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
164
165         gtester.c: support test case listing through gtester.
166
167 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
168
169         gtestframework.c: fixed testpath matches for automatic root suite.
170
171 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
172
173         gtester.c: adapted to become a rudimentary test binary launcher.
174
175         * gtester.c: increased read buffer size to match common unix pipe buffer size.
176         added argument parsing and usage. changed io handling to capture and replicate
177         stdout. fixed io handlers to be cleaned up when the child process exits (catch
178         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
179         structure, to keep running until the child process exits and all io has been
180         processed. launch the test binaries given on the command line. don't quit when
181         a child couldn't be launched but --keep-going was specified.
182
183 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
184
185         Integrated gtester program into build process.
186
187         * Makefile.am: build and install gtester binary.
188
189         * gtester.c: fixed up coding style and removed hard wired test coded.
190
191 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
192
193         glib/gtester.c:Small -Wall fix
194
195 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
196
197         glib/gtester.c:Implemented nonblocking reading properly now
198
199 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
200
201         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
202
203 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
204
205         glib/gtester.c:Read the output of the child process
206
207 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
208
209         glib/gtester.c:Use g_spawn_async_with_pipes()
210
211 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
212
213         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
214
215 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
216
217         glib/gtester.c:Added a first revision of gtester
218
219 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
220
221         Implemented test log serialization.
222
223         * glib/gtestframework.h: added g_test_log*() API.
224
225         * glib/gtestframework.c: implement test log serialization.
226
227 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
228
229         Implemented test logging basics.
230
231         * glib/gtestframework.c: added --debug-log and --verbose, implemented
232         test information logging.
233
234         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
235
236 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
237
238         Implemented g_test_timer*().
239
240         * gtestframework.c: implemented g_test_timer*().
241
242         * tests/testing.c: added a g_test_timer*() test.
243
244 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
245
246         Implemented support for testpaths.
247
248         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
249
250         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
251
252 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
253
254         testing.c: added tests for the g_test_rand*() API.
255
256 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
257
258         Implemented g_test_rand*().
259
260         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
261         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
262         doubles and ranges.
263
264         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
265
266 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
267
268         testing.c: added tests for g_assert_cmphex() and forked test traps.
269
270 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
271
272         Implemented g_test_trap_fork() API.
273
274         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
275
276         * gtestframework.c: implemented g_test_trap_fork() API.
277
278 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
279
280         * glib/gtestframework.c:
281
282         that match a given test path.
283         (g_test_run_suite): run suite only if it matches the existing test paths.
284
285         * glib/tests/testing.c: minor rename.
286
287 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
288
289         GTest framework started.
290
291         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
292         includes elaborate assertions, performance report functions, test traps,
293         test timer, test random numbers, teardoiwn garbage collection functions
294         and general test case / test suite management APIs.
295
296         * glib/gtestframework.c: first test framework implementation. already covers
297         some test suite management APIs and assertion message implementations.
298
299         * glib/tests/testing.c: test program for the testing framework.
300
301         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
302         make test:.
303
304 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
305
306         glib/Makefile.am: build tests/ subdir after building libglib.
307
308 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
309
310         Fixed up internal 'g_test*' names.
311
312         * refcount/signals.c:
313         * refcount/objects.c:
314         * refcount/objects2.c:
315         * refcount/closures.c:
316         * refcount/properties.c:
317         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
318         to not clash with newly introduced g_test* API in glib.
319
320 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
321
322         Added gtestframework.[hc] and glib/tests/.
323
324 2007-11-20  Sven Neumann  <sven@gimp.org>
325
326         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
327         g_strjoin() to concatenate two strings.
328
329 2007-11-19  Marco Barisione  <marco@barisione.org>
330
331         * glib/gregex.c: When the compilation of a pattern fails in the error
332         message use the character offset and not the byte offset.
333
334         * glib/gregex.c: Pass an unsigned long instead of an int to
335         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
336         Sutou)
337
338 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
339
340         * configure.in: updated version number to 2.15.0 for development.
341
342 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
343
344         * glib/gbase64.c: Documentation improvements.  (#496518,
345         Stefan Schulze Frielinghaus)
346
347 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
348
349         * configure.in: Check whether assembler supports numerical local
350         labels.  
351
352         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
353         platforms where the assembler doesn't support numerical local
354         labels.  (#445362)
355
356 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
357
358         * docs/reference/glib/tmpl/markup.sgml:
359         * glib/gmarkup.h:
360         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
361         parser to prepend location information (ie: "Error on line %d, char
362         %d:") to errors generated by the GMarkupParser callbacks.
363
364         Closes #496046.
365
366 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
367
368         * docs/reference/glib/glib-sections.txt:
369         * glib/glib.symbols:
370         * glib/gerror.h:
371         * glib/gerror.c: new functions g_prefix_error and
372         g_propagate_prefixed_error.
373
374 2007-11-13  Cody Russell  <bratsche@gnome.org>
375
376         * docs/reference/gobject/gobject-docs.sgml:
377         * docs/reference/gobject/tut_gsignal.xml:
378         * docs/reference/gobject/tut_gtype.xml:
379         * docs/reference/gobject/tut_intro.xml:
380         * docs/reference/gobject/tut_tools.xml:
381         * docs/reference/gobject/tut_howto.xml:
382         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
383         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
384         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
385         superclass initializers don't run when an object is 
386         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
387         edits. (#490637, Adam Dingle)
388
389 2007-11-09  Matthias Clasen <mclasen@redhat.com>
390
391         * glib/gkeyfile.c: Coding style cleanups and doc 
392         improvements.  (#491979, #491982, Areg Beketovski)
393
394 2007-11-09  Matthias Clasen <mclasen@redhat.com>
395
396         * glib/giochannel.c: Coding style cleanups and doc 
397         improvements.  (#491975, Areg Beketovski)
398
399 2007-11-09  Matthias Clasen <mclasen@redhat.com>
400
401         * glib/gmain.c (g_main_context_iteration): Improve the
402         docs.  (#491974, Areg Beketovski)
403
404 2007-11-09  Matthias Clasen <mclasen@redhat.com>
405
406         * glib/gdate.c: Coding style fixes.
407
408 2007-11-09  Matthias Clasen <mclasen@redhat.com>
409
410         * configure.in: Add AM_PROG_CC_C_O.
411
412         * Makefile.am: Remove the install-exec-local hook and use
413         configexecincludedir_DATA instead, in an attempt to avoid
414         automake 1.9 <> 1.10 incompatibilities.
415
416         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
417         automake 1.10 complains.
418
419 2007-11-09  Matthias Clasen <mclasen@redhat.com>
420
421         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
422         Areg Beketovski)
423
424 2007-11-08  Matthias Clasen <mclasen@redhat.com>
425
426         * glib/gmain.c (g_main_context_release): 
427         (g_main_context_acquire):
428         (g_main_context_new): Fix the doc wording.  (#491957, 
429         #491965, #491966, Areg Beketovski)
430
431 2007-11-08  Matthias Clasen <mclasen@redhat.com>
432
433         * glib/gutils.c (g_set_application_name): Add a missing
434         since tag.  (#464259, Mark Doliner)
435
436 2007-11-08  Matthias Clasen <mclasen@redhat.com>
437
438         * glib/goption.c (g_option_context_new): Improve the docs.
439         (#436293, Vincent Untz)
440
441 2007-11-08  Matthias Clasen <mclasen@redhat.com>
442
443         * glib/gmain.c (g_main_loop_quit): Expand the docs 
444         a bit.  (#317775, Søren Sandmann)
445
446 2007-11-08  Matthias Clasen <mclasen@redhat.com>
447         
448         * autogen.sh: Accept automake 1.10, too
449
450         * mkinstalldirs: Temporarily add this script, to fix building
451         from svn.
452
453         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
454         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
455
456 2007-11-08  Matthias Clasen <mclasen@redhat.com>
457
458         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
459
460 2007-11-08  Matthias Clasen <mclasen@redhat.com>
461
462         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
463         shift state with AIX iconv().  (#467537)
464
465 2007-11-08  Matthias Clasen <mclasen@redhat.com>
466
467         * configure.in:
468         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
469         and in AM_PATH_GLIB_2_0 to be consistent with the use of
470         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
471         Loïc Minier)
472
473 2007-11-08  Matthias Clasen <mclasen@redhat.com>
474
475         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
476         out parameters uninitialized.  (#490061, Benjamin Otte)
477
478 2007-11-07  Matthias Clasen <mclasen@redhat.com>
479
480         * glib/gmain.c (g_main_context_unref): Don't leak the
481         condvar.  (#479724, Areg Beketovski)
482
483 2007-11-07  Matthias Clasen <mclasen@redhat.com>
484
485         * glib/glib.symbols:
486         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
487         New function, to get the stack of open elements.  (#452887,
488         Ryan Lortie)
489
490 2007-11-07  Matthias Clasen <mclasen@redhat.com>
491
492         * glib/gkeyfile.[hc]: Make some functions that take
493         a GError return boolean instead of void.  (#375651, Matt Barnes)
494
495 2007-11-07  Matthias Clasen <mclasen@redhat.com>
496         
497         * autogen.sh: Use automake 1.9
498
499         * acinclude.m4:
500         * configure.in: Move some inter-*.m4 includes from
501         configure.in to acinclude.m4 to avoid warnings when
502         using automake 1.9.  (#449937)
503
504 2007-11-07  Matthias Clasen <mclasen@redhat.com>
505
506         === Branch for 2.14 ===