Revert an accidental commit
[platform/upstream/glib.git] / ChangeLog.pre-2-10
1 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
2
3         * configure.in: Revert an accidential commit
4
5 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
6
7         * glib/gutf8.c: Documentation updates.  (#323291, Morten Welinder)
8
9         * tests/Makefile.am (TESTS_ENVIRONMENT): 
10         * tests/gobject/Makefile.am (TESTS_ENVIRONMENT): Set
11         MALLOC_CHECK_ and MALLOC_PERTURB_
12
13         * tests/run-collate-tests.sh: Run the collation tests explicitly 
14         in en_US locale. (#320463)
15
16         * glib/gmem.h: Really deprecate GMemChunk.
17
18         * glib/gdate.c: 
19         * glib/gutils.c: 
20         * glib/gtree.c: 
21         * glib/gstring.c: 
22         * glib/giochannel.c: 
23         * glib/gstrfuncs.c: Add versioned deprecation docs. 
24
25 2005-12-05  Martyn Russell  <martyn@imendio.com>
26
27         * docs/reference/glib/glib-sections.txt:
28         * glib/gasyncqueue.[ch]:
29         - Added support for sorting async queues by with _push_sorted(),
30         _push_sorted_unlocked(), _sort() and _sort_unlocked() (#323047).
31         
32         * tests/Makefile.am:
33         * tests/asyncqueue-test.c:
34         - Added test case for gasyncqueue.c
35
36 Mon Dec  5 15:53:20 2005  Tim Janik  <timj@imendio.com>
37
38         * glib/gslice.c: implement chain walking for arbitrary ->next pointer
39         offsets in g_slice_free_chain_with_offset() based on a patch by behdad
40         in bug 323178. moved time consuming logic from g_slice_free() out of
41         the inner loop, so g_slice_free_chain_with_offset() provides a real
42         performance benefit over g_slice_free1() now.
43         
44         * glib/gslice.h: renamed g_slice_free_chain() to
45         g_slice_free_chain_with_offset(). implemented g_slice_free_chain() as
46         a type-safe macro as suggested in bug 323178.
47         simplified the macro implementation of g_slice_free() and implemented
48         it in a type safe manner for all compliers as suggested by Morten
49         Welinder <mortenw@gnome.org>.
50
51         * glib/gmain.c:
52         * glib/glist.c:
53         * glib/gslist.c:
54         * glib/glib.symbols: s/g_slice_free_chain/g_slice_free_chain_with_offset/
55
56 2005-12-05  Matthias Clasen  <mclasen@redhat.com>
57
58         * glib/gasyncqueue.c: Add some docs.
59
60         * tests/libmoduletestplugin_a.c: Fix compiler warnings.
61
62         * glib/gatomic.c: In the ia64 implementation, use
63         __sync builtin without _si or _di suffix.  (#321229,
64         Stanislav Brabec, patch by Andreas Schwab)
65
66 2005-12-04  Behdad Esfahbod  <behdad@gnome.org>
67
68         * glib/gslice.h: Remove comma at the end of enum.
69
70 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
71
72         Handle multiple user names with the same UID better.
73         (#319535, Laszlo Peter)
74         
75         * glib/gutils.c (g_get_any_init_do): When determining user
76         data, first look up $LOGNAME. If the UID doesn't match
77         getuid(), fall back to the current behaviour of looking
78         up the user data based on getuid().
79
80 2005-12-04  Matthias Clasen  <mclasen@redhat.com>
81
82         * glib/gmacros.h (G_GNUC_WARN_UNUSED_RESULT): Add a macro
83         to make gcc warn if a function result is ignored.  (#145466,
84         Arjan van de Ven, Alex Larsson)
85
86         * glib/gmem.h: Add the new attribute to g_realloc and 
87         g_try_realloc.
88
89 2005-12-03  Matthias Clasen  <mclasen@redhat.com>
90
91         * glib/glib.symbols: 
92         * glib/gcache.h: Deprecate g_cache_value_foreach. (#322956,
93         Nicolas Caniart)
94
95         * glib/gmappedfile.c: Make mapping of empty files
96         work.  (#321530)
97         
98         * glib/gfileutils.c: Don't fork a new process just to 
99         fix the permissions of the created temp file.  (#321318,
100         Alexis S. L. Carvalho)
101
102 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
103
104         * README.in: Add a note about Solaris threads.
105
106         * glib/gspawn.c:
107         * configure.in: Remove support for Solaris threads. 
108         (#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
109
110 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
111
112         * configure.in: Define G_GUINT64_CONSTANT in analogy to
113         G_GINT64_CONSTANT.  (#322568, Andrew Paprocki)
114
115 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
116
117         * glib/gslice.c: Win32 portability fixes and C99ism removal,
118         pointed out by Kazuki Iwamoto.  (#323052)
119         
120 2005-12-02  Matthias Clasen  <mclasen@redhat.com>
121
122         * glib/gatomic.c (g_atomic_int_add): Add a missing volatile for
123         the IA64 implementation.
124
125 Fri Dec  2 16:18:09 2005  Tim Janik  <timj@imendio.com>
126
127         * glib/gslice.c: some naming and type size fixups.
128
129 Fri Dec  2 13:08:58 2005  Tim Janik  <timj@gtk.org>
130
131         * glib/gslice.h (g_slice_free): reworked GCC-specific type-safe macro
132         variant into something less verbose, but digestible for gcc-3.4.
133
134 Fri Dec  2 10:55:07 2005  Tim Janik  <timj@imendio.com>
135
136         * tests/slice-test.c: extended to perform the benchmarking on the old
137         memchunk code if 'O' is selected.
138
139         * tests/memchunks.c: new file which contains the old GLib mem chunks
140         implementation with prefix old_mem_chunk_.
141
142         * tests/Makefile.am: added memchunks.c
143
144 Fri Dec  2 00:16:59 2005  Tim Janik  <timj@imendio.com>
145
146         * glib/gslice.c: improved gettimeofday() timer resolution by maintaining
147         acceptable load distribution of the syscall.
148         (allocator_get_magazine_threshold): reduce minimum/single-thread magazine
149         sizes to approximately page_size/2.5 to avoid excessive startup allocations.
150
151 2005-12-01  Matthias Clasen  <mclasen@redhat.com>
152
153         * tests/gobject/ifacecheck.c (test_iface_base_init): Don't
154         double-free base interface members.
155
156         * tests/Makefile.am: Remove duplicate variable.
157
158 Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>
159
160         * glib/gslice.[hc]: new slice allocator implementation.
161
162         * tests/slice-test.c: added random slice allocation test.
163
164         * glib/gthread.[hc]: removed newly added private thread mem API.
165
166         * glib/gthreadinit.h:
167         * glib/gmessages.c:
168         * glib/gthread.c:
169         * glib/gmem.c: divided glib threading initialisation into three phases,
170         initialisation where private keys and messaging are not available (only
171         needed by gmem.c), initialisation without messaging but private keys
172         available (gslice.c, gmessage.c), and full fledged initialisers that
173         server the rest of glib. initialisation functions got renamed to reflect
174         the limitations of their corresponding phases.
175
176         * glib/gmem.c: removed memchunk code, defer allocations to 
177         g_slice_* instead.
178
179         * glib/gmem.[hc]: removed g_slice_* skeletons.
180
181         * glib/glib.symbols: added g_slice_* symbols.
182
183         * configure.in: check for availability of posix_memalign(3), memalign(3)
184         and valloc(3). 
185
186         * glib/Makefile.am: added gslice.[hc].
187
188 2005-12-01  Tor Lillqvist  <tml@novell.com>
189
190         * glib/gstdio.c (g_stat): In the Win32 implementation, strip
191         trailing slash(es) for non-root folders. stat() fails if non-root
192         folders are specified with trailing slashes. It's too much hassle
193         to demand that callers strip such slashes themselves, especially
194         as it is easy to get it wrong and strip the slash of a root
195         folder.
196         (g_rename): On NT-based Windows, use MoveFileEx() with
197         MOVEFILE_REPLACE_EXISTING to better match Unix behaviour.
198
199 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
200
201         Fix G_STMT_START / G_STMT_END on Solaris.  (#321972,
202         Andrew Paprocki)
203         
204         * configure.in: Check whether do { } while (0) works.
205
206         * glib/gmacros.h: Use do { } while (0) for G_STMT_START / 
207         G_STMT_END if it works.
208         
209 2005-11-28  Matthias Clasen  <mclasen@redhat.com>
210
211         * glib/gthread.c (g_static_rw_lock_wait, g_static_rw_lock_signal): 
212         * glib/gnode.c (g_node_depth_traverse_level): 
213         * glib/gmem.c (g_allocator_new): 
214         * glib/ghash.c (g_hash_table_unref, g_hash_table_destroy) 
215         (g_hash_table_foreach_remove_or_steal): Silence compiler
216         warnings.
217
218 2005-11-27  Matthias Clasen  <mclasen@redhat.com>
219
220         * glib/gunicollate.c (g_utf8_collate_key_for_filename): 
221         Don't read beyond len.  (#322520, Christian Persch)
222
223 Wed Nov 23 17:34:01 2005  Tim Janik  <timj@imendio.com>
224
225         * glib/gdataset.c: access datalist flags via atomic pointer access
226         functions, instead of acquiring the dataset lock. this is faster and
227         also matches the atomic pointer readouts in gdatalistprivate.h and
228         direct pointer modifications required by gobject.c.
229
230 Wed Nov 23 13:35:31 2005  Tim Janik  <timj@gtk.org>
231
232         * glib/gdataset.c: streamlined initialization code somewhat,
233         removed GData node cache.
234
235 2005-11-22  Matthias Clasen  <mclasen@redhat.com>
236
237         * glib/ghash.c (g_hash_table_ref): 
238         (g_hash_table_unref): Mark these as new API.
239
240         Avoid double locking in g_intern_string (#322133,
241         Benedikt Meurer)
242
243         * glib/gdataset.c (g_quark_from_string_internal): New 
244         internal function which factors out common parts of 
245         g_quark_from[_static]_string.
246         (g_quark_from_string, g_quark_from_static_string):
247         Use g_quark_from_string_internal.
248         (g_intern_string, g_intern_static_string): Use
249         g_quark_from_string_internal, and only take the
250         lock once.
251         (g_quark_new): Don't store the strings shifted by -1
252         in the g_quarks array.
253         (g_quark_to_string): Adapt to the previous change.
254
255 Tue Nov 22 14:04:26 2005  Tim Janik  <timj@imendio.com>
256
257         * glib/ghash.h: 
258         * glib/ghash.c: 
259         g_hash_table_new_full(): create hash tables with a ref count of 1.
260         g_hash_table_ref(): atomically ref_count+=1
261         g_hash_table_unref(): atomically ref_count-=1, destroys hash table
262         when refcount reaches 0.
263         g_hash_table_destroy(): just destroy keys and values, unref by 1.
264         g_hash_table_insert(): 
265         g_hash_table_replace(): assert ref_count>0.
266
267         * glib/gatomic.h: 
268         * glib/gatomic.c: added 'volatile' qualifier to all atomic pointer and
269         integer pointers.
270
271 2005-11-20  Behdad Esfahbod  <behdad@gnome.org>
272
273         * glib/guniprop.c (g_unichar_get_mirror_char): Remove unused
274         variables. (#321984, Andrew Paprocki)
275
276 2005-11-18  Matthias Clasen  <mclasen@redhat.com>
277
278         * configure.in: Bump version
279
280 2005-11-17  Matthias Clasen  <mclasen@redhat.com>
281
282         * === Released 2.9.0 ===
283
284         * glib/glib.symbols: Updates
285
286         * glib/gutf8.c (g_utf8_offset_to_pointer): Add some performance
287         hints to the docs. (Paolo Borelli)
288         
289         * NEWS: Updates
290
291         * glib/gthread.c (g_thread_foreach): Mark as new api.
292
293         * README.in: Updates.
294
295         * glib/glib.symbols: 
296         * glib/gdate.h: 
297         * glib/gdate.c (g_date_set_time_t): 
298         (g_date_set_time_val): Add functions to set a date from
299         a time_t and from a GTimeVal.
300         (g_date_set_time): Deprecate.  (#314067, Roger Leigh)
301         
302         * tests/Makefile.am:
303         * tests/utf8-pointer.c: Unit tests for g_utf8_pointer_to_offset
304         and g_utf8_offset_to_pointer.
305
306         * glib/gutf8.c (g_utf8_pointer_to_offset) 
307         (g_utf8_offset_to_pointer): Handle negative offsets, and use
308         "stutter stepping" for going backwards. (#320638, Larry
309         Ewing)
310
311         * glib/gbacktrace.c:
312         * glib/gdate.c:
313         * glib/gthread.c: const correctness fixes, found
314         by Arjan van de Ven and gcc.
315         
316 2005-11-16  Behdad Esfahbod  <behdad@gnome.org>
317
318         * docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
319         @G_UNICODE_BREAK_UNKNOWN that should be #G_UNICODE_BREAK_UNKNOWN.
320
321 2005-11-09  Behdad Esfahbod  <behdad@gnome.org>
322
323         * glib/guniprop.c: Use bit hacks instead when checking a general
324         category value against multiple values.
325
326         * glib/gutf8.c: Change ISO10646 to Unicode in docs.
327
328 2005-11-10  Simos Xenitellis  <simos@gnome.org>
329
330         * configure.in: Added tt (Tatar) to ALL_LINGUAS.
331
332 2005-11-05  Tor Lillqvist  <tml@novell.com>
333
334         * glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
335         (#320688) Instead set error and return failure.
336
337 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
338
339         * glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref
340         while holding the context lock.  (#320886, Andy Wingo)
341
342 2005-11-07  Billy Biggs <vektor@dumbterm.net>
343
344         * tests/refcount/Makefile.am: Add a missing reference to libglib
345         in the LDADD for this test.
346
347 2005-11-07  Matthias Clasen  <mclasen@redhat.com>
348
349         * glib/gmem.c (g_allocator_new): We need to set n_preallocs to a
350         nonzero value, otherwise GTK+ 2.8 breaks when compiled against
351         GLib 2.9.  (#320755, Luca Ferretti)
352
353 2005-11-04  Matthias Clasen  <mclasen@redhat.com>
354
355         * glib/Makefile.am: Apply a patch from Behdad Esfahbod to 
356         use a faster lookup table for g_unichar_get_mirror_char().
357         * glib/gmirroringtable.h: The new table.
358         * glib/gunichartables.h: Remove bidi_mirroring_table.
359         * glib/gen-unicode-tables.pl: Don't generate the mirroring
360         table.
361         * glib/glib-mirroring-tab/*: Sources for the program
362         which generated gmirroringtable.h.
363
364         * glib/glist.c: Avoid some code duplication.
365
366         * glib/gscanner.h: Include gdataset.h.  (#320322)
367
368         * glib/gdebug.h: add new GDebugFlag for fatal_criticals
369         * glib/gmessages.c: (_g_debug_init): handle G_DEBUG=fatal_criticals,
370         to help find critical warnings in applications.  (#320017,
371         Vincent Untz)
372
373 2005-11-02  Tor Lillqvist  <tml@novell.com>
374
375         * glib/glib.symbols: Remove large amount of trailing whitespace
376         from one line. Remove #ifdef G_UNDEFINED from around
377         g_hash_table_new and g_hash_table_new_full symbols, what was the
378         purpose of that? Add the g_slice functions.
379
380 Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
381
382         * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
383         added g_slice_*() API to allocate and cache small bits of memory.
384         an actuall allocator implementation for g_slice_*() is still pending.
385
386         * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
387         changed GRealThread list to use in-structure *next; fields instead
388         of GSList, in order for thread iteration to not depenend on g_slice_*()
389         indirectly.
390         _g_thread_mem_private_get():
391         _g_thread_mem_private_set(): added accessors for private memory,
392         needed because the ordinary GPrivate implementation relies on GArray
393         and GSList and therefore indirectly on working g_slice_*() allocations.
394
395         * glib/gthread.[hc]:
396         g_thread_foreach(): new public API function to loop over all existing threads.
397
398         * glib/gdataset.c:
399         * glib/gstring.c:
400         * glib/gcache.c:
401         * glib/garray.c: 
402         * glib/gqueue.c:
403         * glib/gslist.c:
404         * glib/glist.c:
405         * glib/ghash.c:
406         * glib/gtree.c:
407         * glib/ghook.c:
408         * glib/gmain.c:
409         * glib/gnode.c:
410         removed GAllocator and free list usages and accompanying locks.
411         use g_slice_*() API to allocate and cache small bits of memory.
412
413         * glib/ghook.h: removed GMemChunk field from public API.
414
415         * glib/gslist.h:
416         * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
417
418         * glib/gnode.h: deprecate allocator API.
419
420         * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
421         be used for poll rec lists.
422
423         * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
424         g_relation_destroy(): free all tuples from the all_tuples hash table,
425         this effectively maintains the life time track keeping of tuples.
426         g_relation_delete_tuple(): free tuples which are removed from the
427         all_tuples hash table. this fixes a temporary leak that was present
428         in the memchunk code until the destruction of the relation.
429
430 2005-10-29  Matthias Clasen  <mclasen@redhat.com>
431
432         * tests/convert-test.c: Add some tests for conversions between
433         UTF-8, UCS-4 and UTF-16.
434
435         * glib/gutf8.c (g_utf8_to_ucs4, g_utf8_to_utf16): Fix handling
436         of len == -1, noticed by Morten Welinder.
437
438 2005-10-27  Erdal Ronahi  <erdal.ronahi@gmail.com>
439
440         * configure.in: Added ku (Kurdish) to ALL_LINGUAS
441
442 2005-10-26  Matthias Clasen  <mclasen@redhat.com>
443
444         * glib/gutf8.c (g_ucs4_to_utf8): Don't set items_read twice
445         in the error case, and add some documentation.  (#319806, Morten
446         Welinder)
447
448 2005-10-19  Manish Singh  <yosh@gimp.org>
449
450         * configure.in: Use AC_CHECK_FUNCS for _NSGetEnviron, to get the
451         config.h symbol automatically. Fixes bug #313731.
452
453 2005-10-19  Tor Lillqvist  <tml@novell.com>
454
455         * glib/gwin32.c (g_win32_get_package_installation_directory):
456         Return a g_strdup()ed copy of the value stored in the hash table,
457         so that it can be g_free()d without leaving a dangling pointer in
458         the hash table. (#319232)
459
460 2005-10-06  Matthias Clasen  <mclasen@redhat.com>
461
462         * glib/gunicollate.c (g_utf8_collate_key_for_filename): Handle
463         all-zero sequences correctly.  (#317930, Sebastien Bacher)
464
465 2005-10-05  Matthias Clasen  <mclasen@redhat.com>
466
467         * glib/gmarkup.c (g_markup_escape_text): Doc addition
468
469         * Makefile.am: Add Collation tests.
470
471         * tests/collate/*: Inputs and expected outputs for collation tests.
472
473         * tests/run-collate-tests.sh: Script to run collation tests.
474
475         * tests/unicode-collate.c (main): Rework slightly to make
476         it usable in unit tests. Also test g_utf8_collate_key_for_filename().
477
478 2005-10-01  Behdad Esfahbod  <behdad@gnome.org>
479
480         * docs/reference/glib/tmpl/unicode.sgml:
481         * glib/gen-unicode-tables.pl:
482         * glib/gunibreak.h:
483         * glib/gunichartables.h:
484         * glib/gunicode.h:
485         * tests/casefold.txt:
486         * tests/casemap.txt: Updated to Unicode 4.1.  There are five new
487         GUnicodeBreakType types.  That may break some applications, like
488         Pango <= 1.10.
489
490 2005-09-26  Matthias Clasen  <mclasen@redhat.com>
491
492         * glib/gstrfuncs.c (g_ascii_strtoull): Add details to the 
493         docs.  (#314393, Matthew F. Barnes)
494
495         * glib/glib.symbols:
496         * glib/gprintf.h: Remove g_snprintf() and g_vsnprintf(), since
497         they are already declared in glib.h. This doesn't break documented
498         use of gprintf.h, but should probably be pointed out in the 
499         release notes for 2.10. (#314232, Behdad Esfahbod)
500
501 Tue Sep 20 13:16:04 2005  Tim Janik  <timj@imendio.com>
502
503         * glib/gpattern.c (g_pattern_ph_match): applied significant recursion
504         complexity optimization, based on a patch from Matthias Clasen.
505
506         * tests/patterntest.c: more tests, mostly from matthias.
507
508 2005-09-20  Matthias Clasen  <mclasen@redhat.com>
509
510         * glib/gqueue.c (g_queue_insert_sorted): Correct the docs.
511         (#316703, Mark Drago)
512
513 Mon Sep 19 17:23:23 2005  Tim Janik  <timj@imendio.com>
514
515         * glib/gpattern.c: applied a patch from matthias which checks on the
516         upper bound of GPatternSpec length to optimize matches.
517         cosmetic fixups.
518
519         * tests/patterntest.c: added more match cases.
520
521 2005-09-16  Tor Lillqvist  <tml@novell.com>
522
523         * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
524         warning to doc comment that these functions should not be used on
525         encodings like CP932.
526
527 2005-09-14  Matthias Clasen  <mclasen@redhat.com>
528
529         * tests/keyfile-test.c: Add a test for grup names of length 1.
530
531         * glib/gkeyfile.c (g_key_file_line_is_group): Accept group names
532         of length 1.  (#316309)
533         
534 2005-09-12  Matthias Clasen  <mclasen@redhat.com>
535
536         * glib/gmarkup.c (g_markup_escape_text): Clarify docs.
537
538 2005-09-11  Sebastian Wilhelmi  <seppi@seppi.de>
539
540         * tests/refcount/Makefile.am (INCLUDES): Link the the refcount
541         tests to the system thread library $(G_THREAD_LIBS). Fixes #313744
542         and #314217.
543
544 2005-09-11  Kjartan Maraas  <kmaraas@gnome.org>
545
546         * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
547         (child_watch_helper_thread): Remove some dead code. Closes
548         bug #315278.
549
550 2005-09-07  Tor Lillqvist  <tml@novell.com>
551
552         * glib/Makefile.am: Create also a console version of the
553         gspawn-win32-helper program, gspawn-win32-helper-console.exe.
554         It's otherwise identical to gspawn-win32-helper.exe, except marked
555         as a console application (linked without the -mwindows option).
556         
557         * glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes):
558         Drop the dont_wait parameter. Its truth value correlated 100% with
559         the NULLness of the exit_status parameter anyway, so it's enough
560         to check whether exit_status is NULL. Invert the sense of the
561         dont_return_handle parameter and rename it to do_return_handle, to
562         make the code easier to read by avoiding double negations.
563
564         (g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls
565         to do_spawn_with_pipes() accordingly.
566
567         (do_spawn_with_pipes): If we have a console, use the console
568         version of the helper program, otherwise use the GUI one. This
569         avoids extra console windows opening up in some situations. (In
570         case a console application uses the GUI gspawn-win32-helper.exe to
571         spawn another console application we would get a separate console
572         for the spawned console application).
573
574         * glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
575
576 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
577
578         * glib/gmappedfile.c (g_mapped_file_new): Report an error
579         if the file is too large.  (#315275, Kjartan Maraas)
580
581         * glib/gkeyfile.c (g_key_file_load_from_fd): The return value
582         of read() is signed.  (#315273, Kjartan Maraas)
583         
584 2005-08-31  Tor Lillqvist  <tml@novell.com>
585
586         * glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
587         the EXE and each DLL have their own atexit function chains.
588
589         #define g_atexit as atexit instead. This means it has a
590         better chance of doing what the caller wants. For instance,
591         gtkhtml calls g_atexit() registering a function in gtkhtml
592         itself. This caused a crash when g_atexit() was implemented as a
593         function in the GLib DLL. The gtkhtml DLL was already unloaded by
594         the time the GLib DLL got unloaded.
595
596         * glib/gutils.c: #undef the #define mentioned above, to also get a
597         real g_atexit() into the DLL for backward compatibility. Document
598         the Windows behaviour of g_atexit(), and document the varying ways
599         atexit() can behave in the context of dynamically loaded modules
600         on Unix.
601
602 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
603
604         * glib/glib.symbols: 
605         * glib/gquark.h: 
606         * glib/gdataset.c: Add string interning functions.
607
608 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
609
610         * glib/giochannel.c: Unify some near-duplicate strings. (#314654,
611         Clytie Siddall)
612         
613 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
614
615         * configure.in: Bump version to 2.9.0
616
617 2005-08-25  Tor Lillqvist  <tml@novell.com>
618
619         Make also the g_spawn*() functions take parameters in the GLib
620         file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
621         API or ABI. Like the other GLib API that was earlier changed to
622         use UTF-8 on Windows, the names of the functions that take UTF-8
623         have _utf8 suffixes added by using preprocessor macros in the
624         header file. The old names are kept for functions with the old
625         behaviour, taking parameters in the system codepage, for DLL ABI
626         stability.
627         
628         * glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
629         g_spawn*() functions.
630         
631         * glib/gspawn-win32.c: Use wide-char API on NT-based
632         Windows. Convert parameters from UTF-8 to wide chars (NT) or
633         system codepage (Win9x) and call the C library _wspawn*() or
634         spawn*() functions respectvely. Add DLL ABI stability versions
635         that take parameters in the system codepage.
636
637         * glib/gspawn-win32-helper.c: On NT-based Windows use the
638         wide-char versions of argv and envp, and use wide-char API to
639         change directory and spawn the program to run. Remove the verbose
640         debugging output, it was too complex to modify for the wide-char
641         features. (Just add temporary debugging printouts if needed, no
642         need to have them permanently in the source.)
643
644         * glib/gspawn.c: Corresponding documentation updates.
645
646         * glib/glib.symbols: Corresponding changes: Mark the ABI stability
647         symbols as PRIVATE, add the new _utf8-suffixed ones.
648
649 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
650
651         * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is
652         guint64 otherwise and that can produce warnings about comparison
653         between signed and unsigned.
654
655 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
656
657         * glib/gutils.c: Fix the crt_externs.h include.
658
659 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
660
661         * NEWS: Fix spelling of my first name.
662
663 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
664
665         * Bump version
666
667         * === Released 2.8.1 ===
668
669         * NEWS: Updates
670
671 2005-08-20  Hans Breuer  <hans@breuer.org>
672
673         * glib/makefile.msc.in : link with ws2_32.lib
674
675 2005-08-18  Tor Lillqvist  <tml@novell.com>
676
677         * configure.in: Check for <sys/wait.h>
678
679         * glib/gbacktrace.c: Include <sys/wait.h> on if HAVE_SYS_WAIT_H.
680
681 2005-08-18  Ross Burton  <ross@burtonini.com>
682
683         * glib/gstring.c:
684         Optimise single-character insertions.
685         
686         * glib/gutf8.c:
687         Note copied code.
688         
689         * tests/string-test.c:
690         Add tests for new optimisation, and fix a leak.
691
692 2005-08-17  Matthias Clasen  <mclasen@redhat.com>
693
694         * configure.in: Check for crt_externs.h and _NSGetEnviron.
695
696         * glib/gutils.c: On Darwin, include crt-externs.h and
697         define environ using _NSGetEnviron().  (#313731)
698
699 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
700
701         * glib/gutils.c (g_get_any_init): Move the body of the big if...
702         (g_get_any_init_do): ... to this new function.
703         (g_get_any_init): Declare as inline.
704         (g_get_any_init_locked): New inline function, does the locking.
705         Make use of these two throughout the code.
706
707 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
708
709         * glib/gbacktrace.c (g_on_error_stack_trace): Wait for
710         the child process and then simply return. This makes 
711         The "S" option work as documented in g_on_error_query().
712         (#313125, Matthew F. Barnes)
713
714         * glib/gunicode.h: Update the link to Unicode category
715         values.  (#313369, Behnam Esfahbod)
716
717         * glib/gqueue.c (g_queue_find_custom): Clarify docs
718         a little.  (#311727, Tristan van Berkom)
719
720         * glib/abicheck.sh, gobject/abicheck.sh: Make the 
721         check work on ia64 too, where some symbols ended up 
722         in yet another section.
723