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