Allow optional summary and description texts before and after the option
[platform/upstream/glib.git] / ChangeLog
1 2006-05-13  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/glib.symbols: 
4         * glib/goption.h: 
5         * glib/goption.c: Allow optional summary and description
6         texts before and after the option descriptions, and add
7         a way to translate them.  (#336120, Behdad Esfahbod)
8
9 2006-05-12  Tor Lillqvist  <tml@novell.com>
10
11         * glib/giowin32.c (g_io_win32_sock_set_flags): Implement
12         setting/clearing G_IO_FLAG_NONBLOCK for channels attached to
13         sockets. (#341192)
14         (g_io_win32_unimpl_set_flags): set_flags method for the
15         unimplemented case.
16         
17 2006-05-11  Bastien Nocera  <hadess@hadess.net>
18
19         * glib/goption.c: (parse_int64), (parse_arg), (free_changes_list):
20         * glib/goption.h:
21         * tests/option-test.c: (arg_test6), (main): add an int64 type for
22         GOption (G_OPTION_ARG_INT64) (#341237)
23
24 2006-05-10  Sebastian Wilhelmi  <wilhelmi@google.com>
25
26         * glib/gthread.h, gthread/gthread-impl.c: Make the magic and
27         location arguments to the error-checking-mutex functions const and
28         do not write to them, as we might not own them. Clean up the
29         error-checking-mutex code quite a bit. (#335198, Chris Wilson)
30
31         * glib/gthread.c: Use g_atomic_pointer_set instead of old
32         homegrown version now that we have it. (#335198, Chris Wilson)
33
34         * gthread/gthread-posix.c, gthread/gthread-win32.c: Prevent
35         calling into g_cond_wait resp. g_mutex_lock/unlock directly to
36         avoid recursions into the errorcheking mutex code (and out of
37         principle anyway). (#335198, Chris Wilson)
38
39         * tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
40
41 2006-05-09  Sebastian Wilhelmi  <wilhelmi@google.com>
42
43         * glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
44         system thread identifier comparision and assignment macros from
45         glib/gthread.c to glib/gthreadprivate.h.
46
47         * glib/Makefile.am, glib/gatomic.c, glib/gconvert.c, glib/gmain.c,
48         glib/gmem.c, glib/gmessages.c, glib/grand.c, glib/gslice.c,
49         glib/gthread.c, glib/gutils.c, gthread/gthread-impl.c: Use
50         glib/gthreadprivate.h instead of glib/gthreadinit.h.
51
52         * gthread/gthread-impl.c: Use GSystemThread instead of GThread for
53         owner determination. (#311043, jylefort@FreeBSD.org)
54
55         * tests/Makefile.am, tests/errorcheck-mutex-test: New test program
56         to test for all checked violations.
57
58         * glib/gprintf.c, glib/gspawn-win32.c, glib/gutf8.c,
59         gthread/gthread-impl.c, gthread/gthread-posix.c,
60         gthread/gthread-win32.c: Use canonical include form for internal
61         headers. config.h is always there.
62
63         * Remove obsolete gthread/gthread-solaris.c.
64
65 2006-05-08  Matthias Clasen  <mclasen@redhat.com>
66
67         * tests/convert-test.c (test_one_half): Use encoding names which 
68         may work better on Solaris.  (#340434, Alessandro Vesely)
69
70         * tests/keyfile-test.c (test_number): Add some tests for
71         invalid floating point numbers.
72
73         * glib/gkeyfile.c (g_key_file_parse_value_as_double): Return
74         an error for the empty string.  (#339105, Morten Welinder)
75
76         * glib/gscanner.c (g_scanner_config_template): Make const,
77         noticed by Kjartan Maraas.
78
79 2006-05-06  Matthias Clasen  <mclasen@redhat.com>
80
81         * glib/gkeyfile.c (g_key_file_set_string_list)
82         (g_key_file_set_locale_string_list): Fix invalid memory
83         reads.  (#340816, Nick Treleaven)
84
85 2006-05-04  Alexander Larsson  <alexl@redhat.com>
86
87         * glib/gbase64.c: (g_base64_decode_step):
88         Fix OOB write (#340538)
89
90 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
91
92         * tests/base64-test.c: Add some more tests.
93
94         * glib/gbase64.c (g_base64_decode_step): Avoid writing
95         beyond the guaranteed lenght of the output buffer, if
96         there is padding.
97
98         * tests/base64-test.c (test_incremental): Use malloced memory
99         instead of stack-allocated, so that MALLOC_CHECK_=2 catches
100         the OOB write...
101
102         * glib/gbookmarkfile.c (g_bookmark_file_load_from_data): Remove
103         an overzealous return_if_fail check that causes make check to 
104         fail.
105
106 2006-05-02  Matthias Clasen  <mclasen@redhat.com>
107
108         * configure.in: Bump version
109         
110         * === Released 2.11.0 ===
111
112         * NEWS: Updates
113
114         * tests/casemap.txt: 
115         * tests/casefold.txt: Regenerate from Unicode 5.0 data. 
116
117 Tue May  2 15:00:00 2006  Tim Janik  <timj@gtk.org>
118
119         * glib/guniprop.c: Make interval_compare static.
120
121         * tests/gobject/deftype.c: added test code from Behdad Esfahbod, 
122         see #337128.
123
124 Tue May  2 14:18:25 2006  Tim Janik  <timj@gtk.org>
125
126         * glib/goption.c (g_option_context_parse): fixed leak in short
127         option parsing. rewrote parts of the code to be more concise to
128         enhance readability. fixed exaggerated uses of strlen.
129
130 2006-04-28  Behdad Esfahbod  <behdad@gnome.org>
131
132         * glib/guniprop.c: #include <stdlib.h>
133
134 2006-04-27  Matthias Clasen  <mclasen@redhat.com>
135
136         * glib/glib.symbols: Add g_unichar_iswide_cjk.
137         * glib/guniprop.c: Add a "Since: 2.12".
138
139         * NEWS: Updates
140
141 2006-04-27  Behdad Esfahbod  <behdad@gnome.org>
142
143         * docs/reference/glib/glib-sections.txt,
144         * glib/gunicode.h glib/guniprop.c: Implement g_unichar_iswide_cjk().
145         (#105626)
146
147 2006-04-27  Matthias Clasen  <mclasen@redhat.com>
148
149         * glib/gbookmarkfile.c (g_bookmark_file_set_description) 
150         (g_bookmark_file_set_title, g_bookmark_file_set_icon): 
151         Remove some special-casing of empty string which led to 
152         dangling pointers.  (#339337, Morten Welinder)
153         (expand_exec_line): Don't use printf() needlessly, handle
154         trailing '%' gracefully.  (#339338, Morten Welinder)
155         (is_element_full): Silence the compiler.
156         (g_bookmark_file_dump, bookmark_metadata_dump): 
157         (bookmark_app_info_dump): Escape strings before dumping 
158         them in xml.  (#339340, Morten Welinder)
159
160 2006-04-27  Behdad Esfahbod  <behdad@gnome.org>
161
162         * glib/gunibreak.h, glib/gunichartables.h: Regenerated using
163         Unicode Character Database 5.0 beta.
164
165 2006-04-26  Matthias Clasen  <mclasen@redhat.com>
166
167         * glib/grand.c (g_rand_new): Don't repeat a failed fclose()
168         call, since that invokes undefined behaviour.  (Coverity)
169
170 2006-04-25  Matthias Clasen  <mclasen@redhat.com>
171
172         * glib/gbookmarkfile.c (is_element_full): Avoid a possible
173         NULL dereference (found by Coverity), also avoid some 
174         pointless strdups.
175
176         * tests/keyfile-test.c (test_comments): Add a test for
177         the previous change.
178
179         * glib/gkeyfile.c (g_key_file_lookup_group_node): Remove
180         redundant code.
181         (g_key_file_get_group_comment): Don't dereference before
182         checking for NULL.  (#338572, Coverity, Pascal Terjan)
183
184 2006-04-19  Matthias Clasen  <mclasen@redhat.com>
185
186         * glib/gdataset.c: Add some missing Since: 2.8 tags.
187
188 2006-04-19  Tor Lillqvist  <tml@novell.com>
189
190         * glib/gatomic.c: Adapt to the changed prototype of
191         InterlockedCompareExchange() in newer SDKs. Use
192         InterlockedCompareExchangePointer() when applicable. (#155884,
193         John Ehresman)
194
195 2006-04-18  Matthias Clasen  <mclasen@redhat.com>
196
197         * glib/gkeyfile.h:
198         * glib/glib.symbols:
199         * glib/gkeyfile.c: Add api to get and set doubles and 
200         lists of doubles.  (#164719, Maurizio Monge, Dom Lachowicz)
201
202         * tests/keyfile-test.c: Add tests for new api.
203
204         * glib/gkeyfile.c (g_key_file_add_group): Accept duplicate
205         groups.  (#157877, Sebastien Bacher)
206
207         * tests/keyfile-test.c: Add tests for duplicate key and
208         duplicate group handling.
209
210 2006-04-17  Matthias Clasen  <mclasen@redhat.com>
211
212         * glib/gcompletion.c (g_completion_complete_utf8): Make passing
213         NULL for new_prefix work as documented.  (#338845, Yevgen Muntyan)
214
215         * tests/completion-test.c: Test that passing NULL for 
216         new_prefix in g_completion_complete_utf8 works.
217
218 2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>
219
220         * configure.in: Remove obsolete entry for no_NO.
221         * po/no.po: And the translation.
222
223 2006-04-16  Matthias Clasen  <mclasen@redhat.com>
224
225         * glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
226         overrun.  (Coverity, fix by Pascal Terjan)
227
228 2006-04-12  Bastien Nocera  <hadess@hadess.net>
229
230         reviewed by: Matthias Clasen <mclasen@redhat.com>
231
232         * glib/gconvert.c: add more details about which RFC is concerned
233         when using g_filename_to_uri (#337553)
234
235 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
236
237         * glib/goption.c (parse_arg): Add an assert to make it
238         clear when value can be NULL.
239
240 2006-04-07  Martyn Russell  <martyn@imendio.com>
241
242         * tests/threadpool-test.c: (test_thread_stop_unused): Removed an
243         assertion which can fail and is not a critical test.
244
245 2006-04-07  Hans Breuer  <hans@breuer.org>
246
247         * glib/makefile.msc.in : added gbase64.obj and derive the static libs
248         name from auto* variables
249         * glib/makefile.msc.in : link user32.lib for MessageBox()
250
251 2006-04-07  Martyn Russell  <martyn@imendio.com>
252
253         * glib/gasyncqueue.[ch]: Added private API
254         _g_async_queue_get_mutex so that g_thread_pool_free() can use the
255         async queue mutex. 
256         
257         * glib/gthreadpool.c: Make sure
258         g_thread_pool_stop_unused_threads() actually stops unused threads
259         and global limits (like max idle time and max unused threads) can
260         be set without creating a thread pool first. Fixed #335215 (patch
261         from Chris Wilson).  
262         
263         * tests/threadpool-test.c: Added two new tests, tests setting
264         global limits before creating a thread pool. The second test
265         makes sure unused threads are actually stopped when using the
266         g_thread_pool_stop_unused_threads(). 
267
268 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
269
270         * glib/gnulib/vasnprintf.c (vasnprintf): Make
271         long long printing work if snprintf is not 
272         available.  (#332841, Michael McDonald)
273
274 2006-04-05  Behdad Esfahbod  <behdad@gnome.org>
275
276         * tests/option-test.c: Check the return value of g_get_prgname for
277         NULL before passing to strcmp.
278
279         * tests/slice-test.c: Report the correct name in Usage summary.
280
281 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
282
283         * tests/run-collate-tests.sh: Fix up shell script.
284
285         * tests/option-test.c (arg_test5): Skip the test if
286         setting the locale fails.
287         (empty_test1): Reset prgname before the test.
288
289         * tests/Makefile.am: Arrange for run-bookmark-test.sh
290         to be run by make check.
291
292         * tests/utf8-pointer.c: 
293         * tests/tree-test.c: Silence warnings.
294
295 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
296
297         * glib/glib.symbols:
298         * glib/gbase64.[hc]: Add G_GNUC_MALLOC where
299         appropriate, use glib types.
300
301 2006-04-04  Alexander Larsson  <alexl@redhat.com>
302
303         * glib/Makefile.am:
304         * glib/gbase64.[ch]:
305         * glib/glib.symbols:
306         Add base64 encode/decode functions
307         
308         * glib/glib.h:
309         Include gbase64.h
310         
311         * tests/Makefile.am:
312         * tests/base64-test.c:
313         Tests for base64 functions
314
315 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
316
317         * glib/gdate.c: Move short_month_names and long_month_names
318         to bss.
319
320         * glib/gspawn-win32.c (g_spawn_error_quark):
321         * glib/gspawn.c (g_spawn_error_quark):
322         * glib/gshell.c (g_shell_error_quark):
323         * glib/gmarkup.c (g_markup_error_quark):
324         * glib/goption.c (g_option_error_quark):
325         * glib/gkeyfile.c (g_key_file_error_quark):
326         * glib/giochannel.c (g_io_channel_error_quark):
327         * glib/gfileutils.c (g_file_error_quark):
328         * glib/gconvert.c (g_convert_error_quark):
329         * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
330         * glib/gthread.c (g_thread_error_quark): No point in making
331         the error path fast by caching quarks.
332
333         * glib/gbookmarkfile.c: Make the parser struct const.
334
335 2006-04-04  Behdad Esfahbod  <behdad@gnome.org>
336
337         * glib/gbookmarkfile.c: Fix accidentally broken build.
338
339 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
340
341         * glib/gbookmarkfile.c: Don't include sys/time.h  (#337027,
342          Kazuki IWAMOTO)
343
344 2006-03-31  Tor Lillqvist  <tml@novell.com>
345
346         * glib/gstdio.c (g_remove): Revert change below. It wasn't a good
347         idea after all, says the original bug reporter. See bug for
348         discussion.
349
350 2006-03-30  Tor Lillqvist  <tml@novell.com>
351
352         * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
353         fails with errno set to ENOENT, to leave errno set to EACCESS if
354         that is the problem. (#334799, Yevgen Muntyan)
355
356 2006-03-30  Matthias Clasen  <mclasen@redhat.com>
357
358         * glib/gbookmarkfile.c (g_bookmark_file_get_app_info): Sync
359         the parameter names with the .h files, otherwise gtk-doc
360         misbehaves.
361
362 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
363
364         * tests/.cvsignore: Add bookmarkfile-test to the ignored files.
365
366 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
367
368         * tests/Makefile.am:
369         * tests/bookmarkfile-test.c:
370         * tests/run-bookmark-test.sh:
371         * tests/bookmarks/*.xbel: Add test suite for GBookmarkFile.
372
373 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
374
375         * docs/reference/glib/glib-docs.sgml:
376         * docs/reference/glib/glib-sections.txt:
377         * docs/reference/glib/tmpl/bookmarkfile.sgml: Add documentation for
378         GBookmarkFile to GLib's reference guide.
379
380 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
381
382         * glib/glib.h:
383         * glib/gbookmarkfile.h
384         * glib/gbookmarkfile.c: Add GBookmarkFile, a parser for files
385         containing bookmarks stored using the Desktop Bookmark
386         specification. Fixes bug #327662.
387
388         * glib/glib.symbols:
389         * glib/Makefile.am:
390         * glib/makefile.msc.in:
391         * glib/makefile.mingw.in: Build glue for GBookmarkFile.
392
393 2006-03-27  Dom Lachowicz  <cinamod@hotmail.com>
394
395         * tests/option-test.c: Copy-and-paste error slipped into test5. Enable
396         test5, as per Matthias' comments in bug 329548#c11.
397
398         Change a gboolean to an int. Fixes bug #329789.
399
400         * configure.in: Bump version number to 2.11.0
401         
402 2006-03-27  Matthias Clasen  <mclasen@redhat.com>
403
404         Add support for floating point numbers to goption.
405         (#329548, Behdad Esfahbod, patch by Antoine Dopffer and 
406          Dom Lachowicz)
407
408         * glib/goption.h:
409         * glib/goption.c: Support double arguments.
410
411         * tests/option-test.c: Test double arguments.`
412
413 2006-03-26  Matthias Clasen  <mclasen@redhat.com>
414
415         * glib/goption.c (g_option_context_new): Improve the description
416         of parameter_string in the docs.  (#336085, Claudio Saavedra)
417
418 2006-03-24  Martyn Russell  <martyn@imendio.com>
419
420         * glib/gthreadpool.c: Updated the documentation to explain that
421         when the maximum threads is > 1 the sort functionality is not 100%
422         accurate due to the ramdom nature of the scheduler choosing which
423         threads to execute. Fixes bug #334943.
424
425         * tests/threadpool-test.c: Disabled the debugging by default and
426         fixed the sort test to set the maximum threads to 1 to guarantee
427         the thread entry function is called in order. 
428
429 2006-03-23  Matthias Clasen  <mclasen@redhat.com> 
430
431         === Branch for 2.10 ===