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