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