Add a new 'real_sequence' field. (g_sequence_new): Initialize
[platform/upstream/glib.git] / ChangeLog
1 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
2
3         * glib/gsequence.c (struct _GSequence): Add a new 'real_sequence'
4         field.
5         (g_sequence_new): Initialize real_sequence to the sequence
6         (g_sequence_sort_iter): Set real_sequence of the temporary
7         sequence to the real sequence.
8         (g_sequence_sort_changed_iter): Same
9         (g_sequence_insert_sorted_iter): Same
10         (g_sequence_search_iter): Same
11         (g_sequence_iter_get_sequence): Return real_sequence
12
13         * tests/sequence-test.c (compare_iters): Insert assertions that
14         the iters point to the sequence being manipulated.
15
16 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
17
18         * glib/gsequence.[ch]: New files implementing GSequence, a list
19         implemented using a binary tree.
20         * glib/glib.h, glib/glib.symbols: Update for GSequence.
21         * docs/reference: Add documentation for GSequence
22         * tests: Add sequence-test.c, a thorough test of all of 
23         the GSequence API.
24
25 2007-01-30  Matthias Clasen <mclasen@redhat.com>
26
27         * glib/glib.symbols:
28         * glib/gslice.h:
29         * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
30         just add an empty g_slice_debug_tree_statistics () implementation
31         in the !G_ENABLE_DEBUG case.
32
33 2007-01-26  Matthias Clasen <mclasen@redhat.com>
34
35         * configure.in: Define G_GNUC_INTERNAL for Sun Studio
36         as __hidden.  (#342981, Brian Cameron)
37
38         * glib/gconvert.c:
39         * glib/gutf8.c: Move G_GNUC_INTERNAL uses to the right
40         spot.  
41
42 2007-01-26  Matthias Clasen <mclasen@redhat.com>
43
44         * gmem.c:
45         * gslice.c:
46         * gmessages.c:
47         * gutils.c: Make some structs which are used only once 
48         non-static. 
49
50 2007-01-24  Benjamin Otte <otte@gnome.org>
51
52         * glib/gprintf.c (g_sprintf): Clarify the documentation
53         regarding overflows (wording by Jan Schmidt)
54
55 2007-01-23  Roozbeh Pournader  <roozbeh@farsiweb.info>
56
57         * README: Remove mention of no-longer-existing PATCH
58         keyword in bugzilla. (#396899)
59
60 2007-01-23  Matthias Clasen  <mclasen@redhat.com>
61
62         * glib/gutf8.c (g_utf8_get_char_validated): Clarify
63         the behaviour is max_len is zero.  (#400044, 
64         Benjamin Dauvergne)
65
66 2007-01-23  Matthias Clasen  <mclasen@redhat.com>
67
68         * glib/goption.c (print_help): Use bitwise &
69         when operating on flags.  (#399971, Jon Oberheide)
70
71 2007-01-19  Matthias Clasen  <mclasen@redhat.com>
72
73         Some file list updates (#398069, Owen Taylor)
74
75         * docs/Changes-2.0.txt
76         * docs/reference/README.cvs-commits
77         * glib.spec.in: Remove obsolete files
78
79         * tests/Makefile.am:
80         * glib/libcharset/Makefile.am:
81         * gobject/Makefile.am:
82         * Makefile.am: Add some missing files to EXTRA_DIST
83
84         * tests/timeloop-basic.c: Make it build
85         * HACKING: Small updates
86
87 2007-01-18  Matthias Clasen  <mclasen@redhat.com>
88
89         * glib/gdate.c (g_date_set_time): Fix a typo.  (#398203,
90         Owen Taylor)
91
92 2007-01-17  Tor Lillqvist  <tml@novell.com>
93
94         * config.h.win32.in
95         * glib/galloca.h
96         * glib/gbacktrace.h
97         * glib/gwin32.c
98         * glibconfig.h.win32.in
99         * README.win32: More minor tweaks for Digital Mars
100         compiler. (#346808, Serhat Sevki Dincer)
101         
102 2007-01-17  Tor Lillqvist  <tml@novell.com>
103
104         * glib-zip.in: DLLs are always installed in "bin" with current
105         libtool, drop unnecessary logic to check where they are. Include
106         also the COPYING file.
107
108 2007-01-17  Tor Lillqvist  <tml@novell.com>
109
110         * glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
111         on Win32. (#346808, Serhat Sevki Dincer)
112
113 2007-01-16  Matthias Clasen  <mclasen@redhat.com>
114
115         * glib/gthread.h:
116         * glib/gthread.c:
117         * glib/glib.symbols: Revert an accidental ABI break by
118         moving gettime out of the GThreadFunctions struct and making
119         it a separate variable.  (#397139, Joe Marcus Clarke)
120
121         * gthread/*.c: Adapt.
122
123 2007-01-16  Tor Lillqvist  <tml@novell.com>
124
125         * glib/gthread.c (gettime): GetSystemTimeAsFileTime() returns 100s
126         of nanoseconds since 1601, so offset to Unix epoch (1970) and
127         multiply by 100 to get nanoseconds which is what we want.
128
129 2007-01-15  Tor Lillqvist  <tml@novell.com>
130
131         * glib/gmain.h (struct _GPollFD): Fix mistake in my last commit.
132
133 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
134
135         * glib/giochannel.c:
136         * glib/gbookmarkfile.c: Remove redundant NULL-checks.
137         (#369668, Morten Welinder)
138
139 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
140
141         * glib/gthread.c:
142         * gthread/gthread-posix.c: Correct the gettime calculations
143         once more.  (#395203, Chris Wilson)
144
145 2007-01-15  Tor Lillqvist  <tml@novell.com>
146
147         * glib/gmain.h (struct _GPollFD): Prepare for potential Win64
148         build: Use gint64 for the fd field on Win64, as we want to be able
149         to store a HANDLE in it. (#395422) (Other changes will surely also
150         be necessary when building on Win64, at least in giowin32.c.)
151
152 2007-01-15  Tor Lillqvist  <tml@novell.com>
153
154         * glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
155         hardcoding a large switch statement, just ask Windows for the
156         ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
157         languages which can alternatively be written in Latin or
158         Cyrillic. Fixes #395419.
159
160 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
161
162         * glib/gkeyfile.c: Rework the handling of invalid
163         keys/groups again. We are back to being liberal about
164         what we accept, and only reject things that would lead
165         to non-rereadable keyfiles.
166
167         * tests/keyfile-test.c: Adapt tests.
168
169 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
170
171         * glib/gutils.c (g_get_home_dir): Clarify docs.  (#394687,
172         Marc Brockschmidt)
173
174 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
175
176         * glib/gthread.c: Include windows.h and fix
177         include order. (#394258, Kazuki Iwamoto)
178
179 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
180
181         * configure.in: Make G_GNUC_INTERNAL a no-op for
182         gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)
183         
184 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
185
186         * gthread/gthread-posix.c:
187         * glib/gtimer.c:
188         * glib/gthread.c: Fix errors in the recently moved
189         time calculations.  (#395203, Chris Wilson)
190
191 2007-01-10  Matthias Clasen  <mclasen@redhat.com>
192
193         * configure.in: Actually link gthread against librt.
194         (#394641, Marco Pesenti Gritti)
195
196 2007-01-10  Matthias Clasen  <mclasen@redhat.com>
197
198         * glib/gkeyfile.c (g_key_file_is_key_name): Grr, allow '*' in keys,
199         too.  (#394262)
200         
201 2007-01-09  Behdad Esfahbod  <behdad@gnome.org>
202
203         * glib/gutils.h: Use a more optimized g_bit_storage() when gcc is
204         available.  (#371670, Daniel Elstner)
205
206 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
207
208         * gthread/gthread-posix.c (g_thread_impl_init): Don't
209         use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
210         defined.  (#394150)
211
212 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
213
214         Don't link glib against libpthread.  (#393812)
215         
216         * configure.in: Link gthread against librt, not glib itself.
217
218         * glib/gthread.h:
219         * glib/gthread.c: Add a new thread function, gettime.
220
221         * glib/gtimer.c: Use gettime instead of directly working with
222         the various system interfaces.
223
224         * gthread/gthread-impl.c:
225         * gthread/gthread-posix.c:
226         * gthread/gthread-win32.c: Implement gettime.
227         
228 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
229
230         * m4macros/glib-2.0.m4: Use PKG_PROG_PKG_CONFIG.  (#392636,
231         Yevgen Muntyan)
232
233 2007-01-07  Tor Lillqvist  <tml@novell.com>
234
235         * glib/giowin32.c: Handle GIOChannels for file descriptors
236         connected to the console separately. This would typically be the
237         fd 0, 1, or 2 (if not redirected) in a console application. For
238         such fds we don't need a separate thread, as console HANDLEs are
239         waitable objects. (#359202, Michiel de Hoon)
240
241 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
242
243         * tests/bit-test.c (builtin_bit_nth_lsf1), (builtin_bit_nth_lsf2),
244         (builtin_bit_nth_msf): Fix tests on x86_64.
245
246 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
247
248         * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
249         (calculate_max_length), (print_entry), (print_help): Take zerowidth
250         and double-width chars into consideration when computing width of a
251         string.  Also fix another bug in width computation. (#346955)
252
253         * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
254         working correctly.
255
256 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
257
258         * glib/glib.symbols:
259         * glib/gunicode.h:
260         * glib/guniprop.c: Add g_unichar_iszerowidth(). (#347645)
261
262 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
263
264         * glib/gutils.h: Fix bug in g_bit_nth_lsf (#371631) and use
265         __builtin_clzl for g_bit_storage if available (#371670).
266
267         * tests/Makefile.am:
268         * tests/bit-test.c: New test, to test g_bit_* operations against
269         naive and builtin implementations.
270
271 2007-01-02  Behdad Esfahbod  <behdad@gnome.org>
272
273         * configure.in: Avoid more warnings from running libtool --config.
274         (#391364)
275
276 2007-01-03  Michael Natterer  <mitch@imendio.com>
277
278         * removed all .cvsignore files. SVN doesn't need them.
279
280 2007-01-02  Emmanuele Bassi  <ebassi@gnome.org>
281
282         * glib/gbookmarkfile.c (expand_exec_line): Add support for
283         expanding the desktop entry spec variables %U (list of URIs)
284         and %F (list of filenames), so that using the command line
285         from the Exec and TryExec key of a desktop entry file works
286         as intended.
287
288 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
289
290         * configure.in: Avoid warnings from running libtool --config.
291         (#391364, Loïc Minier)
292
293 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
294
295         * glib/gbookmarkfile.c (g_bookmark_file_get_app_info): 
296         Return an error if the uri is bad. (#391370, Maciej Piechotka)
297
298 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
299
300         * glib/glib.symbols: Guard g_slice_debug_tree_statistics
301         by G_ENABLE_DEBUG.  (#390940, Kazuki Iwamoto)
302
303 2007-01-02  Michael Natterer  <mitch@imendio.com>
304
305         * configure.in
306         * Makefile.am: remove references to build/ until a proper decision
307         has been made what to do with it.
308
309 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
310
311         * glib-gettextize.in: Silence autoconf warnings about
312         datarootdir.  (#391367, Loïc Minier)
313
314 2006-12-31  Matthias Clasen  <mclasen@redhat.com>
315
316         * glib/gslice.c: Fix some C99isms.  (#390913, Kazuki Iwamoto)
317
318 Fri Dec 29 13:28:07 2006  Tim Janik  <timj@imendio.com>
319
320         * glib/gslice.c: turned detection of too late g_thread_init() calls
321         into a warning. this is a temporary work-around for some head-room
322         to fix affected programs, memory corruption still occours regardless.
323
324 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
325
326         * tests/gobject/Makefile.am:
327         * tests/gobject/dynamictype.c: New test for dynamic type 
328         registration macros. 
329
330 Thu Dec 28 21:14:45 2006  Tim Janik  <timj@imendio.com>
331
332         * glib/gslice.c: removed pthread-dependant debugging bits, the code
333         was already converted to GMutex. this obsoletes Tor's recent fixups.
334
335 2006-12-28  Tor Lillqvist  <tml@novell.com>
336
337         * glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME)
338         * glib/gutils.c (get_windows_directory_root): : Use only the wide
339         character API here, too.
340
341         * glib/gslice.c: Make it compile on Win32 without pthreads: Use a
342         Win32 critical section instead.
343
344         * glib/gmessages.c (g_logv): On Win32, if we get a fatal error
345         message while being debugged we break into the debugger with
346         G_BREAKPOINT(). Don't call abort() if the user is foolhardy enough
347         to continue after the breakpoint. The user presumably knows what
348         he is doing and deserves what he gets. (#376645, Andreas Köhler)
349
350 Thu Dec 28 12:50:31 2006  Tim Janik  <timj@imendio.com>
351
352         * glib/gslice.h, glib/gslice.c: implemented static debugging
353         hash-tree to validate slice adresses and sizes with G_SLICE=debug-blocks.
354         use abort() to exit in mem_error() to allow catching of these in gdb.
355         abort programs with a descriptive error message if g_thread_init() is
356         called after GSlice was in use. previously this just silently corrupted
357         the magazines.
358
359         * glib/ghash.c (struct _GHashNode): reordered fields to keep 8-byte 
360         pointer alignment on 64bit systems and request smaller slice sizes
361         on 32bit systems.
362
363         * tests/slice-test.c: support '~' option flag to introduce slice 
364         allocation/release corruption with a significant probability. this
365         allowes testing of G_SLICE=debug-blocks.
366
367 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
368
369         * glib/gconvert.[hc]:
370         * glib/gfileutils.c:
371         * glib/giochannel.c:
372         * glib/goption.c:
373         * glib/gspawn.c:
374         * glib/gunicollate.c:
375         * glib/gutils.c:
376         * tests/timeloop-basic.c: 
377         Consistently use gsize rather than size_t.  (#333310,
378         Morten Welinder)
379
380 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
381
382         * configure.in: Use AC_CACHE_CHECK for the nl_langinfo
383         check.  (#304517, Lőrinczy Zsigmond)
384
385 2006-12-27  Tor Lillqvist  <tml@novell.com>
386
387         * glib/gwin32.h
388         * glib/gwin32.c (get_package_directory_from_module)
389         (g_win32_get_package_installation_directory)
390         (g_win32_get_package_installation_subdirectory): Add const to
391         gchar* arguments. (#384523, Yevgen Muntyan)
392         
393 2006-12-27  Ryan Lortie  <desrt@desrt.ca>
394
395         * glib/ghash.c: cache the value of the hash function
396         in the GHashNode.  this speeds up resizing the hash
397         table and it also allows a slight optimisation on
398         lookups.  (#388332)
399
400 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
401
402         * glib/gunicollate.c (g_utf8_collate_key): Don't modify
403         the current locale.  (#389300)
404
405 2006-12-26  Matthias Clasen  <mclasen@redhat.com>
406
407         * glib/gutf8.c: Add hints for locale-dependent interfaces.
408         * glib/gconvert.c: Add hints for locale-dependent interfaces.
409
410         * glib/gconvert.c (g_get_filename_charsets): Improve
411         formatting of docs. 
412
413 2006-12-26  Behdad Esfahbod  <behdad@gnome.org>
414
415         * configure.in: Use libtool to determine shared library suffix.
416         (#357245)
417
418 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
419
420         * tests/run-collate-tests.sh:
421         * tests/unicode-collate.c: Silently skip tests if
422         we can't set LC_COLLATE to en_US.  (#336438)
423
424 2006-12-19  Matthias Clasen  <mclasen@redhat.com>
425
426         * glib/gkeyfile.c (g_key_file_is_key_name): Accept
427         '/', '+' and '.' in key names, since gnome-vfs uses
428         mime types as keys in some cache.
429
430         * tests/keyfile-test.c: Tests for the above.
431
432 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
433
434         * configure.in: Fix the broken poll test.  (#387260,
435         Christian Persch)
436
437         * glib/gmain.c (child_watch_helper_thread): Readd a
438         return which was removed as dead code a while ago.
439         icc may consider it dead, but gcc doesn't like non-void
440         functions without a return...  (#354707)
441
442         * tests/Makefile.am: Try a different fix for bug 346373.
443
444 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
445
446         Fix bug 161288:
447
448         * configure.in: Check for wcslen.
449
450         * glib/gnulib/vasnprintf.c: Handle wcslen missing.
451
452 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
453
454         * glib/gkeyfile.c: Accept '@' in locale names.
455
456         * glib/gkeyfile.c: Tighten up the check for allowed
457         key and group names.  (#343191, Tommi Komulainen)
458
459         * tests/keyfile-test.c: Test handling of key and group names.
460
461         * tests/Makefile.am: Don't use $RANDOM if the shell doesn't
462         have it.  (#346373, Thomas Klausner)
463
464 2006-12-17  Behdad Esfahbod  <behdad@gnome.org>
465
466         * glib/gstring.c: Improve docs about string functions taking a
467         length.  (#378727)
468
469 2006-12-17  Matthias Clasen  <mclasen@redhat.com>
470
471         * glib/gconvert.c:
472         * glib/gutf8.c (_g_charset_get_aliases): Put the G_GNUC_INTERNAL
473         where gcc doesn't complain about it.
474
475         * glib/ghash.c: Make ref_count an int to avoid compiler
476         warnings.
477
478         * configure.in: Use AC_LANG_SOURCE for the clock test.
479         
480         * glib/gthreadpool.h:
481         * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
482         as parameter name.  (#379207, Christian Biere)
483
484         * glib/gspawn.c: Refer to g_child_watch_add() in addition
485         to waitpid().
486
487         * glib/gstrfuncs.c (g_strndup, g_strnfill): Move docs
488         inline, and improve wording.  (#372598, Behdad Esfahbod)
489
490         * glib/gspawn.c: Add some pointers to the gdk_spawn_
491         variants.  (#338134, Federico Mena Quintero)
492
493         * configure.in: Make montonic clock test work again. Does
494         AC_COMPILE_IFELSE not get confdefs ? Also, move the clock
495         tests below the thread checks to fix #364663.
496
497         * tests/run-markup-tests.sh: Don't use diff -u  (#380801,
498         Marek Rouchal)
499
500         * glib/gspawn.c: Fix the recent fdwalk()-related changes
501         to not break mapping-test.  (#286838, Marco Barisione)
502
503         * glib/gstring.c (g_string_chunk_new): Don't shadow size.
504         (#386760, Kazuki IWAMOTO)
505
506 2006-12-16  Matthias Clasen  <mclasen@redhat.com>
507
508         * glib/gstring.c: Move more documentation inline.
509
510         * configure.in: Use AC_COMPILE_IFELSE for the monotonic
511         clock test.  (#362918, Han-Wen Nienhuys, Jeremy Lainé)
512
513         * glib/gstring.c: Move documentation inline. 
514
515 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
516
517         * glib/giochannel.h: Make ref_count a gint to avoid
518         compiler warnings.  (#321977, Andrew Paprocki)
519
520         * configure.in: On Solaris, set CFLAGS and LDFLAGS that
521         work both with Sun cc and gcc.  (#315061, Lazlo Peter)
522
523         * glib/gspawn.c: Undefine READ_OK to fix the build on
524         old versions of Darwin.  (#327800)
525
526         * glib/glib.symbols:
527         * glib/gstring.[hc] (g_string_chunk_clear): Add a function
528         for clearing a GStringChunk. (#364608, Matt Barnes)
529
530         * glib/guniprop.c (interval_compare): Avoid a compiler
531         warning.
532
533         * glib/gspawn.c (do_exec): Call set_cloexec() with
534         the right parameters.  (#386252, Guillaume Desmottes)
535
536 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
537
538         Fix #357585, Padraig O'Briain.
539         
540         * configure.in: Check for fdwalk.
541         
542         * glib/gspawn.c (do_exec): Use fdwalk() to close all
543         file descriptors. 
544
545         * glib/gspawn.c (fdwalk): Fallback implementation of
546         fdwalk.
547
548 2006-12-14  Matthias Clasen  <mclasen@redhat.com>
549
550         * glib/gconvert.c (open_converter): Don't use alloca
551         and avoid allocating memory for small keys that are 
552         already cached.  (#172406, Morten Welinder)
553
554         * glib/gmain.c (g_child_watch_add_full): Improve the docs.
555         (#345569, Tim-Philipp Müller)
556
557         * glib/gkeyfile.c (g_key_file_add_group): If the group
558         is already there, make it current.  (#385910, Joe Halliwell)
559
560         * tests/keyfile-test.c: Add a test for duplicate groups/keys.
561
562 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
563
564         * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
565         GLIB_WITH_NLS.  (#385132, Laszlo Peter)
566
567 2006-12-12  Matthias Clasen  <mclasen@redhat.com>
568
569         * configure.in: Add a check for broken poll on Mac OS X.
570
571         * glib/gmain.c: Use poll emulation on OS X.  (#302672, Toby Peterson,
572         patch by Dave Vasilevsky)
573
574 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
575
576         * glib/gatomic.c: Don't use local numeric labels in
577         inline assembler on AIX.  (#316434, Hans Rosenfeld)
578
579         * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
580         not char *.  (#138153, Nikolai Weibull)
581
582 Wed Nov 22 16:09:13 2006  Tim Janik  <timj@gtk.org>
583
584         * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
585         Hasselmann in bug #335341, fixes bug #335853.
586
587 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
588
589         * m4macros/glib-gettext.m4: Apply a patch from James 
590         Henstridge for compatibility with automake 2.60 (#343825)
591
592 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
593
594         * sanity_check: Replace bash-specific == with sh-understood =.
595         Fixes bug #373864.
596
597 2006-11-05  Hans Breuer  <hans@breuer.org>
598
599         * glib/makefile.msc.in : glib/ version not the gobject/ 
600         one I accidentially commited. Fixes bug #371074.
601         
602 2006-11-05  Tor Lillqvist  <tml@novell.com>
603
604         * makefile.mingw
605         * gmodule/makefile.mingw.in
606         * glib/makefile.mingw.in
607         * gobject/makefile.mingw.in
608         * gthread/makefile.mingw.in
609         * tests/makefile.mingw.in: Remove from CVS. Haven't been
610         maintained or distributed for long.
611
612 2006-10-26  Pascal Terjan  <pterjan@linuxfr.org>
613
614         * glib/libcharset/localcharset.c: Fix small leak on failed
615         realloc in _g_locale_get_charset_aliases (#338582)
616
617 2006-10-16  Behdad Esfahbod  <behdad@gnome.org>
618
619         * glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS).  (#362543,
620         Peter Kjellerstedt)
621
622 2006-10-15  Sebastian Wilhelmi  <seppi@seppi.de>
623
624         * tests/Makefile.am: Compile errorcheck-mutex-test with thread
625         libraries explicitly. (#74748, Javier Villavicencio)
626
627 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
628
629         Add a way to obtain Unicode script information.  (#348348,
630         Marco Barisione)
631
632         * glib/glib.symbols:
633         * glib/gunicode.h: Add GUnicodeScript enumeration and
634         g_unichar_get_script. 
635         
636         * glib/guniprop.c: Implement g_unichar_get_script.
637
638         * glib/gscripttable.h: Generated private header containing
639         script tables.
640
641         * glib/gen-script-table.pl: Script to generate gscripttable.h.
642
643         * glib/Makefile.am: Update
644
645 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
646
647         * tests/run-markup-tests.sh: Small portability fix.  (#347944,
648         Dan McMahill)
649
650 2006-10-07  Tor Lillqvist  <tml@novell.com>
651
652         * glib/gwin32.c (get_package_directory_from_module)
653         (g_win32_get_package_installation_directory): g_strdup the keys
654         that we are passed before adding them to the hash tables, to guard
655         against the caller freeing them. (#355955, Andreas Köhler)
656
657 2006-10-06  Matthias Clasen  <mclasen@redhat.com> 
658
659         * glib/gtimer.c: Fix a typo.  (#359190)
660
661 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
662
663         * glib/Makefile.am:
664         * gobject/Makefile.am:
665         Include pltcheck.sh in EXTRA_DIST, and remove redefinition of TESTS.
666         (#358966)
667
668 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
669
670         * glib/gtimer.c (g_usleep): Use nsleep to implement
671         g_usleep on AIX.  (#321974, Andrew Paprocki)
672
673         * configure.in: Check for nsleep
674
675         * glib/gmain.c: Fix typos in doc comments.  
676         (#358421, Tom Tromey)
677
678 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
679
680         * glib/pltcheck.sh: A script to check PLT entries.
681         * glib/Makefile.am (TESTS): Run pltcheck.sh
682
683         * glib/*: Fix includes to correct some issues with
684         PLT entries.  (#354522, Behdad Esfahbod)
685
686 2006-09-17  Hans Breuer  <hans@breuer.org>
687
688         * glib/makefile.msc.in gobject/makefile.msc.in : better filtering
689         of G_GNUC_* stuff when generating .def files. Now also works with
690         newer (less tolerant) linkers, e.g. from vc2500e
691
692 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
693
694         * glib/gbacktrace.c: Assume string.h is available. 
695         (#354523, Behdad Esfahbod)
696
697         * configure.in: Bump version to 2.13.0
698
699         * glib/glib.symbols:
700         * glib/gmain.[hc]: Add functions to create approximate
701         timeouts.  (#353942, Arjan van de Ven)
702
703         * glib/gstdio.c (g_rename): Initialize save_errno.
704         (#355206, Mike Edenfield)
705
706 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
707
708         * glib/gerror.c: Allocate GErrors using the slice allocator.
709         (#354054, Matt Barnes)
710
711 2006-09-02  Matthias Clasen  <mclasen@redhat.com>
712
713         * glib/gtimer.c: Forgotten HAVE_CLOCK_GETTIME.
714
715 2006-09-02  Tor Lillqvist  <tml@novell.com>
716
717         * glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed
718         declarations and code) in Win32 ifdef branch. (#353903, Mike
719         Edenfield)
720
721 2006-09-01  Abel Cheung  <abel@oaka.org>
722
723         * configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
724
725 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
726
727         * configure.in: Check for CLOCK_MONOTONIC.
728
729         * glib/gtimer.c: Only use clock_gettime if we
730         have a monotonic clock.
731
732 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
733
734         * configure.in: Add missing includes to a few test
735         programs.  (#353580, Chris Wilson)
736
737 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
738
739         * glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
740         va_end on caller-provided va_args.  (#353584, Chris Wilson)
741
742 2006-08-29  Tor Lillqvist  <tml@novell.com>
743
744         Remove support for Windows 9x/ME, as will be done also in Pango
745         and GTK+. GTK+ hasn't worked on Win9x since 2.6 or 2.8 anyway, so
746         it's pretty pointless to keep the Win9x code in here either. If
747         somebody is interested, the code can always be found in older GLib
748         versions, and in CVS.
749
750         * glib/gdir.c
751         * glib/gfileutils.c
752         * glib/gspawn-win32-helper.c
753         * glib/gspawn-win32.c
754         * glib/gstdio.c
755         * glib/gutils.c
756         * glib/gwin32.c
757         * glib/gwin32.h: Remove the G_WIN32_IS_NT_BASED() and
758         G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
759         branches, and any variables or static functions used only by the
760         Win9x branches.
761
762         * glib/gwin32.c (g_win32_windows_version_init): Call g_error() if
763         run on Win9x.
764
765 2006-08-27  Matthias Clasen  <mclasen@redhat.com>
766
767         * configure.in: Fix pthread compiler flag detection.
768
769         * glib/gtimer.c: Use Posix monotonic clocks instead of 
770         gettimeofday when available.  (#336114, William Jon McCann)
771
772 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
773
774         * glib/gutils.h: 
775         * glib/gscanner.c: Fix some typos.  (#351741, Kjartan Maraas)
776
777 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
778
779         * configure.in: Fix the pthread compiler flag detection.
780
781         * glib/gunicode.h: 
782         * glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8
783         from gconvert.c, move it to gutf8.c, and export it privately.
784
785         * glib/gconvert.c (g_filename_display_name): Adjust callers.
786
787         * glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of
788         places to ensure error messages are valid UTF-8.  (#351853,
789         Simon Budig)
790
791 2006-08-22  Matthias Clasen <mclasen@redhat.com>
792
793         * Branch for 2.12
794