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