Use AC_CACHE_CHECK for the nl_langinfo check. (#304517, Lőrinczy
[platform/upstream/glib.git] / ChangeLog
1 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
2
3         * configure.in: Use AC_CACHE_CHECK for the nl_langinfo
4         check.  (#304517, Lőrinczy Zsigmond)
5
6 2006-12-27  Tor Lillqvist  <tml@novell.com>
7
8         * glib/gwin32.h
9         * glib/gwin32.c (get_package_directory_from_module)
10         (g_win32_get_package_installation_directory)
11         (g_win32_get_package_installation_subdirectory): Add const to
12         gchar* arguments. (#384523, Yevgen Muntyan)
13         
14 2006-12-27  Ryan Lortie  <desrt@desrt.ca>
15
16         * glib/ghash.c: cache the value of the hash function
17         in the GHashNode.  this speeds up resizing the hash
18         table and it also allows a slight optimisation on
19         lookups.  (#388332)
20
21 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
22
23         * glib/gunicollate.c (g_utf8_collate_key): Don't modify
24         the current locale.  (#389300)
25
26 2006-12-26  Matthias Clasen  <mclasen@redhat.com>
27
28         * glib/gutf8.c: Add hints for locale-dependent interfaces.
29         * glib/gconvert.c: Add hints for locale-dependent interfaces.
30
31         * glib/gconvert.c (g_get_filename_charsets): Improve
32         formatting of docs. 
33
34 2006-12-26  Behdad Esfahbod  <behdad@gnome.org>
35
36         * configure.in: Use libtool to determine shared library suffix.
37         (#357245)
38
39 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
40
41         * tests/run-collate-tests.sh:
42         * tests/unicode-collate.c: Silently skip tests if
43         we can't set LC_COLLATE to en_US.  (#336438)
44
45 2006-12-19  Matthias Clasen  <mclasen@redhat.com>
46
47         * glib/gkeyfile.c (g_key_file_is_key_name): Accept
48         '/', '+' and '.' in key names, since gnome-vfs uses
49         mime types as keys in some cache.
50
51         * tests/keyfile-test.c: Tests for the above.
52
53 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
54
55         * configure.in: Fix the broken poll test.  (#387260,
56         Christian Persch)
57
58         * glib/gmain.c (child_watch_helper_thread): Readd a
59         return which was removed as dead code a while ago.
60         icc may consider it dead, but gcc doesn't like non-void
61         functions without a return...  (#354707)
62
63         * tests/Makefile.am: Try a different fix for bug 346373.
64
65 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
66
67         Fix bug 161288:
68
69         * configure.in: Check for wcslen.
70
71         * glib/gnulib/vasnprintf.c: Handle wcslen missing.
72
73 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
74
75         * glib/gkeyfile.c: Accept '@' in locale names.
76
77         * glib/gkeyfile.c: Tighten up the check for allowed
78         key and group names.  (#343191, Tommi Komulainen)
79
80         * tests/keyfile-test.c: Test handling of key and group names.
81
82         * tests/Makefile.am: Don't use $RANDOM if the shell doesn't
83         have it.  (#346373, Thomas Klausner)
84
85 2006-12-17  Behdad Esfahbod  <behdad@gnome.org>
86
87         * glib/gstring.c: Improve docs about string functions taking a
88         length.  (#378727)
89
90 2006-12-17  Matthias Clasen  <mclasen@redhat.com>
91
92         * glib/gconvert.c:
93         * glib/gutf8.c (_g_charset_get_aliases): Put the G_GNUC_INTERNAL
94         where gcc doesn't complain about it.
95
96         * glib/ghash.c: Make ref_count an int to avoid compiler
97         warnings.
98
99         * configure.in: Use AC_LANG_SOURCE for the clock test.
100         
101         * glib/gthreadpool.h:
102         * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
103         as parameter name.  (#379207, Christian Biere)
104
105         * glib/gspawn.c: Refer to g_child_watch_add() in addition
106         to waitpid().
107
108         * glib/gstrfuncs.c (g_strndup, g_strnfill): Move docs
109         inline, and improve wording.  (#372598, Behdad Esfahbod)
110
111         * glib/gspawn.c: Add some pointers to the gdk_spawn_
112         variants.  (#338134, Federico Mena Quintero)
113
114         * configure.in: Make montonic clock test work again. Does
115         AC_COMPILE_IFELSE not get confdefs ? Also, move the clock
116         tests below the thread checks to fix #364663.
117
118         * tests/run-markup-tests.sh: Don't use diff -u  (#380801,
119         Marek Rouchal)
120
121         * glib/gspawn.c: Fix the recent fdwalk()-related changes
122         to not break mapping-test.  (#286838, Marco Barisione)
123
124         * glib/gstring.c (g_string_chunk_new): Don't shadow size.
125         (#386760, Kazuki IWAMOTO)
126
127 2006-12-16  Matthias Clasen  <mclasen@redhat.com>
128
129         * glib/gstring.c: Move more documentation inline.
130
131         * configure.in: Use AC_COMPILE_IFELSE for the monotonic
132         clock test.  (#362918, Han-Wen Nienhuys, Jeremy Lainé)
133
134         * glib/gstring.c: Move documentation inline. 
135
136 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
137
138         * glib/giochannel.h: Make ref_count a gint to avoid
139         compiler warnings.  (#321977, Andrew Paprocki)
140
141         * configure.in: On Solaris, set CFLAGS and LDFLAGS that
142         work both with Sun cc and gcc.  (#315061, Lazlo Peter)
143
144         * glib/gspawn.c: Undefine READ_OK to fix the build on
145         old versions of Darwin.  (#327800)
146
147         * glib/glib.symbols:
148         * glib/gstring.[hc] (g_string_chunk_clear): Add a function
149         for clearing a GStringChunk. (#364608, Matt Barnes)
150
151         * glib/guniprop.c (interval_compare): Avoid a compiler
152         warning.
153
154         * glib/gspawn.c (do_exec): Call set_cloexec() with
155         the right parameters.  (#386252, Guillaume Desmottes)
156
157 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
158
159         Fix #357585, Padraig O'Briain.
160         
161         * configure.in: Check for fdwalk.
162         
163         * glib/gspawn.c (do_exec): Use fdwalk() to close all
164         file descriptors. 
165
166         * glib/gspawn.c (fdwalk): Fallback implementation of
167         fdwalk.
168
169 2006-12-14  Matthias Clasen  <mclasen@redhat.com>
170
171         * glib/gconvert.c (open_converter): Don't use alloca
172         and avoid allocating memory for small keys that are 
173         already cached.  (#172406, Morten Welinder)
174
175         * glib/gmain.c (g_child_watch_add_full): Improve the docs.
176         (#345569, Tim-Philipp Müller)
177
178         * glib/gkeyfile.c (g_key_file_add_group): If the group
179         is already there, make it current.  (#385910, Joe Halliwell)
180
181         * tests/keyfile-test.c: Add a test for duplicate groups/keys.
182
183 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
184
185         * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
186         GLIB_WITH_NLS.  (#385132, Laszlo Peter)
187
188 2006-12-12  Matthias Clasen  <mclasen@redhat.com>
189
190         * configure.in: Add a check for broken poll on Mac OS X.
191
192         * glib/gmain.c: Use poll emulation on OS X.  (#302672, Toby Peterson,
193         patch by Dave Vasilevsky)
194
195 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
196
197         * glib/gatomic.c: Don't use local numeric labels in
198         inline assembler on AIX.  (#316434, Hans Rosenfeld)
199
200         * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
201         not char *.  (#138153, Nikolai Weibull)
202
203 Wed Nov 22 16:09:13 2006  Tim Janik  <timj@gtk.org>
204
205         * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
206         Hasselmann in bug #335341, fixes bug #335853.
207
208 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
209
210         * m4macros/glib-gettext.m4: Apply a patch from James 
211         Henstridge for compatibility with automake 2.60 (#343825)
212
213 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
214
215         * sanity_check: Replace bash-specific == with sh-understood =.
216         Fixes bug #373864.
217
218 2006-11-05  Hans Breuer  <hans@breuer.org>
219
220         * glib/makefile.msc.in : glib/ version not the gobject/ 
221         one I accidentially commited. Fixes bug #371074.
222         
223 2006-11-05  Tor Lillqvist  <tml@novell.com>
224
225         * makefile.mingw
226         * gmodule/makefile.mingw.in
227         * glib/makefile.mingw.in
228         * gobject/makefile.mingw.in
229         * gthread/makefile.mingw.in
230         * tests/makefile.mingw.in: Remove from CVS. Haven't been
231         maintained or distributed for long.
232
233 2006-10-26  Pascal Terjan  <pterjan@linuxfr.org>
234
235         * glib/libcharset/localcharset.c: Fix small leak on failed
236         realloc in _g_locale_get_charset_aliases (#338582)
237
238 2006-10-16  Behdad Esfahbod  <behdad@gnome.org>
239
240         * glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS).  (#362543,
241         Peter Kjellerstedt)
242
243 2006-10-15  Sebastian Wilhelmi  <seppi@seppi.de>
244
245         * tests/Makefile.am: Compile errorcheck-mutex-test with thread
246         libraries explicitly. (#74748, Javier Villavicencio)
247
248 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
249
250         Add a way to obtain Unicode script information.  (#348348,
251         Marco Barisione)
252
253         * glib/glib.symbols:
254         * glib/gunicode.h: Add GUnicodeScript enumeration and
255         g_unichar_get_script. 
256         
257         * glib/guniprop.c: Implement g_unichar_get_script.
258
259         * glib/gscripttable.h: Generated private header containing
260         script tables.
261
262         * glib/gen-script-table.pl: Script to generate gscripttable.h.
263
264         * glib/Makefile.am: Update
265
266 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
267
268         * tests/run-markup-tests.sh: Small portability fix.  (#347944,
269         Dan McMahill)
270
271 2006-10-07  Tor Lillqvist  <tml@novell.com>
272
273         * glib/gwin32.c (get_package_directory_from_module)
274         (g_win32_get_package_installation_directory): g_strdup the keys
275         that we are passed before adding them to the hash tables, to guard
276         against the caller freeing them. (#355955, Andreas Köhler)
277
278 2006-10-06  Matthias Clasen  <mclasen@redhat.com> 
279
280         * glib/gtimer.c: Fix a typo.  (#359190)
281
282 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
283
284         * glib/Makefile.am:
285         * gobject/Makefile.am:
286         Include pltcheck.sh in EXTRA_DIST, and remove redefinition of TESTS.
287         (#358966)
288
289 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
290
291         * glib/gtimer.c (g_usleep): Use nsleep to implement
292         g_usleep on AIX.  (#321974, Andrew Paprocki)
293
294         * configure.in: Check for nsleep
295
296         * glib/gmain.c: Fix typos in doc comments.  
297         (#358421, Tom Tromey)
298
299 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
300
301         * glib/pltcheck.sh: A script to check PLT entries.
302         * glib/Makefile.am (TESTS): Run pltcheck.sh
303
304         * glib/*: Fix includes to correct some issues with
305         PLT entries.  (#354522, Behdad Esfahbod)
306
307 2006-09-17  Hans Breuer  <hans@breuer.org>
308
309         * glib/makefile.msc.in gobject/makefile.msc.in : better filtering
310         of G_GNUC_* stuff when generating .def files. Now also works with
311         newer (less tolerant) linkers, e.g. from vc2500e
312
313 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
314
315         * glib/gbacktrace.c: Assume string.h is available. 
316         (#354523, Behdad Esfahbod)
317
318         * configure.in: Bump version to 2.13.0
319
320         * glib/glib.symbols:
321         * glib/gmain.[hc]: Add functions to create approximate
322         timeouts.  (#353942, Arjan van de Ven)
323
324         * glib/gstdio.c (g_rename): Initialize save_errno.
325         (#355206, Mike Edenfield)
326
327 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
328
329         * glib/gerror.c: Allocate GErrors using the slice allocator.
330         (#354054, Matt Barnes)
331
332 2006-09-02  Matthias Clasen  <mclasen@redhat.com>
333
334         * glib/gtimer.c: Forgotten HAVE_CLOCK_GETTIME.
335
336 2006-09-02  Tor Lillqvist  <tml@novell.com>
337
338         * glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed
339         declarations and code) in Win32 ifdef branch. (#353903, Mike
340         Edenfield)
341
342 2006-09-01  Abel Cheung  <abel@oaka.org>
343
344         * configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
345
346 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
347
348         * configure.in: Check for CLOCK_MONOTONIC.
349
350         * glib/gtimer.c: Only use clock_gettime if we
351         have a monotonic clock.
352
353 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
354
355         * configure.in: Add missing includes to a few test
356         programs.  (#353580, Chris Wilson)
357
358 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
359
360         * glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
361         va_end on caller-provided va_args.  (#353584, Chris Wilson)
362
363 2006-08-29  Tor Lillqvist  <tml@novell.com>
364
365         Remove support for Windows 9x/ME, as will be done also in Pango
366         and GTK+. GTK+ hasn't worked on Win9x since 2.6 or 2.8 anyway, so
367         it's pretty pointless to keep the Win9x code in here either. If
368         somebody is interested, the code can always be found in older GLib
369         versions, and in CVS.
370
371         * glib/gdir.c
372         * glib/gfileutils.c
373         * glib/gspawn-win32-helper.c
374         * glib/gspawn-win32.c
375         * glib/gstdio.c
376         * glib/gutils.c
377         * glib/gwin32.c
378         * glib/gwin32.h: Remove the G_WIN32_IS_NT_BASED() and
379         G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
380         branches, and any variables or static functions used only by the
381         Win9x branches.
382
383         * glib/gwin32.c (g_win32_windows_version_init): Call g_error() if
384         run on Win9x.
385
386 2006-08-27  Matthias Clasen  <mclasen@redhat.com>
387
388         * configure.in: Fix pthread compiler flag detection.
389
390         * glib/gtimer.c: Use Posix monotonic clocks instead of 
391         gettimeofday when available.  (#336114, William Jon McCann)
392
393 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
394
395         * glib/gutils.h: 
396         * glib/gscanner.c: Fix some typos.  (#351741, Kjartan Maraas)
397
398 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
399
400         * configure.in: Fix the pthread compiler flag detection.
401
402         * glib/gunicode.h: 
403         * glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8
404         from gconvert.c, move it to gutf8.c, and export it privately.
405
406         * glib/gconvert.c (g_filename_display_name): Adjust callers.
407
408         * glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of
409         places to ensure error messages are valid UTF-8.  (#351853,
410         Simon Budig)
411
412 2006-08-22  Matthias Clasen <mclasen@redhat.com>
413
414         * Branch for 2.12
415