Avoid an array overrun. (Coverity, fix by Pascal Terjan)
[platform/upstream/glib.git] / ChangeLog.pre-2-12
1 2006-04-16  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/gdate.c (g_date_fill_parse_tokens): Avoid an array
4         overrun.  (Coverity, fix by Pascal Terjan)
5
6 2006-04-12  Bastien Nocera  <hadess@hadess.net>
7
8         reviewed by: Matthias Clasen <mclasen@redhat.com>
9
10         * glib/gconvert.c: add more details about which RFC is concerned
11         when using g_filename_to_uri (#337553)
12
13 2006-04-12  Matthias Clasen  <mclasen@redhat.com>
14
15         * glib/goption.c (parse_arg): Add an assert to make it
16         clear when value can be NULL.
17
18 2006-04-07  Martyn Russell  <martyn@imendio.com>
19
20         * tests/threadpool-test.c: (test_thread_stop_unused): Removed an
21         assertion which can fail and is not a critical test.
22
23 2006-04-07  Hans Breuer  <hans@breuer.org>
24
25         * glib/makefile.msc.in : added gbase64.obj and derive the static libs
26         name from auto* variables
27         * glib/makefile.msc.in : link user32.lib for MessageBox()
28
29 2006-04-07  Martyn Russell  <martyn@imendio.com>
30
31         * glib/gasyncqueue.[ch]: Added private API
32         _g_async_queue_get_mutex so that g_thread_pool_free() can use the
33         async queue mutex. 
34         
35         * glib/gthreadpool.c: Make sure
36         g_thread_pool_stop_unused_threads() actually stops unused threads
37         and global limits (like max idle time and max unused threads) can
38         be set without creating a thread pool first. Fixed #335215 (patch
39         from Chris Wilson).  
40         
41         * tests/threadpool-test.c: Added two new tests, tests setting
42         global limits before creating a thread pool. The second test
43         makes sure unused threads are actually stopped when using the
44         g_thread_pool_stop_unused_threads(). 
45
46 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
47
48         * glib/gnulib/vasnprintf.c (vasnprintf): Make
49         long long printing work if snprintf is not 
50         available.  (#332841, Michael McDonald)
51
52 2006-04-05  Behdad Esfahbod  <behdad@gnome.org>
53
54         * tests/option-test.c: Check the return value of g_get_prgname for
55         NULL before passing to strcmp.
56
57         * tests/slice-test.c: Report the correct name in Usage summary.
58
59 2006-04-05  Matthias Clasen  <mclasen@redhat.com>
60
61         * tests/run-collate-tests.sh: Fix up shell script.
62
63         * tests/option-test.c (arg_test5): Skip the test if
64         setting the locale fails.
65         (empty_test1): Reset prgname before the test.
66
67         * tests/Makefile.am: Arrange for run-bookmark-test.sh
68         to be run by make check.
69
70         * tests/utf8-pointer.c: 
71         * tests/tree-test.c: Silence warnings.
72
73 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
74
75         * glib/glib.symbols:
76         * glib/gbase64.[hc]: Add G_GNUC_MALLOC where
77         appropriate, use glib types.
78
79 2006-04-04  Alexander Larsson  <alexl@redhat.com>
80
81         * glib/Makefile.am:
82         * glib/gbase64.[ch]:
83         * glib/glib.symbols:
84         Add base64 encode/decode functions
85         
86         * glib/glib.h:
87         Include gbase64.h
88         
89         * tests/Makefile.am:
90         * tests/base64-test.c:
91         Tests for base64 functions
92
93 2006-04-04  Matthias Clasen  <mclasen@redhat.com>
94
95         * glib/gdate.c: Move short_month_names and long_month_names
96         to bss.
97
98         * glib/gspawn-win32.c (g_spawn_error_quark):
99         * glib/gspawn.c (g_spawn_error_quark):
100         * glib/gshell.c (g_shell_error_quark):
101         * glib/gmarkup.c (g_markup_error_quark):
102         * glib/goption.c (g_option_error_quark):
103         * glib/gkeyfile.c (g_key_file_error_quark):
104         * glib/giochannel.c (g_io_channel_error_quark):
105         * glib/gfileutils.c (g_file_error_quark):
106         * glib/gconvert.c (g_convert_error_quark):
107         * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
108         * glib/gthread.c (g_thread_error_quark): No point in making
109         the error path fast by caching quarks.
110
111         * glib/gbookmarkfile.c: Make the parser struct const.
112
113 2006-04-04  Behdad Esfahbod  <behdad@gnome.org>
114
115         * glib/gbookmarkfile.c: Fix accidentally broken build.
116
117 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
118
119         * glib/gbookmarkfile.c: Don't include sys/time.h  (#337027,
120          Kazuki IWAMOTO)
121
122 2006-03-31  Tor Lillqvist  <tml@novell.com>
123
124         * glib/gstdio.c (g_remove): Revert change below. It wasn't a good
125         idea after all, says the original bug reporter. See bug for
126         discussion.
127
128 2006-03-30  Tor Lillqvist  <tml@novell.com>
129
130         * glib/gstdio.c (g_remove): [Win32] call rmdir() only if remove()
131         fails with errno set to ENOENT, to leave errno set to EACCESS if
132         that is the problem. (#334799, Yevgen Muntyan)
133
134 2006-03-30  Matthias Clasen  <mclasen@redhat.com>
135
136         * glib/gbookmarkfile.c (g_bookmark_file_get_app_info): Sync
137         the parameter names with the .h files, otherwise gtk-doc
138         misbehaves.
139
140 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
141
142         * tests/.cvsignore: Add bookmarkfile-test to the ignored files.
143
144 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
145
146         * tests/Makefile.am:
147         * tests/bookmarkfile-test.c:
148         * tests/run-bookmark-test.sh:
149         * tests/bookmarks/*.xbel: Add test suite for GBookmarkFile.
150
151 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
152
153         * docs/reference/glib/glib-docs.sgml:
154         * docs/reference/glib/glib-sections.txt:
155         * docs/reference/glib/tmpl/bookmarkfile.sgml: Add documentation for
156         GBookmarkFile to GLib's reference guide.
157
158 2006-03-27  Emmanuele Bassi  <ebassi@cvs.gnome.org>
159
160         * glib/glib.h:
161         * glib/gbookmarkfile.h
162         * glib/gbookmarkfile.c: Add GBookmarkFile, a parser for files
163         containing bookmarks stored using the Desktop Bookmark
164         specification. Fixes bug #327662.
165
166         * glib/glib.symbols:
167         * glib/Makefile.am:
168         * glib/makefile.msc.in:
169         * glib/makefile.mingw.in: Build glue for GBookmarkFile.
170
171 2006-03-27  Dom Lachowicz  <cinamod@hotmail.com>
172
173         * tests/option-test.c: Copy-and-paste error slipped into test5. Enable
174         test5, as per Matthias' comments in bug 329548#c11.
175
176         Change a gboolean to an int. Fixes bug #329789.
177
178         * configure.in: Bump version number to 2.11.0
179         
180 2006-03-27  Matthias Clasen  <mclasen@redhat.com>
181
182         Add support for floating point numbers to goption.
183         (#329548, Behdad Esfahbod, patch by Antoine Dopffer and 
184          Dom Lachowicz)
185
186         * glib/goption.h:
187         * glib/goption.c: Support double arguments.
188
189         * tests/option-test.c: Test double arguments.`
190
191 2006-03-26  Matthias Clasen  <mclasen@redhat.com>
192
193         * glib/goption.c (g_option_context_new): Improve the description
194         of parameter_string in the docs.  (#336085, Claudio Saavedra)
195
196 2006-03-24  Martyn Russell  <martyn@imendio.com>
197
198         * glib/gthreadpool.c: Updated the documentation to explain that
199         when the maximum threads is > 1 the sort functionality is not 100%
200         accurate due to the ramdom nature of the scheduler choosing which
201         threads to execute. Fixes bug #334943.
202
203         * tests/threadpool-test.c: Disabled the debugging by default and
204         fixed the sort test to set the maximum threads to 1 to guarantee
205         the thread entry function is called in order. 
206
207 2006-03-23  Matthias Clasen  <mclasen@redhat.com> 
208
209         === Branch for 2.10 ===