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