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