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