2.13.4
[platform/upstream/glib.git] / ChangeLog
1 2007-06-05  Matthias Clasen  <mclasen@redhat.com>
2
3         * === Released 2.13.4 ===
4
5         * NEWS: Updates
6
7 2007-06-05  Matthias Clasen  <mclasen@redhat.com>
8
9         * glib/gkeyfile.c (g_key_file_is_key_name):
10         (g_key_file_is_group_name): Don't assume the string is
11         valid UTF-8, since it may be user data.  (#444161, Ben Combee)
12
13 2007-06-05  Behdad Esfahbod  <behdad@gnome.org>
14
15         * glib/gutf8.c: Add not to g_utf8_get_char_validated() about
16         nul-terminated strings.
17
18 2007-06-05  Matthias Clasen  <mclasen@redhat.com>
19
20         * glib/gutils.c (g_get_user_special_dir): Don't deadlock
21         when running with threads.  (#444121, Christian Persch)
22
23 2007-06-05  Vincent Untz  <vuntz@gnome.org>
24
25         * glib/goption.c: (g_option_context_get_help): don't replace the usage
26         line with the description for optional parameters, but append the
27         description. (#444130)
28
29 2007-06-04  Matthias Clasen  <mclasen@redhat.com>
30
31         * configure.in: Bump version
32         
33         * === Released 2.13.3 ===
34
35         * NEWS: Updates
36
37 2007-06-04  Matthias Clasen  <mclasen@redhat.com>
38         
39         Add support for a number of special directories, as 
40         defined by the xdg-user-dirs specification.  (#432651,
41         Bastien Nocera, Emmanuele Bassi, Michael Natterer)
42
43         * glib/glib.symbols:
44         * glib/gutils.[hc]: Add the GUserDirectory enum and
45         g_get_user_special_dir(), with implementations based
46         on the xdg-user-dirs spec and on native interfaces
47         for Win32 and Carbon.
48         
49         * configure.in: Add Carbon checks.
50
51         * tests/tetsglib.c: Test g_get_user_special_dir().
52         
53 2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>
54
55         * glib/gregex.c: fixed g_regex_fetch_named* for cases when (?J)
56         is used inside a pattern (#442265, comment #12).
57         * tests/regex-test.c: Test it.
58
59 2007-06-03  Matthias Clasen <mclasen@redhat.com>
60
61         * NEWS: Updates
62
63 2007-06-03  Yevgen Muntyan  <muntyan@tamu.edu>
64
65         Some API additions and changes (#442265).
66
67         * glib/gregex.c:
68         * glib/gregex.h: new functions: g_regex_ref(), g_regex_unref() which
69         replaces g_regex_free(); g_match_info_get_regex(), g_match_info_get_string();
70         g_regex_check_replacement().
71         Made g_match_info_expand_references() accept NULL; changed GRegexEvalCallback
72         to take only arguments which are likely to be actualy used.
73
74         * docs/reference/glib/glib-sections.txt:
75         * glib/glib.symbols: Added new functions.
76
77         * tests/regex-test.c: Test them.
78
79         * docs/reference/glib/tmpl/gregex.sgml: Updated GRegexEvalCallback docs.
80
81 2007-05-31  Matthias Clasen <mclasen@redhat.com>
82
83         * README.win32: Fix a typo.  (#423708, Olivier Delhomme)
84
85 2007-05-30  Dan Winship  <danw@novell.com>
86
87         * glib/gkeyfile.h: add defines for desktop file handling. #339225,
88         original patch from Vincent Untz.
89
90 2007-05-29  Cody Russell  <bratsche@gnome.org>
91
92         * configure.in: Fix a sed script that doesn't correctly detect
93         i586-mingw32-gcc-3.4 compiler, and was causing -Wno-pointer-sign
94         errors when building with that compiler. (#440896, Yevgen Muntyan)
95
96 2007-05-29  Marco Barisione <marco@barisione.org>
97
98         * glib/gregex.c: Fix g_regex_fetch_named() and
99         g_regex_fetch_named_pos() when G_REGEX_DUPNAMES is used  (#434358,
100         Yevgen Muntyan and #419376, Marco Barisione, patch by Yevgen Muntyan)
101
102 2007-05-25  Behdad Esfahbod  <behdad@gnome.org>
103
104         * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
105         Update to Markus Kuhn's updated wcwidth for Unicode 5.0.
106
107 2007-05-22  Matthias Clasen  <mclasen@redhat.com>
108
109         * configure.in: Bump version
110
111         * === Released 2.13.2 ===
112
113         * README.in:
114         * NEWS: Updates
115
116 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
117
118         * configure.in: Try again to move the compiler-dependency
119         of G_GNUC_INTERNAL to runtime.
120
121 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
122
123         * configure.in: Don't let PERL_PATH be ''.  (#356769, Joseph Sacco)
124
125 2007-05-17  Michael Natterer  <mitch@imendio.com>
126
127         * configure.in: hotfix: revert last change to fix the build on OS X.
128
129 2007-05-17  Matthias Clasen  <mclasen@redhat.com>
130
131         * glib/goption.c (g_option_context_set_translate_func): Fix
132         a doc typo.  (#439232, Vincent Untz)
133
134 2007-05-17  Matthias Clasen  <mclasen@redhat.com>
135
136         * configure.in: Move the compiler-dependency in the G_GNUC_INTERNAL
137         definition from configure-time to runtime (of the compiler).
138         (#438869, Damien Carbery)
139
140         * glib/gdebug.h:
141         * glib/gmessages.h:
142         * glib/gunicodeprivate.h:
143         * glib/gthreadprivate.h: Move G_GNUC_INTERNAL before function
144         declarations to fix compilation with sun studio.  (#438873,
145         Damien Carbery)
146
147 2007-05-14  Matthias Clasen  <mclasen@redhat.com>
148
149         * glib/gslice.h:
150         * glib/gslice.c:
151         * glib/glib.symbols: Make g_slice_debug_tree_statistics() 
152         debug-only functionality again.
153
154 2007-05-14  Christian Persch  <chpe@gnome.org>
155
156         * docs/reference/glib/tmpl/string_utils.sgml: Improve g_strerror and
157         g_strsignal docs. Bug #438293.
158
159 2007-05-13  Tor Lillqvist  <tml@novell.com>
160
161         * glib/gwin32.h: Drop the pipe() macro. Defining macros outside of
162         its namespace that look like POSIX functions is not GLib's
163         business in my opinion. This means pipe()-using code that has
164         relied on this definition will need changing to call _pipe() on
165         Windows, and make the decision itself on what size pipe buffer to
166         use, and whether to use text or binary mode, and whether the pipe
167         handles should be inheritable or not.
168
169         * glib/gspawn-win32.c (make_pipe): Use _pipe() instead of pipe().
170
171 2007-05-11  Matthias Clasen  <mclasen@redhat.com>
172
173         * glib/goption.c: Allow G_OPTION_ARG_CALLBACK for 
174         G_OPTION_REMAINING.  (#437297, Dave Benson)
175
176         * tests/option-test.c: Add a test for this.
177
178 2007-05-04  Dan Winship  <danw@novell.com>
179
180         * glib/gkeyfile.c (g_key_file_get_boolean)
181         (g_key_file_get_boolean_list, g_key_file_get_integer)
182         (g_key_file_get_integer_list, g_key_file_get_double)
183         (g_key_file_get_double_list): Document the error return values
184         rather than calling them undefined. #435885.
185
186 2007-05-03  Behdad Esfahbod  <behdad@gnome.org>
187
188         * glib/glib.symbols:
189         * glib/gunicode.h:
190         * glib/guniprop.c (g_unichar_ismark):
191         Add g_unichar_ismark(). Patch from Yevgen Muntyan. Fixes #339991.
192
193 2007-05-03  Matthias Clasen <mclasen@redhat.com>
194
195         * configure.in: Bump version
196
197         * === Released 2.13.1 ===
198
199 2007-05-02  Matthias Clasen <mclasen@redhat.com>
200
201         * tests/threadpool-test.c:  Stop unused threads before
202         the last test, to make the test terminate reliably.
203
204         * NEWS: Updates
205
206 2007-05-02  Marco Barisione <marco@barisione.org>
207
208         * glib/gregex.c: Made more clear that the string passed to the match
209         functions cannot be freed before using g_match_info_fetch() and
210         similar functions, and fixed a typo.
211
212 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
213
214         * glib/glib.symbols:
215         * glib/gregex.[hc]: Add g_regex_get_max_backref() and
216         g_regex_get_capture_count().  (#419371, Marco Barisione)
217         
218 2007-04-30  Matthias Clasen  <mclasen@redhat.com>
219
220         * glib/glib.symbols:
221         * glib/gregex.[hc]: Split GRegex into GRegex and GMatchInfo.
222         (#419368, Marco Barisione)
223
224         * tests/regex-test.c: Adapt.
225
226 2007-04-30  Chris Wilson  <chris@chris-wilson.co.uk>
227
228         * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
229         Include the gshell.h header file (to define g_shell_[un]quote)
230         and correct the order of the arguments to g_propagate_error(), as
231         spotted by gcc.
232
233 2007-04-29  Emmanuele Bassi  <ebassi@gnome.org>
234
235         * glib/gbookmarkfile.c:
236         (g_bookmark_file_set_app_info): Quote the passed command line...
237         
238         (g_bookmark_file_get_app_info): ... and unquote it when giving it
239         back. (#432274)
240
241 2007-04-27  Matthias Clasen <mclasen@redhat.com>
242
243         * glib/gstrfuncs.c: small coding style cleanups.
244
245 2007-04-27  Chris Wilson  <chris@chris-wilson.co.uk>
246
247         * glib/gregex.h: Remove trailing comma at end of enumerator list.
248
249 2007-04-27  Tor Lillqvist  <tml@novell.com>
250
251         * glib/gstdio.c (g_mkdir): Document that the mode argument is
252         ignored on Windows
253         (g_stat): Document that st_mode is mostly useless on Windows.
254
255 2007-04-25  Paolo Borelli  <pborelli@katamail.com>
256
257         * glib/gstrfuncs.c (g_strsplit): small cleanup. (#433387)
258
259 2007-04-24  Matthias Clasen  <mclasen@redhat.com>
260
261         * glib/glib.symbols:
262         * glib/goption.h:
263         * glib/goption.c (g_option_context_get_help): New function to
264         get the formatted help string.  (#336089, Dom Lachowicz)
265
266 2007-04-24  Michael Natterer  <mitch@imendio.com>
267
268         * tests/gobject/paramspec-test.c: test all GParamSpecString
269         validations with static and allocated strings.
270
271 2007-04-19  William Jon McCann  <mccann@jhu.edu>
272
273         * glib/gkeyfile.[ch]: (find_file_in_data_dirs),
274         (g_key_file_load_from_dirs), (g_key_file_load_from_data_dirs):
275         Add g_key_file_load_from_dirs for looking through a search
276         path for a key-file. (#355334)
277
278 2007-04-15  Tor Lillqvist  <tml@novell.com>
279
280         * build: Include the build module using the svn:externals
281         mechanism.
282
283         * Makefile.am
284         * configure: Add the references to build back.
285
286 2007-04-11  Matthias Clasen  <mclasen@redhat.com>
287
288         * glib/gspawn.c (g_spawn_async): Fix a doc typo.  (#427285, 
289         Jochen Baier)
290
291 2007-04-11  Emmanuele Bassi  <ebassi@gnome.org>
292
293         * glib/ghash.[ch]: Add g_hash_table_get_keys() and
294         g_hash_table_get_values(), API to retrieve the keys
295         and values inside an hash table in list form. (#413133)
296
297         * glib/glib.symbols: Update symbols.
298
299         * tests/hash-test.c: Exercise newly added functions.
300
301 2007-04-11  Matthias Clasen  <mclasen@redhat.com>
302
303         * configure.in: Use CFLAGS/LDFLAGS in addition to 
304         PCRE_CFLAGS/PCRE_LIBS when checking system PCRE.  (#421607, 
305         Paul Jarc)
306
307 2007-03-27  Emmanuele Bassi  <ebassi@gnome.org>
308
309         * glib/gdate.h: Remove old comment and forward declaration of
310         struct tm: gdate.h includes time.h now.
311
312 2007-03-23  Matthias Clasen  <mclasen@redhat.com> 
313
314         * tests/gobject/Makefile.am: Handle $RANDOM missing.  (#356843,
315         Paul Jarc)
316
317 2007-03-22  Matthias Clasen  <mclasen@redhat.com> 
318
319         * glib/guniprop.c: Fix corner-cases of upper/lowercase conversion.
320         (#418217, Denis Jacquerye)
321
322 2007-03-22  Chris Wilson  <chris@chris-wilson.co.uk>
323
324         * glib/gkeyfile.c: Track whether the last key=value pair in a group
325         is a blank line and during to_data() only insert a new blank line
326         betweens group in its absence. This allows the beautification of the
327         GKeyFile and prevents newlines being inserted indefinitely. (#420686)
328
329         * tests/keyfile-test.c (test_reload_idempotency): Test that after a 
330         single beautification pass, g_key_file_to_data() does not alter its
331         input data.
332
333 2007-03-21  Matthias Clasen  <mclasen@redhat.com>
334
335         * glib/pcre/Makefile.am: Make builddir != srcdir work.  (#419900)
336
337 2007-03-19  Paolo Borelli  <pborelli@katamail.com>
338
339         * glib/gutf8.c (fast_validate_len): remove unneeded checks.
340
341 2007-03-18  Matthias Clasen  <mclasen@redhat.com>
342
343         * glib/gregex.c: Cosmetic fixes
344
345 2007-03-17  Marco Barisione <marco@barisione.org>
346
347         * glib/update-pcre/table-reduction.patch:
348         * glib/update-pcre/make_utt.py:
349         * glib/update-pcre/utt.patch: Add forgotten files
350
351         * glib/update-pcre/update.sh: Call python directly instead of relying
352         on shebang. Also copy the changes from glib/pcre/makefile.msc to this
353         file
354
355 2007-03-17  Hans Breuer  <hans@breuer.org>
356
357         * glib/makefile.msc.in glib/pcre/makefile.msc 
358           glib/update-pcre/update.sh : define PCRE_STATIC to reflect the 
359         inclusion of pcre as LIB, not stand-alone DLL. Also set NEWLINE=-1
360         to match any newline by default, use of ../../build/win32/make.msc
361
362         * glib/gregex.h : minimal includes of <glib/*.H> instead of <glib.h>
363
364         * glib/gnulib/makefile.msc : make use of ../../build/win32/make.msc
365
366         * tests/regex-test.c(verbose): don't pass a string containing '%' 
367         as first parameter to g_print ()
368         (test_match) : for the unexpected case output pattern and string
369         escaped
370
371         * tests/child-test.c tests/slice-color.c : fix c99ism
372         * tests/slice-test.c : fix c99ism and gccism
373         * tests/mapping-test.c tests/base-64-tests.c : don't 
374         #include <unistd.h> unconditionally
375         * tests/option-test.c : use G_GINT64_CONSTANT() instead of direct LL
376
377         * tests/makefile.msc.in : more tests build
378
379 2007-03-17  Matthias Clasen  <mclasen@redhat.com>
380
381         * glib/gsequence.[hc]:
382         * glib/glib.symbols:
383         * tests/sequence-test.c: Move the consistency
384         checks to the test.
385
386 2007-03-16  Matthias Clasen  <mclasen@redhat.com>
387
388         * configure.in: Bump version
389
390         * === Released 2.13.0 ===
391
392         * NEWS: Updates
393
394 2007-03-16  Matthias Clasen  <mclasen@redhat.com>
395         
396         * glib/glib.symbols:
397         * glib/gsequence.h: Add the test function to the header,
398         since it is exported.
399
400         * glib/gbase64.c (g_base64_decode): Warn if the input
401         is too short.  (#418862, Halton Huo)
402
403 Fri Mar 16 11:24:51 2007  Tim Janik  <timj@imendio.com>
404
405         * glib/gscanner.[hc]: reverted premature commit which broke
406         GScanner ABI and API, #415323.
407
408 2007-03-16  Chris Wilson  <chris@chris-wilson.co.uk>
409
410         * glib/gkeyfile.c: Convert to GSlice and check for redundant
411         clears. (#418637)
412
413 2007-03-15  Matthias Clasen  <mclasen@redhat.com>
414
415         * glib/gscanner.[hc]: Revert recent changes that break
416         existing users of GScanner.
417
418 2007-03-15  Matthias Clasen  <mclasen@redhat.com>
419
420         * glib/gscanner.c (g_scanner_get_token_ll): Fix a typo
421         in the last commit.  (#415323, Richard Hult)
422
423 2007-03-15  Tor Lillqvist  <tml@novell.com>
424
425         * glib/gnulib/Makefile.am (INCLUDES): Add -I$(top_srcdir)/glib so
426         that gregex.h finds <glib.h>.
427
428         * glib/update-pcre/Makefille.am-1: Add -DGLIB_COMPILATION so that
429         we don't think g_ascii_table is dllimport.
430
431         * glib/pcre/Makefile.am: Corresponding change.
432
433         * glib/update-pcre/notdll.patch: New file. Drop
434         dllimport/dllexport magic for the pcre symbols.
435
436         * glib/update-pcre/Makefile.am: Dist it.
437
438         * glib/update-pcre/update.sh: Apply notdll.patch.
439
440         * glib/pcre/pcre.h: Corresponding change.
441
442 2007-03-15  Tor Lillqvist  <tml@novell.com>
443
444         * glib/gtypes.h: Add comment to avoid misleading people with the
445         large number of digits in G_PI etc. (#404338)
446
447 2007-03-15  Tor Lillqvist  <tml@novell.com>
448
449         * config.h.win32.in: Update to match what configure produces.
450
451 2007-03-15  Marco Barisione <marco@barisione.org>
452
453         Add GRegex for regular expression matching.  (#50075)
454
455         * configure.in: Handle GRegex compilation.
456
457         * glib/gregex.c:
458         * glib/gregex.h: Code for GRegex.
459
460         * glib/Makefile.am:
461         * glib/makefile.msc.in: Updated makefiles.
462
463         * glib/pcre/*: Internal copy of PCRE.
464
465         * glib/update-pcre/*: Stuff to automatically update the internal PCRE
466         to a newer version.
467
468         * tests/regex-test.c:
469         * tests/Makefile.am:
470         * tests/makefile.msc.in: Add tests for GRegex.
471
472 2007-03-15  Chris Wilson  <chris@chris-wilson.co.uk>
473
474         * glib/gmain.c (g_main_dispatch): Replace a
475         g_slist_prepend/g_slist_remove pair with an on-stack link
476         and open coding. (#416094)
477
478 2007-03-15  Matthias Clasen  <mclasen@redhat.com>
479
480         Fix two glitches in the Unicode case conversion
481         functions (#418217,  Denis Jacquerye)
482
483         * glib/guniprop.c (g_unichar_toupper): Handle zero entries
484         in special_case_table correctly.
485         (g_unichar_totitle): Fall back to g_unichar_toupper.
486
487 2007-03-15  Matthias Clasen  <mclasen@redhat.com>
488
489         * glib/gscanner.[hc]: Some optimizations, use a lookup
490         table for character classes, pre-allocate GStrings with
491         reasonable sizes.  (#415323, Charlie Brej)
492
493 2007-03-14  Matthias Clasen  <mclasen@redhat.com>
494
495         * glib/gkeyfile.c (g_key_file_get_double): Fix a 
496         small typo.  (#417847, Bobby Jack)
497
498 2007-03-08  Matthias Clasen  <mclasen@redhat.com>
499
500         * glib/gstrfuncs.c (g_strtoll): Return negative values.
501         (#416062)
502
503         * tests/strtoll-test.c: Add more testcases.
504
505 2007-03-06  Matthias Clasen  <mclasen@redhat.com>
506
507         * glib/gstring.c (g_str_equal): Clarify docs.  (#364026, 
508         Bastian Nocera)
509
510 2007-03-06  Matthew Barnes  <mbarnes@redhat.com>
511
512         * glib/gqueue.h:
513         * glib/gqueue.c: Add G_QUEUE_INIT, g_queue_init(), and
514         g_queue_clear() to better support statically allocated
515         queues.  (#413244)
516
517 2007-03-06  Matthias Clasen  <mclasen@redhat.com>
518
519         * glib/gkeyfile.c (g_key_file_parse_value_as_boolean):
520         Remove a NULL check that didn't do any good.  (#360904,
521         Paolo Borelli)
522
523 2007-03-06  Matthias Clasen  <mclasen@redhat.com>
524
525         * glib/gmarkup.c (g_markup_parse_context_parse): Report
526         more accurate position for invalid UTF-8.  (#350802,
527         Simon Budig)
528
529 2007-03-06  Matthias Clasen  <mclasen@redhat.com>
530
531         * glib/gbase64.c: Add NULL checks to the base64 
532         functions that take pointers.  (#399611, Martyn Russell)
533
534 2007-03-06  Matthias Clasen  <mclasen@redhat.com>
535
536         Work with Solaris gettext (#341988, Laszlo Peter)
537
538         * m4macros/glib-gettext.m4: Make GLIB_WITH_NLS define
539         MSGFMT_OPTS if msgfmt supports -c.
540
541         * po/Makefile.in.in: Use MSGFMT_OPTS when calling
542         msgfmt.
543
544 2007-03-06  Matthias Clasen  <mclasen@redhat.com>
545
546         * tests/Makefile.am: Apply a patch by Loïc Minier
547         to fix building with -Wl,-z,defs.  (#149144)
548
549 2007-03-03  Thierry Randrianiriana  <randrianiriana@gmail.com>
550
551         * po/mg.po: Added Malagasy translation.
552         * configure.in: Added Malagasy 'mg' to ALL_LINGUAS
553
554 2007-03-01  Ihar Hrachyshka <iharh@gnome.org>
555         * configure.in: Added be@latin to ALL_LINGUAS.
556
557 2007-02-17  Tor Lillqvist  <tml@novell.com>
558
559         * glib/gdate.c (win32_strftime_helper): New Win32-only
560         function. Use the wide character Win32 API to do the work of
561         strftime(): GetThreadLocale(), GetLocaleInfoW(), GetDateFormatW()
562         and GetTimeFormatW().
563         (g_date_strftime): On Windows use win32_strftime_helper()
564         instead of strftime() to avoid codepage issues with strftime().
565         Unfortunately using wcsftime() would not help either. (#404832)
566
567 2007-02-16  Soren Sandmann <sandmann@redhat.com>
568
569         * tests/sequence-test.c: For move, test moving between two
570         sequences. Add test for swap.
571
572         * glib/gsequence.c: Replace splay tree with a treap.
573         (check_node): Add checks for the treap invariants.
574
575 2007-02-10  Hans Breuer  <hans@breuer.org>
576
577         * glib/makefile.msc.in : added gsequence.obj
578
579 Fri Feb  9 17:46:18 2007  Søren Sandmann  <sandmann@redhat.com>
580
581         * glib/gsequence.c (g_sequence_get_end_iter): Remove assertion.
582         * glib/gsequence.c (is_end): Return TRUE if the iter doesn't have
583         a parent.
584         * glib/gsequence.c: Fix grammar of comment.
585         * glib/gsequence.c (node_update_fields): Use a temporary variable
586         for the n_nodes.
587
588 2007-02-07  Soren Sandmann <sandmann@daimi.au.dk>
589
590         * tests/sequence-test.c (compare_items): Force an arbitrary order
591         on otherwise identical items.
592
593         * glib/gsequence.c: Add comment discussing splay trees vs. other trees.
594         * glib/gsequence.c (is_end): Add fast path for the common case
595         when the node is not actually the end node.
596
597 2007-02-05  Soren Sandmann <sandmann@daimi.au.dk>
598
599         * glib/gsequence.c (g_sequence_sort_iter): Don't prohibit access
600         until after the g_sequence_move_range() call.  Bug 404759,
601         Christian Persch.
602
603        * tests/sequence-test.c: Formatting fix.
604
605 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
606
607         * glib/gsequence.c (struct _GSequence): Add a new 'real_sequence'
608         field.
609         (g_sequence_new): Initialize real_sequence to the sequence
610         (g_sequence_sort_iter): Set real_sequence of the temporary
611         sequence to the real sequence.
612         (g_sequence_sort_changed_iter): Same
613         (g_sequence_insert_sorted_iter): Same
614         (g_sequence_search_iter): Same
615         (g_sequence_iter_get_sequence): Return real_sequence
616
617         * tests/sequence-test.c (compare_iters): Insert assertions that
618         the iters point to the sequence being manipulated.
619
620 2007-02-03  Soren Sandmann <sandmann@daimi.au.dk>
621
622         * glib/gsequence.[ch]: New files implementing GSequence, a list
623         implemented using a binary tree.
624         * glib/glib.h, glib/glib.symbols: Update for GSequence.
625         * docs/reference: Add documentation for GSequence
626         * tests: Add sequence-test.c, a thorough test of all of
627         the GSequence API.
628
629 2007-01-30  Matthias Clasen <mclasen@redhat.com>
630
631         * glib/glib.symbols:
632         * glib/gslice.h:
633         * glib/gslice.c: Don't make ABI depend on G_ENABLE_DEBUG,
634         just add an empty g_slice_debug_tree_statistics () implementation
635         in the !G_ENABLE_DEBUG case.
636
637 2007-01-26  Matthias Clasen <mclasen@redhat.com>
638
639         * configure.in: Define G_GNUC_INTERNAL for Sun Studio
640         as __hidden.  (#342981, Brian Cameron)
641
642         * glib/gconvert.c:
643         * glib/gutf8.c: Move G_GNUC_INTERNAL uses to the right
644         spot.
645
646 2007-01-26  Matthias Clasen <mclasen@redhat.com>
647
648         * gmem.c:
649         * gslice.c:
650         * gmessages.c:
651         * gutils.c: Make some structs which are used only once
652         non-static.
653
654 2007-01-24  Benjamin Otte <otte@gnome.org>
655
656         * glib/gprintf.c (g_sprintf): Clarify the documentation
657         regarding overflows (wording by Jan Schmidt)
658
659 2007-01-23  Roozbeh Pournader  <roozbeh@farsiweb.info>
660
661         * README: Remove mention of no-longer-existing PATCH
662         keyword in bugzilla. (#396899)
663
664 2007-01-23  Matthias Clasen  <mclasen@redhat.com>
665
666         * glib/gutf8.c (g_utf8_get_char_validated): Clarify
667         the behaviour is max_len is zero.  (#400044,
668         Benjamin Dauvergne)
669
670 2007-01-23  Matthias Clasen  <mclasen@redhat.com>
671
672         * glib/goption.c (print_help): Use bitwise &
673         when operating on flags.  (#399971, Jon Oberheide)
674
675 2007-01-19  Matthias Clasen  <mclasen@redhat.com>
676
677         Some file list updates (#398069, Owen Taylor)
678
679         * docs/Changes-2.0.txt
680         * docs/reference/README.cvs-commits
681         * glib.spec.in: Remove obsolete files
682
683         * tests/Makefile.am:
684         * glib/libcharset/Makefile.am:
685         * gobject/Makefile.am:
686         * Makefile.am: Add some missing files to EXTRA_DIST
687
688         * tests/timeloop-basic.c: Make it build
689         * HACKING: Small updates
690
691 2007-01-18  Matthias Clasen  <mclasen@redhat.com>
692
693         * glib/gdate.c (g_date_set_time): Fix a typo.  (#398203,
694         Owen Taylor)
695
696 2007-01-17  Tor Lillqvist  <tml@novell.com>
697
698         * config.h.win32.in
699         * glib/galloca.h
700         * glib/gbacktrace.h
701         * glib/gwin32.c
702         * glibconfig.h.win32.in
703         * README.win32: More minor tweaks for Digital Mars
704         compiler. (#346808, Serhat Sevki Dincer)
705
706 2007-01-17  Tor Lillqvist  <tml@novell.com>
707
708         * glib-zip.in: DLLs are always installed in "bin" with current
709         libtool, drop unnecessary logic to check where they are. Include
710         also the COPYING file.
711
712 2007-01-17  Tor Lillqvist  <tml@novell.com>
713
714         * glib/galloca.h: Use <malloc.h> also with Digital Mars compiler
715         on Win32. (#346808, Serhat Sevki Dincer)
716
717 2007-01-16  Matthias Clasen  <mclasen@redhat.com>
718
719         * glib/gthread.h:
720         * glib/gthread.c:
721         * glib/glib.symbols: Revert an accidental ABI break by
722         moving gettime out of the GThreadFunctions struct and making
723         it a separate variable.  (#397139, Joe Marcus Clarke)
724
725         * gthread/*.c: Adapt.
726
727 2007-01-16  Tor Lillqvist  <tml@novell.com>
728
729         * glib/gthread.c (gettime): GetSystemTimeAsFileTime() returns 100s
730         of nanoseconds since 1601, so offset to Unix epoch (1970) and
731         multiply by 100 to get nanoseconds which is what we want.
732
733 2007-01-15  Tor Lillqvist  <tml@novell.com>
734
735         * glib/gmain.h (struct _GPollFD): Fix mistake in my last commit.
736
737 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
738
739         * glib/giochannel.c:
740         * glib/gbookmarkfile.c: Remove redundant NULL-checks.
741         (#369668, Morten Welinder)
742
743 2005-01-15  Matthias Clasen  <mclasen@redhat.com>
744
745         * glib/gthread.c:
746         * gthread/gthread-posix.c: Correct the gettime calculations
747         once more.  (#395203, Chris Wilson)
748
749 2007-01-15  Tor Lillqvist  <tml@novell.com>
750
751         * glib/gmain.h (struct _GPollFD): Prepare for potential Win64
752         build: Use gint64 for the fd field on Win64, as we want to be able
753         to store a HANDLE in it. (#395422) (Other changes will surely also
754         be necessary when building on Win64, at least in giowin32.c.)
755
756 2007-01-15  Tor Lillqvist  <tml@novell.com>
757
758         * glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
759         hardcoding a large switch statement, just ask Windows for the
760         ISO639 and ISO3166 codes. Tack on @Latn or @Cyrl for those
761         languages which can alternatively be written in Latin or
762         Cyrillic. Fixes #395419.
763
764 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
765
766         * glib/gkeyfile.c: Rework the handling of invalid
767         keys/groups again. We are back to being liberal about
768         what we accept, and only reject things that would lead
769         to non-rereadable keyfiles.
770
771         * tests/keyfile-test.c: Adapt tests.
772
773 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
774
775         * glib/gutils.c (g_get_home_dir): Clarify docs.  (#394687,
776         Marc Brockschmidt)
777
778 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
779
780         * glib/gthread.c: Include windows.h and fix
781         include order. (#394258, Kazuki Iwamoto)
782
783 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
784
785         * configure.in: Make G_GNUC_INTERNAL a no-op for
786         gcc 2.95.    (#329031, David Schleef, Marc Brockschmidt)
787
788 2007-01-12  Matthias Clasen  <mclasen@redhat.com>
789
790         * gthread/gthread-posix.c:
791         * glib/gtimer.c:
792         * glib/gthread.c: Fix errors in the recently moved
793         time calculations.  (#395203, Chris Wilson)
794
795 2007-01-10  Matthias Clasen  <mclasen@redhat.com>
796
797         * configure.in: Actually link gthread against librt.
798         (#394641, Marco Pesenti Gritti)
799
800 2007-01-10  Matthias Clasen  <mclasen@redhat.com>
801
802         * glib/gkeyfile.c (g_key_file_is_key_name): Grr, allow '*' in keys,
803         too.  (#394262)
804
805 2007-01-09  Behdad Esfahbod  <behdad@gnome.org>
806
807         * glib/gutils.h: Use a more optimized g_bit_storage() when gcc is
808         available.  (#371670, Daniel Elstner)
809
810 2007-01-08  Matthias Clasen  <mclasen@redhat.com>
811
812         * gthread/gthread-posix.c (g_thread_impl_init): Don't
813         use _SC_MONOTONIC_CLOCK unless USE_CLOCK_GETTIME is
814         defined.  (#394150)
815
816 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
817
818         Don't link glib against libpthread.  (#393812)
819
820         * configure.in: Link gthread against librt, not glib itself.
821
822         * glib/gthread.h:
823         * glib/gthread.c: Add a new thread function, gettime.
824
825         * glib/gtimer.c: Use gettime instead of directly working with
826         the various system interfaces.
827
828         * gthread/gthread-impl.c:
829         * gthread/gthread-posix.c:
830         * gthread/gthread-win32.c: Implement gettime.
831
832 2007-01-07  Matthias Clasen  <mclasen@redhat.com>
833
834         * m4macros/glib-2.0.m4: Use PKG_PROG_PKG_CONFIG.  (#392636,
835         Yevgen Muntyan)
836
837 2007-01-07  Tor Lillqvist  <tml@novell.com>
838
839         * glib/giowin32.c: Handle GIOChannels for file descriptors
840         connected to the console separately. This would typically be the
841         fd 0, 1, or 2 (if not redirected) in a console application. For
842         such fds we don't need a separate thread, as console HANDLEs are
843         waitable objects. (#359202, Michiel de Hoon)
844
845 2007-01-04  Behdad Esfahbod  <behdad@gnome.org>
846
847         * tests/bit-test.c (builtin_bit_nth_lsf1), (builtin_bit_nth_lsf2),
848         (builtin_bit_nth_msf): Fix tests on x86_64.
849
850 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
851
852         * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
853         (calculate_max_length), (print_entry), (print_help): Take zerowidth
854         and double-width chars into consideration when computing width of a
855         string.  Also fix another bug in width computation. (#346955)
856
857         * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
858         working correctly.
859
860 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
861
862         * glib/glib.symbols:
863         * glib/gunicode.h:
864         * glib/guniprop.c: Add g_unichar_iszerowidth(). (#347645)
865
866 2007-01-03  Behdad Esfahbod  <behdad@gnome.org>
867
868         * glib/gutils.h: Fix bug in g_bit_nth_lsf (#371631) and use
869         __builtin_clzl for g_bit_storage if available (#371670).
870
871         * tests/Makefile.am:
872         * tests/bit-test.c: New test, to test g_bit_* operations against
873         naive and builtin implementations.
874
875 2007-01-02  Behdad Esfahbod  <behdad@gnome.org>
876
877         * configure.in: Avoid more warnings from running libtool --config.
878         (#391364)
879
880 2007-01-03  Michael Natterer  <mitch@imendio.com>
881
882         * removed all .cvsignore files. SVN doesn't need them.
883
884 2007-01-02  Emmanuele Bassi  <ebassi@gnome.org>
885
886         * glib/gbookmarkfile.c (expand_exec_line): Add support for
887         expanding the desktop entry spec variables %U (list of URIs)
888         and %F (list of filenames), so that using the command line
889         from the Exec and TryExec key of a desktop entry file works
890         as intended.
891
892 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
893
894         * configure.in: Avoid warnings from running libtool --config.
895         (#391364, Loïc Minier)
896
897 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
898
899         * glib/gbookmarkfile.c (g_bookmark_file_get_app_info):
900         Return an error if the uri is bad. (#391370, Maciej Piechotka)
901
902 2007-01-02  Matthias Clasen  <mclasen@redhat.com>
903
904         * glib/glib.symbols: Guard g_slice_debug_tree_statistics
905         by G_ENABLE_DEBUG.  (#390940, Kazuki Iwamoto)
906
907 2007-01-02  Michael Natterer  <mitch@imendio.com>
908
909         * configure.in
910         * Makefile.am: remove references to build/ until a proper decision
911         has been made what to do with it.
912
913 2007-01-01  Matthias Clasen  <mclasen@redhat.com>
914
915         * glib-gettextize.in: Silence autoconf warnings about
916         datarootdir.  (#391367, Loïc Minier)
917
918 2006-12-31  Matthias Clasen  <mclasen@redhat.com>
919
920         * glib/gslice.c: Fix some C99isms.  (#390913, Kazuki Iwamoto)
921
922 Fri Dec 29 13:28:07 2006  Tim Janik  <timj@imendio.com>
923
924         * glib/gslice.c: turned detection of too late g_thread_init() calls
925         into a warning. this is a temporary work-around for some head-room
926         to fix affected programs, memory corruption still occours regardless.
927
928 2006-12-29  Matthias Clasen  <mclasen@redhat.com>
929
930         * tests/gobject/Makefile.am:
931         * tests/gobject/dynamictype.c: New test for dynamic type
932         registration macros.
933
934 Thu Dec 28 21:14:45 2006  Tim Janik  <timj@imendio.com>
935
936         * glib/gslice.c: removed pthread-dependant debugging bits, the code
937         was already converted to GMutex. this obsoletes Tor's recent fixups.
938
939 2006-12-28  Tor Lillqvist  <tml@novell.com>
940
941         * glib/gutils.h (G_WIN32_DLLMAIN_FOR_DLL_NAME)
942         * glib/gutils.c (get_windows_directory_root): : Use only the wide
943         character API here, too.
944
945         * glib/gslice.c: Make it compile on Win32 without pthreads: Use a
946         Win32 critical section instead.
947
948         * glib/gmessages.c (g_logv): On Win32, if we get a fatal error
949         message while being debugged we break into the debugger with
950         G_BREAKPOINT(). Don't call abort() if the user is foolhardy enough
951         to continue after the breakpoint. The user presumably knows what
952         he is doing and deserves what he gets. (#376645, Andreas Köhler)
953
954 Thu Dec 28 12:50:31 2006  Tim Janik  <timj@imendio.com>
955
956         * glib/gslice.h, glib/gslice.c: implemented static debugging
957         hash-tree to validate slice adresses and sizes with G_SLICE=debug-blocks.
958         use abort() to exit in mem_error() to allow catching of these in gdb.
959         abort programs with a descriptive error message if g_thread_init() is
960         called after GSlice was in use. previously this just silently corrupted
961         the magazines.
962
963         * glib/ghash.c (struct _GHashNode): reordered fields to keep 8-byte
964         pointer alignment on 64bit systems and request smaller slice sizes
965         on 32bit systems.
966
967         * tests/slice-test.c: support '~' option flag to introduce slice
968         allocation/release corruption with a significant probability. this
969         allowes testing of G_SLICE=debug-blocks.
970
971 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
972
973         * glib/gconvert.[hc]:
974         * glib/gfileutils.c:
975         * glib/giochannel.c:
976         * glib/goption.c:
977         * glib/gspawn.c:
978         * glib/gunicollate.c:
979         * glib/gutils.c:
980         * tests/timeloop-basic.c:
981         Consistently use gsize rather than size_t.  (#333310,
982         Morten Welinder)
983
984 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
985
986         * configure.in: Use AC_CACHE_CHECK for the nl_langinfo
987         check.  (#304517, Lőrinczy Zsigmond)
988
989 2006-12-27  Tor Lillqvist  <tml@novell.com>
990
991         * glib/gwin32.h
992         * glib/gwin32.c (get_package_directory_from_module)
993         (g_win32_get_package_installation_directory)
994         (g_win32_get_package_installation_subdirectory): Add const to
995         gchar* arguments. (#384523, Yevgen Muntyan)
996
997 2006-12-27  Ryan Lortie  <desrt@desrt.ca>
998
999         * glib/ghash.c: cache the value of the hash function
1000         in the GHashNode.  this speeds up resizing the hash
1001         table and it also allows a slight optimisation on
1002         lookups.  (#388332)
1003
1004 2006-12-27  Matthias Clasen  <mclasen@redhat.com>
1005
1006         * glib/gunicollate.c (g_utf8_collate_key): Don't modify
1007         the current locale.  (#389300)
1008
1009 2006-12-26  Matthias Clasen  <mclasen@redhat.com>
1010
1011         * glib/gutf8.c: Add hints for locale-dependent interfaces.
1012         * glib/gconvert.c: Add hints for locale-dependent interfaces.
1013
1014         * glib/gconvert.c (g_get_filename_charsets): Improve
1015         formatting of docs.
1016
1017 2006-12-26  Behdad Esfahbod  <behdad@gnome.org>
1018
1019         * configure.in: Use libtool to determine shared library suffix.
1020         (#357245)
1021
1022 2006-12-24  Matthias Clasen  <mclasen@redhat.com>
1023
1024         * tests/run-collate-tests.sh:
1025         * tests/unicode-collate.c: Silently skip tests if
1026         we can't set LC_COLLATE to en_US.  (#336438)
1027
1028 2006-12-19  Matthias Clasen  <mclasen@redhat.com>
1029
1030         * glib/gkeyfile.c (g_key_file_is_key_name): Accept
1031         '/', '+' and '.' in key names, since gnome-vfs uses
1032         mime types as keys in some cache.
1033
1034         * tests/keyfile-test.c: Tests for the above.
1035
1036 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
1037
1038         * configure.in: Fix the broken poll test.  (#387260,
1039         Christian Persch)
1040
1041         * glib/gmain.c (child_watch_helper_thread): Readd a
1042         return which was removed as dead code a while ago.
1043         icc may consider it dead, but gcc doesn't like non-void
1044         functions without a return...  (#354707)
1045
1046         * tests/Makefile.am: Try a different fix for bug 346373.
1047
1048 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
1049
1050         Fix bug 161288:
1051
1052         * configure.in: Check for wcslen.
1053
1054         * glib/gnulib/vasnprintf.c: Handle wcslen missing.
1055
1056 2006-12-18  Matthias Clasen  <mclasen@redhat.com>
1057
1058         * glib/gkeyfile.c: Accept '@' in locale names.
1059
1060         * glib/gkeyfile.c: Tighten up the check for allowed
1061         key and group names.  (#343191, Tommi Komulainen)
1062
1063         * tests/keyfile-test.c: Test handling of key and group names.
1064
1065         * tests/Makefile.am: Don't use $RANDOM if the shell doesn't
1066         have it.  (#346373, Thomas Klausner)
1067
1068 2006-12-17  Behdad Esfahbod  <behdad@gnome.org>
1069
1070         * glib/gstring.c: Improve docs about string functions taking a
1071         length.  (#378727)
1072
1073 2006-12-17  Matthias Clasen  <mclasen@redhat.com>
1074
1075         * glib/gconvert.c:
1076         * glib/gutf8.c (_g_charset_get_aliases): Put the G_GNUC_INTERNAL
1077         where gcc doesn't complain about it.
1078
1079         * glib/ghash.c: Make ref_count an int to avoid compiler
1080         warnings.
1081
1082         * configure.in: Use AC_LANG_SOURCE for the clock test.
1083
1084         * glib/gthreadpool.h:
1085         * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait"
1086         as parameter name.  (#379207, Christian Biere)
1087
1088         * glib/gspawn.c: Refer to g_child_watch_add() in addition
1089         to waitpid().
1090
1091         * glib/gstrfuncs.c (g_strndup, g_strnfill): Move docs
1092         inline, and improve wording.  (#372598, Behdad Esfahbod)
1093
1094         * glib/gspawn.c: Add some pointers to the gdk_spawn_
1095         variants.  (#338134, Federico Mena Quintero)
1096
1097         * configure.in: Make montonic clock test work again. Does
1098         AC_COMPILE_IFELSE not get confdefs ? Also, move the clock
1099         tests below the thread checks to fix #364663.
1100
1101         * tests/run-markup-tests.sh: Don't use diff -u  (#380801,
1102         Marek Rouchal)
1103
1104         * glib/gspawn.c: Fix the recent fdwalk()-related changes
1105         to not break mapping-test.  (#286838, Marco Barisione)
1106
1107         * glib/gstring.c (g_string_chunk_new): Don't shadow size.
1108         (#386760, Kazuki IWAMOTO)
1109
1110 2006-12-16  Matthias Clasen  <mclasen@redhat.com>
1111
1112         * glib/gstring.c: Move more documentation inline.
1113
1114         * configure.in: Use AC_COMPILE_IFELSE for the monotonic
1115         clock test.  (#362918, Han-Wen Nienhuys, Jeremy Lainé)
1116
1117         * glib/gstring.c: Move documentation inline.
1118
1119 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
1120
1121         * glib/giochannel.h: Make ref_count a gint to avoid
1122         compiler warnings.  (#321977, Andrew Paprocki)
1123
1124         * configure.in: On Solaris, set CFLAGS and LDFLAGS that
1125         work both with Sun cc and gcc.  (#315061, Lazlo Peter)
1126
1127         * glib/gspawn.c: Undefine READ_OK to fix the build on
1128         old versions of Darwin.  (#327800)
1129
1130         * glib/glib.symbols:
1131         * glib/gstring.[hc] (g_string_chunk_clear): Add a function
1132         for clearing a GStringChunk. (#364608, Matt Barnes)
1133
1134         * glib/guniprop.c (interval_compare): Avoid a compiler
1135         warning.
1136
1137         * glib/gspawn.c (do_exec): Call set_cloexec() with
1138         the right parameters.  (#386252, Guillaume Desmottes)
1139
1140 2006-12-15  Matthias Clasen  <mclasen@redhat.com>
1141
1142         Fix #357585, Padraig O'Briain.
1143
1144         * configure.in: Check for fdwalk.
1145
1146         * glib/gspawn.c (do_exec): Use fdwalk() to close all
1147         file descriptors.
1148
1149         * glib/gspawn.c (fdwalk): Fallback implementation of
1150         fdwalk.
1151
1152 2006-12-14  Matthias Clasen  <mclasen@redhat.com>
1153
1154         * glib/gconvert.c (open_converter): Don't use alloca
1155         and avoid allocating memory for small keys that are
1156         already cached.  (#172406, Morten Welinder)
1157
1158         * glib/gmain.c (g_child_watch_add_full): Improve the docs.
1159         (#345569, Tim-Philipp Müller)
1160
1161         * glib/gkeyfile.c (g_key_file_add_group): If the group
1162         is already there, make it current.  (#385910, Joe Halliwell)
1163
1164         * tests/keyfile-test.c: Add a test for duplicate groups/keys.
1165
1166 2006-12-13  Matthias Clasen  <mclasen@redhat.com>
1167
1168         * m4macros/glib-gettext.m4: Require AC_CANONICAL_HOST in
1169         GLIB_WITH_NLS.  (#385132, Laszlo Peter)
1170
1171 2006-12-12  Matthias Clasen  <mclasen@redhat.com>
1172
1173         * configure.in: Add a check for broken poll on Mac OS X.
1174
1175         * glib/gmain.c: Use poll emulation on OS X.  (#302672, Toby Peterson,
1176         patch by Dave Vasilevsky)
1177
1178 2006-12-11  Matthias Clasen  <mclasen@redhat.com>
1179
1180         * glib/gatomic.c: Don't use local numeric labels in
1181         inline assembler on AIX.  (#316434, Hans Rosenfeld)
1182
1183         * glib/gunicode.h (g_utf8_next_char): Cast to const char *,
1184         not char *.  (#138153, Nikolai Weibull)
1185
1186 Wed Nov 22 16:09:13 2006  Tim Janik  <timj@gtk.org>
1187
1188         * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
1189         Hasselmann in bug #335341, fixes bug #335853.
1190
1191 2006-11-15  Matthias Clasen  <mclasen@redhat.com>
1192
1193         * m4macros/glib-gettext.m4: Apply a patch from James
1194         Henstridge for compatibility with automake 2.60 (#343825)
1195
1196 2006-11-14  Behdad Esfahbod  <behdad@gnome.org>
1197
1198         * sanity_check: Replace bash-specific == with sh-understood =.
1199         Fixes bug #373864.
1200
1201 2006-11-05  Hans Breuer  <hans@breuer.org>
1202
1203         * glib/makefile.msc.in : glib/ version not the gobject/
1204         one I accidentially commited. Fixes bug #371074.
1205
1206 2006-11-05  Tor Lillqvist  <tml@novell.com>
1207
1208         * makefile.mingw
1209         * gmodule/makefile.mingw.in
1210         * glib/makefile.mingw.in
1211         * gobject/makefile.mingw.in
1212         * gthread/makefile.mingw.in
1213         * tests/makefile.mingw.in: Remove from CVS. Haven't been
1214         maintained or distributed for long.
1215
1216 2006-10-26  Pascal Terjan  <pterjan@linuxfr.org>
1217
1218         * glib/libcharset/localcharset.c: Fix small leak on failed
1219         realloc in _g_locale_get_charset_aliases (#338582)
1220
1221 2006-10-16  Behdad Esfahbod  <behdad@gnome.org>
1222
1223         * glib/gnulib/Makefile.am: Add $(GLIB_DEBUG_FLAGS).  (#362543,
1224         Peter Kjellerstedt)
1225
1226 2006-10-15  Sebastian Wilhelmi  <seppi@seppi.de>
1227
1228         * tests/Makefile.am: Compile errorcheck-mutex-test with thread
1229         libraries explicitly. (#74748, Javier Villavicencio)
1230
1231 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
1232
1233         Add a way to obtain Unicode script information.  (#348348,
1234         Marco Barisione)
1235
1236         * glib/glib.symbols:
1237         * glib/gunicode.h: Add GUnicodeScript enumeration and
1238         g_unichar_get_script.
1239
1240         * glib/guniprop.c: Implement g_unichar_get_script.
1241
1242         * glib/gscripttable.h: Generated private header containing
1243         script tables.
1244
1245         * glib/gen-script-table.pl: Script to generate gscripttable.h.
1246
1247         * glib/Makefile.am: Update
1248
1249 2006-10-08  Matthias Clasen  <mclasen@redhat.com>
1250
1251         * tests/run-markup-tests.sh: Small portability fix.  (#347944,
1252         Dan McMahill)
1253
1254 2006-10-07  Tor Lillqvist  <tml@novell.com>
1255
1256         * glib/gwin32.c (get_package_directory_from_module)
1257         (g_win32_get_package_installation_directory): g_strdup the keys
1258         that we are passed before adding them to the hash tables, to guard
1259         against the caller freeing them. (#355955, Andreas Köhler)
1260
1261 2006-10-06  Matthias Clasen  <mclasen@redhat.com>
1262
1263         * glib/gtimer.c: Fix a typo.  (#359190)
1264
1265 2006-10-02  Behdad Esfahbod  <behdad@gnome.org>
1266
1267         * glib/Makefile.am:
1268         * gobject/Makefile.am:
1269         Include pltcheck.sh in EXTRA_DIST, and remove redefinition of TESTS.
1270         (#358966)
1271
1272 2006-10-01  Matthias Clasen  <mclasen@redhat.com>
1273
1274         * glib/gtimer.c (g_usleep): Use nsleep to implement
1275         g_usleep on AIX.  (#321974, Andrew Paprocki)
1276
1277         * configure.in: Check for nsleep
1278
1279         * glib/gmain.c: Fix typos in doc comments.
1280         (#358421, Tom Tromey)
1281
1282 2006-09-30  Matthias Clasen  <mclasen@redhat.com>
1283
1284         * glib/pltcheck.sh: A script to check PLT entries.
1285         * glib/Makefile.am (TESTS): Run pltcheck.sh
1286
1287         * glib/*: Fix includes to correct some issues with
1288         PLT entries.  (#354522, Behdad Esfahbod)
1289
1290 2006-09-17  Hans Breuer  <hans@breuer.org>
1291
1292         * glib/makefile.msc.in gobject/makefile.msc.in : better filtering
1293         of G_GNUC_* stuff when generating .def files. Now also works with
1294         newer (less tolerant) linkers, e.g. from vc2500e
1295
1296 2006-09-10  Matthias Clasen  <mclasen@redhat.com>
1297
1298         * glib/gbacktrace.c: Assume string.h is available.
1299         (#354523, Behdad Esfahbod)
1300
1301         * configure.in: Bump version to 2.13.0
1302
1303         * glib/glib.symbols:
1304         * glib/gmain.[hc]: Add functions to create approximate
1305         timeouts.  (#353942, Arjan van de Ven)
1306
1307         * glib/gstdio.c (g_rename): Initialize save_errno.
1308         (#355206, Mike Edenfield)
1309
1310 2006-09-03  Matthias Clasen  <mclasen@redhat.com>
1311
1312         * glib/gerror.c: Allocate GErrors using the slice allocator.
1313         (#354054, Matt Barnes)
1314
1315 2006-09-02  Matthias Clasen  <mclasen@redhat.com>
1316
1317         * glib/gtimer.c: Forgotten HAVE_CLOCK_GETTIME.
1318
1319 2006-09-02  Tor Lillqvist  <tml@novell.com>
1320
1321         * glib/gutils.c (g_get_any_init_do): Correct C99ism (mixed
1322         declarations and code) in Win32 ifdef branch. (#353903, Mike
1323         Edenfield)
1324
1325 2006-09-01  Abel Cheung  <abel@oaka.org>
1326
1327         * configure.in: Added 'dz' 'hy' to ALL_LINGUAS.
1328
1329 2006-09-01  Matthias Clasen  <mclasen@redhat.com>
1330
1331         * configure.in: Check for CLOCK_MONOTONIC.
1332
1333         * glib/gtimer.c: Only use clock_gettime if we
1334         have a monotonic clock.
1335
1336 2006-08-31  Matthias Clasen  <mclasen@redhat.com>
1337
1338         * configure.in: Add missing includes to a few test
1339         programs.  (#353580, Chris Wilson)
1340
1341 2006-08-30  Matthias Clasen  <mclasen@redhat.com>
1342
1343         * glib/gmarkup.c (g_markup_vprintf_escaped): Don't call
1344         va_end on caller-provided va_args.  (#353584, Chris Wilson)
1345
1346 2006-08-29  Tor Lillqvist  <tml@novell.com>
1347
1348         Remove support for Windows 9x/ME, as will be done also in Pango
1349         and GTK+. GTK+ hasn't worked on Win9x since 2.6 or 2.8 anyway, so
1350         it's pretty pointless to keep the Win9x code in here either. If
1351         somebody is interested, the code can always be found in older GLib
1352         versions, and in CVS.
1353
1354         * glib/gdir.c
1355         * glib/gfileutils.c
1356         * glib/gspawn-win32-helper.c
1357         * glib/gspawn-win32.c
1358         * glib/gstdio.c
1359         * glib/gutils.c
1360         * glib/gwin32.c
1361         * glib/gwin32.h: Remove the G_WIN32_IS_NT_BASED() and
1362         G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
1363         branches, and any variables or static functions used only by the
1364         Win9x branches.
1365
1366         * glib/gwin32.c (g_win32_windows_version_init): Call g_error() if
1367         run on Win9x.
1368
1369 2006-08-27  Matthias Clasen  <mclasen@redhat.com>
1370
1371         * configure.in: Fix pthread compiler flag detection.
1372
1373         * glib/gtimer.c: Use Posix monotonic clocks instead of
1374         gettimeofday when available.  (#336114, William Jon McCann)
1375
1376 2006-08-26  Matthias Clasen  <mclasen@redhat.com>
1377
1378         * glib/gutils.h:
1379         * glib/gscanner.c: Fix some typos.  (#351741, Kjartan Maraas)
1380
1381 2006-08-25  Matthias Clasen  <mclasen@redhat.com>
1382
1383         * configure.in: Fix the pthread compiler flag detection.
1384
1385         * glib/gunicode.h:
1386         * glib/gutf8.c (_g_utf8_make_valid): Rename make_valid_utf8
1387         from gconvert.c, move it to gutf8.c, and export it privately.
1388
1389         * glib/gconvert.c (g_filename_display_name): Adjust callers.
1390
1391         * glib/gkeyfile.c: Use _g_utf8_make_valid() in a number of
1392         places to ensure error messages are valid UTF-8.  (#351853,
1393         Simon Budig)
1394
1395 2006-08-22  Matthias Clasen <mclasen@redhat.com>
1396
1397         * Branch for 2.12