changed assertion messages, so older emacsen can also detect failing
[platform/upstream/glib.git] / ChangeLog
1 2008-08-15 12:41:26  Tim Janik  <timj@imendio.com>
2
3         * glib/gtestutils.c: changed assertion messages, so older emacsen
4         can also detect failing source file and line, fixes:
5         Bug 502498 – Test framework assertion failures should follow gcc error format
6
7 2008-08-14  Matthias Clasen  <mclasen@redhat.com>
8
9         Bug 547832 – gtk+-2.12.11 fails to build - AC_PROG_MMAP too strict,
10         and unnecessary
11
12         * configure.in: Be a little bit more forgiving when checking
13         for mmap. Patch by Peter O'Gorman
14
15 2008-08-13  Matthias Clasen  <mclasen@redhat.com>
16
17         Bug 547337 – G_DISABLE_DEPRECATED breaks tests build
18
19         * tests/testglib.c: Protect deprecated API by ifdefs.
20         Patch by Kalle Vahlman
21
22 2008-08-13  Matthias Clasen  <mclasen@redhat.com>
23
24         Bug 547637 – unconditional #include of sys/statfs.h in configure
25         impedes detection of statfs things if non-existant
26
27         * configure.in: Protect the statfs.h include by guards.
28
29 2008-08-12  Federico Mena Quintero  <federico@novell.com>
30
31         * glib/gi18n-lib.h: In the #error about having to define
32         GETTEXT_PACKAGE, add a hint about a possibly-missing config.h.
33
34 2008-08-11  Behdad Esfahbod  <behdad@gnome.org>
35
36         Bug 547200 – g_utf8_find_next_char() issues
37
38         * glib/gutf8.c: Improve wording about @end arguments in str funcs.
39
40 2008-08-10  Behdad Esfahbod  <behdad@gnome.org>
41
42         * glib/gutf8.c: Fix docs to use "nul-terminated" consistently.
43
44 2008-08-08  Ryan Lortie  <desrt@desrt.ca>
45
46         Fix 'fail' markup test cases to -not- be valid XML 1.1.
47
48         * tests/markups/fail-32.gmarkup: change &#x10; to &#x0; since the
49         former is no longer a failure.
50
51 2008-08-08  Ryan Lortie  <desrt@desrt.ca>
52
53         Bug 546876 - Modify GMarkup parser to accept &#x1; .. &#x1f;
54
55         * glib/gmarkup.c: previously the parser only accepted character
56         references for \t \n and \r (as per XML 1.0); now it accepts all
57         of &#x1; .. &#x1f;.
58
59 2008-08-07  Tor Lillqvist  <tml@novell.com>
60
61         * configure.in: Output comment clarifying GPid semantics to
62         glibconfig.h.
63
64         * glibconfig.h.win32.in: Ditto here.
65
66 2008-08-04  Matthias Clasen  <mclasen@redhat.com>
67
68         Bug 546329 – API docs for g_utf8_normalize() are incorrect
69
70         * glib/gunidecomp.c: Remove inaccurate information about
71         g_utf8_collate() from g_utf8_normalize() docs.
72         Pointed out by Sven Neumann.
73
74 2008-08-04  Tor Lillqvist  <tml@novell.com>
75
76         * glibconfig.h.win32.in: Make the union _GSystemThread::data array
77         8 bytes on Win64. Not that it matters as the union contains a
78         pointer also anyway, but for equivalence with the configure-
79         generated glibconfig.h
80
81 2008-08-04  Tor Lillqvist  <tml@novell.com>
82
83         * glib/gmain.c (g_get_current_time): MSDN says: "Do not cast a
84         pointer to a FILETIME structure to either a LARGE_INTEGER* or
85         __int64* value because it can cause alignment faults on 64-bit
86         Windows." So don't do that then. Indeed the code did work randomly
87         on Win64 when compiled with optimisation.
88
89 2008-08-04  Tor Lillqvist  <tml@novell.com>
90
91         * glib/giowin32.c
92         * glib/gmain.c
93         * glib/gspawn-win32.c
94         * glib/gspawn-win32-helper.c: Change gssize casts introduced on
95         2008-07-28 to gintptr casts now that we have that. gssize is as
96         such the same as gintptr on both 32- and 64-bit Windows, but the
97         gintptr name indicates that it is used to hold pointers, i.e. also
98         HANDLEs.
99
100         * tests/testglib.c: Avoid warning on Win64 by using gintptr cast
101         instead if long cast.
102
103 2008-08-04  Matthias Clasen  <mclasen@redhat.com>
104
105         * configure.in: Bump version
106
107 2008-08-04  Matthias Clasen  <mclasen@redhat.com>
108
109         * === Released 2.17.6 ===
110
111 2008-08-04  Matthias Clasen  <mclasen@redhat.com>
112
113         * configure.in: Bump version
114
115         * === Released 2.17.5 ===
116
117         * NEWS: Updates
118
119 2008-08-02  Tor Lillqvist  <tml@novell.com>
120
121         * glibconfig.h.win32.in: Add gintptr and guintptr typedefs here,
122         too, appropriately ifdeffed for 32/64 bit, gcc/MSVC. Add 64-bit
123         versions of GPOINTER_TO_INT(), GPOINTER_TO_UINT() and vice versa,
124         too.
125         
126 2008-08-01  Matthias Clasen  <mclasen@redhat.com>
127
128         * NEWS: Updates
129         
130 2008-08-01  Matthias Clasen  <mclasen@redhat.com>
131
132         Bug 545798 – "Since: 2.18" mark is missing in g_set_error_literal
133         documentation
134
135         * glib/gerror.c (g_set_error_literal): Add a Since: marker.
136         Pointed out by Kouhei Sutou
137
138 2008-07-30  Tor Lillqvist  <tml@novell.com>
139
140         Bug 545485 - Implicit declaration of utime()
141
142         * glib/gstdio.c: Include <utime.h> on POSIX.
143
144 2008-07-28  Tor Lillqvist  <tml@novell.com>
145
146         * configure.in: Output to glibconfig.h typedefs for gintptr as the
147         signed integer type that can hold a pointer, and guintptr as the
148         corresponding unsigned type. These types are portable equivalents
149         to intptr_t and uintptr_t which are not available in all
150         compilers.
151
152         For all current platforms, they will presumably end up as the same
153         types as gssize and gsize, but in theory size_t can be smaller
154         than intptr_t. Also, the intended use case for gintptr and
155         guintptr is different from that of gssize and gsize. As the name
156         indicates, gintptr is for when one wants an integer type that can
157         hold a pointer, and gsize is for when one wants an integer type
158         that can hold the value of the sizeof operator.
159
160 2008-07-28  Matthias Clasen  <mclasen@redhat.com>
161
162         Bug 544465 – gmarkup makes it hard to use pre-rolled parsers
163
164         * glib/glib.symbols:
165         * glib/gmarkup.[hc]: Add g_markup_context_get_user_data.
166         Patch by Ryan Lortie
167
168 2008-07-28  Tor Lillqvist  <tml@novell.com>
169
170         * glib-zip.in: Message catalogs should always get installed into
171         share/locale nowadays, don't bother with the convoluted logic
172         checking if they are in lib/locale instead. Put the correct helper
173         programs in the zipfile.
174
175 2008-07-28  Tor Lillqvist  <tml@novell.com>
176
177         Fix problems on 64-bit Windows. Avoid warnings, some of which
178         indicated actual problems, some which were just annoyances. 
179
180         Where casts to an integer type are needed for pointers, use
181         gssize. Technically intptr_t would be the more proper type, but we
182         still want to be compilable with MSVS6 and 7 which don't have
183         intptr_t. MSVS8 and 9 do have intptr_t, but in <crtdefs.h>, not
184         <stdint.h>.
185
186         Use %p to print out handles. Use gssize casts when assigning
187         GPollFD::fd fields.
188
189         Use G_GSIZE_FORMAT when printing size_t values.
190         
191         * configure.in: Define automake conditional G_OS_WIN32_X64 which
192         is true on Win64.
193
194         * glib/giochannel.h: Use slightly different prototype for
195         g_io_channel_win32_new_messages() on Win64 with gsize instead of
196         guint.
197
198         * glib/giowin32.c
199         * glib/gmain.c
200         * glib/gspawn-win32.c
201         * tests/testglib.c: Generic changes as described above.
202
203         * glib/gmain.h: Don't bother mentioning GIMP in comment.
204
205         * glib/grel.c (tuple_hash_2): Use all bits of pointer.
206
207         * glib/gspawn-win32.c
208         * glib/gspawn-win32-helper.c: Use gssize types in the
209         communication between parent and helper process, so that we can
210         pass process handles, which are pointers, also on Win64.
211
212         * glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits on
213         Win64 so we can't pass the address of a GTimeVal::tv_sec which is
214         a long directly to gmtime(). On the other hand, changing
215         GTimeVal::tv_sec to be a gint64 on Win64 is not really feasible
216         either, as that would then require changes in much code that uses
217         GTimeVals.
218
219         * glib/gspawn-win32.c
220         * glib/Makefile.am: Call the helper programs
221         gspawn-win64-helper.exe and gspawn-win64-helper-console.exe on
222         Win64, to avoid potential risk of running a 32-bit version of the
223         helper.
224
225 2008-07-27  Tor Lillqvist  <tml@novell.com>
226
227         * glib/glib.symbols
228         * glib/gconvert.c
229         * glib/gdir.c
230         * glib/gfileutils.c
231         * glib/giowin32.c
232         * glib/gspawn-win32.c
233         * glib/gutils.c
234         * glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on
235         _WIN64. As there hasn't been any widely deployed 64-bit Windows
236         builds of the really old GLib (pre-2.8.1) versions those refer to,
237         there is no need to have the "ABI compatibility" versions in the
238         DLL.
239
240         * glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too.
241
242 2008-07-27  Tor Lillqvist  <tml@novell.com>
243
244         * configure.in: Set LIB_EXE_MACHINE_FLAG to either X86 or X64 on
245         Windows. AC_SUBST it.
246
247         * glib/Makefile.am (glib-2.0.lib): Pass appropriate -machine flag
248         to lib.exe.
249
250 2008-07-25 15:47:08  Tim Janik  <timj@imendio.com>
251
252         * glib/tests/testing.c (test_random_conversions): added new sample
253         test to prepare for extended range random tests.
254
255 2008-07-24  Tor Lillqvist  <tml@novell.com>
256
257         * glib/gdir.c: Include <stdio.h> for FILENAME_MAX on newer mingw
258         installations.
259
260 2008-07-24  Tor Lillqvist  <tml@novell.com>
261
262         * glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of
263         the C99 "zu".
264
265 2008-07-24  Tor Lillqvist  <tml@novell.com>
266
267         * configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to
268         glibconfig.h using the same two phase code as for the other
269         defines in it. Can't check enable_included_printf directly in the
270         shell code that is the first argument to AC_CONFIG_COMMANDS().
271
272         Preset glib_cv_stack_grows=no on Windows to help
273         cross-compilation.
274
275         * configure.in: Enhancements for 64-bit Windows: 
276
277         Handle also size_t being larger than long. It is long long
278         a.k.a. __int64 on the LLP64 Win64.
279
280         Set glib_void_p and glib_long correctly. Their assignments were
281         crossed. It hasn't mattered on LP64 platforms like all (?) 64-bit
282         UNIXes, but on the LLP Win64 it was wrong.
283
284         * glibconfig.h.win32.in: Check also _WIN64.
285
286 2008-07-24  Tor Lillqvist  <tml@novell.com>
287
288         * glibconfig.h.win32.in: Patch for 64-bit Windows from Richard
289         Hult.
290
291 2008-07-23  Matthias Clasen  <mclasen@redhat.com>
292
293         544088 – option_test_LDADD is left in tests/Makefile.am
294
295         * tests/Makefile.am: Remove leftovers. 
296         Noticed by Hiroyuki Ikezoe
297
298 2008-07-22  Mathias Hasselmann  <mathias@openismus.com>
299
300         Set LANG variable for group caption tests to get reproducable results.
301
302         * glib/tests/option-context.c (group_captions()):
303           Set LANG variable to C in the forked process to get reproducable.
304           Don't silence the forked process in --verbose mode to support
305           debugging.
306
307 2008-07-21  Matthias Clasen  <mclasen@redhat.com>
308
309         * configure.in: Fix detection of struct statfs fields.
310
311 2008-07-21  Matthias Clasen  <mclasen@redhat.com>
312
313         * configure.in: Bump version
314
315 2008-07-21  Matthias Clasen  <mclasen@redhat.com>
316
317         * === Released 2.17.4 ===
318
319         * configure.in: Bump version
320
321         * NEWS: Updates
322
323 2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
324
325         * glib/gtimer.c (g_time_val_to_iso8601): Use the right format
326         string to get leading zeros when converting to ISO 8601. (Sven
327         Herzberg)
328
329 2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
330
331         * glib/gbookmarkfile.c:
332         (bookmark_app_info_new): Do not set the timestamp value
333         using time(), as it will be overwritten anyway. (#535223,
334         Michael Meeks)
335
336         (parse_application_element),
337         (bookmark_app_info_dump): Support the "modified" attribute,
338         which takes an ISO-formatted string instead of a Unix time
339         stamp, to keep the number of g_strdup_printf() calls to a
340         minimum.
341
342         * glib/gtimer.c:
343         (g_time_val_to_iso8601): Do not use strftime(): we know
344         the format and contents of the ISO 8601 date format we
345         use.
346
347         * tests/bookmarks/valid-03.xbel: Add a test file for the
348         modified attribute.
349
350 2008-07-19  Matthias Clasen  <mclasen@redhat.com>
351
352         * glib/tests/Makefile.am:
353         * glib/tests/array-test.c: Move array tests here.
354
355         * tests/Makefile.am:
356         * tests/array-test.c: Removed.
357
358 2008-07-20  Tor Lillqvist  <tml@novell.com>
359
360         * glib/giowin32.c (g_io_win32_prepare): Patch from Yu Kuan that
361         makes watched sockets behave much better. See gtk-devel-list
362         archives from May for the (unfortunately rather meager)
363         discussion. This patch fixes the presented simple test program,
364         which reasonably could be expected to work.
365
366 2008-07-18  Matthias Clasen  <mclasen@redhat.com>
367
368         * NEWS: Updates
369
370 2008-07-18  Matthias Clasen  <mclasen@redhat.com>
371
372         Bug 536996 – Missing noop i18n macro equivalent to C_
373
374         * glib/glib.symbols:
375         * glib/gstrfuncs.[hc]: Add g_dpgettext2() which is a 
376         variant of g_dpgettext() taking context and id as separate
377         arguments.
378
379         * glib/gi18n-lib.h:
380         * glib/gi18n.h: Add an NC_() macro that is to C_() as N_()
381         is to _().
382
383 2008-07-18  Matthias Clasen  <mclasen@redhat.com>
384
385         * tests/Makefile.am:
386         * tests/keyfile-test.c:
387         * tests/option-test.c: Remove
388         * glib/tests/option-context.c: Add all GOptionContext tests here.
389         * glib/tests/keyfile.c: Add all GKeyFile tests here.
390
391 2008-07-16  Matthias Clasen  <mclasen@redhat.com>
392
393         Bug 334234 – "printf" format error
394
395         * glib/gslice.c (mem_error): Avoid a warning when printing a pid_t.
396         Pointed out by Morten Welinder. 
397
398 2008-07-16  Matthias Clasen  <mclasen@redhat.com>
399
400         Bug 406120 – g_ascii_strtod
401
402         * glib/gstrfuncs.c (g_ascii_strtod): Document that this
403         function does accept localized infinities and nans. Reported
404         by Morten Welinder.
405
406 2008-07-16  Matthias Clasen  <mclasen@redhat.com>
407
408         Bug 482413 - get_contents_stdio -- overflow and memory corruption
409
410         * glib/gfileutils.c (get_contents_stdio): Detect overflow and
411         error out. Reported by Morten Welinder. 
412
413 2008-07-16  Matthias Clasen  <mclasen@redhat.com>
414
415         Bug 542332 – small fix for error message in GMarkup
416         
417         * glib/gmarkup.c: Improve an error message. 
418         Patch by Ryan Lortie
419
420 2008-07-14  Matthias Clasen  <mclasen@redhat.com>
421
422         Bug 428048 – 2 of 51 tests fail on Solaris
423
424         * tests/iochannel-test.c: Ignore the error if iconv doesn't
425         support EUC-JP.
426
427 2008-07-14  Matthias Clasen  <mclasen@redhat.com>
428
429         * tests/option-test.c: Print error messages when something fails.
430
431 2008-07-14  Matthias Clasen  <mclasen@redhat.com>
432
433         Bug 467707 – test_iconv_state() in tests/convert-test.c fails on AIX 5.3
434
435         * tests/convert-test.c (test_iconv_state): Skip this test if
436         CP1255 is not supported.  
437
438 2008-07-10  Ryan Lortie  <desrt@desrt.ca>
439
440         * docs/reference/glib/glib-sections.txt:
441         * glib/glib.symbols:
442         * glib/gmarkup.c:
443         * glib/gmarkup.h: add functions g_markup_parse_context_{push,pop} in
444         order to provide some small hooks on which to build easy-to-use
445         subparsers.
446  
447         * glib/tests/Makefile: add new test
448         * glib/tests/markup-subparser.c: new test for subparsers
449  
450         Fixes bug #337518.
451
452 2008-07-05  Matthias Clasen  <mclasen@redhat.com>
453
454         Bug 528317 – GRegex does not allow recursion limit
455
456         * glib/pcre/Makefile.am: Set a sane default recursion limit
457         of 8192 instead of 1000000. 
458         Patch by Mart Raudsepp.
459
460 2008-07-04  Behdad Esfahbod  <behdad@gnome.org>
461
462         Bug 541507 – Ambiguous description of assigned characters in the Glib
463         Unicode Manipulation reference
464
465         * glib/guniprop.c
466         (g_unichar_isgraph): Return true for PrivateUse too.
467         (g_unichar_isprint): Return true for PrivateUse too.
468         (g_unichar_isdefined): Return false for Surrogate.
469
470 2008-07-04  Michael Natterer  <mitch@imendio.com>
471
472         Bug 541208 – Functions to easily install and use signals without
473         class struct slot
474
475         * tests/gobject/override.c: added tests for the new gsignal
476         overriding and chaining APIs.
477
478 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
479
480         * === Released 2.17.3 ===
481
482 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
483
484         * configure.in: Better endianness fix. From Tomas Mraz.
485
486 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
487
488         * NEWS: Updates
489
490 2008-07-02  Colin Walters  <walters@redhat.com>
491
492         * gio/gcontenttype.c: Use UNLOCK to unlock, not LOCK.
493
494 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
495
496         * configure.in: Add a check for structfs.f_bavail
497
498 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
499
500         * glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
501         check in both versions. Proposed by Patrik Olsson in bug 540545.
502
503 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
504
505         * configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
506         Add a _cv_ to some variable names, since autoconf wants it.
507
508 2008-06-30  Matthias Clasen  <mclasen@redhat.com>
509
510         * glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
511         fix a heap-based buffer overflow.
512
513 2008-06-29  Björn Lindqvist  <bjourne@gmail.com>
514
515         Bug 539626 – Update docstrings for g_object_freeze_notify and
516         g_object_thaw_notify
517
518         * gobject/gobject.c: Explain how the freeze count works.
519
520 2008-06-26  Cody Russell  <bratsche@gnome.org>
521
522         * configure.in: Add #define GLIB_USING_SYSTEM_PRINTF
523         to glibconfig.h, which specifies if GLib is using
524         the system printf functions for g_print*().
525         (#539999, by Tim-Philipp Müller)
526
527 2008-06-24  Paolo Borelli  <pborelli@katamail.com>
528
529         Bug 539770 - migrate gstrfunc unit tests to gtest
530
531         * tests/strfunc-test.c:
532         * tests/testglib.c:
533         * tests/strtoll-test.c:
534         * tests/strtod-test.c:
535         * tests/string-test.c:
536         * tests/Makefile.am:
537         Removed old tests.
538
539         * glib/tests/fileutils.c:
540         * glib/tests/strfuncs.c:
541         * glib/tests/Makefile.am:
542         Added all the old tests migrated to the new unit test framework
543         and add new unit tests for some of the functions.
544
545 2008-06-23  Kristian Rietveld  <kris@imendio.com>
546
547         * gobject/glib-mkenums.in: introduce an ENUMPREFIX substitution.
548
549         * gio/gioenumtypes.h.template: use @ENUMPREFIX@ instead of
550         hard coding "G" as prefix.
551
552 2008-06-22  Stefan Kost  <ensonic@users.sf.net>
553
554         * glib/gurifuncs.c:
555           Fix markup in comment.
556
557 2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
558
559     * *.[ch]: Include "config.h" instead of <config.h>
560     Command used:
561     find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
562     Rubberstamped by Mitch
563
564 2008-06-20  Sebastian Dröge  <slomo@circular-chaos.org>
565
566         Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
567
568         * configure.in:
569         * glib/gthread.h: Revert previous patch as it doesn't improve the
570         situation and results in other warnings.
571
572 2008-06-16  Christian Persch  <chpe@gnome.org>
573
574         Bug 539123 – annotate g_d[n]gettext with G_GNUC_FORMAT
575
576         * glib/gstrfuncs.h:
577         * glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT. 
578
579 2008-06-19  Tor Lillqvist  <tml@novell.com>
580
581         Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
582
583         * glib/gspawn-win32-helper.c (main): Write also the exit status of
584         the spawned process to the error report pipe. Patch by Hiroyuki
585         Ikezoe.
586
587 2008-06-19  Matthias Clasen  <mclasen@redhat.com>
588
589         Bug 535949 – annotate g_strip_context and g_dpgettext with
590         G_GNUC_FORMAT
591
592         * glib/gstrfuncs.h:
593         * glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT.
594         Patch by Christian Persch
595
596 2008-06-19  Matthias Clasen  <mclasen@redhat.com>
597
598         Bug 539067 – The document g_io_channel_win32_new_fd() says that "Your
599         code should call only g_io_channel_read()." but gio_channel_read() is
600         deprecated
601
602         * glib/giochannel.h: Fix a reference in a comment
603         Patch by Hiroyuki Ikezoe 
604
605 2008-06-18  Matthias Clasen  <mclasen@redhat.com>
606
607         Bug 537635 – Corrections and improvements to
608         g_time_val_from_iso8601()/g_time_val_to_iso8601()
609
610         * glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather 
611         than 1 when a fraction of a second is not specified
612         (g_time_val_from_iso8601): calculate a fraction of a second
613         correctly even in case it does not happen to consist of exactly 
614         six digits; do not allow random data after the ISO 8601 string,
615         only whitespace
616         (make g_time_val_to_iso8601): support fractions of a second
617         Patch by Peter Kjellerstedt
618
619         * tests/testglib.c: Update to match
620
621 2008-06-16  Christian Persch  <chpe@gnome.org>
622
623         * glib/gbookmarkfile.c
624         * glib/gconvert.c
625         * glib/gfileutils.c
626         * glib/giochannel.c
627         * glib/giounix.c
628         * glib/giowin32.c
629         * glib/gkeyfile.c
630         * glib/gregex.c
631         * glib/gshell.c
632         * glib/gspawn-win32.c
633         * glib/gutf8.c: Use g_set_error_literal where appropriate. Patch from 
634         bug #535947.
635
636 2008-06-16  Christian Persch  <chpe@gnome.org>
637
638         * docs/reference/glib/glib-sections.txt:
639         * glib/gerror.c:
640         * glib/gerror.h:
641         * glib/glib.symbols: Add g_set_error_literal. Bug #535947.
642
643 2008-06-16  Michael Natterer  <mitch@imendio.com>
644
645         * glib/goption.c (dgettext_swapped): changed return value to
646         const gchar* to fix warning.
647
648 2008-06-14  Matthias Clasen  <mclasen@redhat.com>
649
650         * glib/gtestutils.c: Move docs around
651
652         * glib/gchecksum.h: Add docs.
653
654 2008-06-13  Matthias Clasen  <mclasen@redhat.com>
655
656         Bug 538119 – glib's mainloop leaks a pipe to sub-processes
657
658         * glib/gmain.c (g_main_context_init_pipe): Don't leak the
659         pipes to child processes. Patch by Thiago Macieira.
660
661 2008-06-13  Hans Breuer  <hans@breuer.org>
662
663         * glib/gstrfuncs.c : to get the default translation target on
664         win32 use g_win32_get_locale() instead of setlocale(LS_MESSAGES,NULL)
665         Fixes bug #538044
666
667         * glib/makefile.msc.in gio/makefile.msc : updated
668
669 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
670
671         * configure.in: Bump version
672         
673         * === Released 2.17.2 ===
674
675         * configure.in: Fix LINGUAS conversion
676
677 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
678
679         * configure.in: Bump version
680
681         * === Released 2.17.1 ===
682
683 2008-06-12  Matthias Clasen  <mclasen@redhat.com>
684
685         * glib/gtestutils.c: Documentation fixups
686
687 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
688
689         * glib/glist.c: Tiny doc fix
690
691 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
692
693         * NEWS: Updates
694
695 2008-06-11  Behdad Esfahbod  <behdad@gnome.org>
696
697         Bug 503071 – Application direction changes to right to left even if
698         theres no translation
699
700         * glib/gi18n-lib.h:
701         * glib/glib.symbols:
702         * glib/gstrfuncs.h:
703         * glib/gstrfuncs.c:
704         Add new functions g_dgettext() and g_dngettext().
705
706         * glib/gutils.c (glib_gettext):
707         * glib/gfileutils.c (g_format_size_for_display):
708         * glib/goption.c (dgettext_swapped):
709         Use the new functions.
710
711 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
712
713         Bug 502511 – g_assert_cmphex prints invalid message
714
715         * glib/gtestutils.c (g_assertion_message_cmpnum): Actually print
716         hex numbers in hex. 
717         Pointed out by Tor Lillqvist
718
719 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
720
721         Bug 338162 – [PATCH] Use po/LINGUAS
722
723         * po/LINGUAS: New file
724         * po/Makefile.in.in: Dist LINGUAS
725         * configure.in: Use po/LINUAS
726         Patch by Thomas Andersen
727
728 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
729
730         Bug 314453 – Nautilus crashes in Solaris when browsing the attached
731         file
732
733         * glib/gunicollate.c (g_utf8_collate_key): Handle strfxrm returning
734         -1 a little better. Problem pointed out by Takao Fujiwara
735
736 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
737
738         Bug 529321 – make check fails in glib/pcre
739
740         * glib/pcre/Makefile.am: include Makefile.decl to fix 'make check'.
741         Patch by Hiroyuki Ikezoe
742
743 2008-06-11  Tor Lillqvist  <tml@novell.com>
744
745         * glib/giowin32.c: g_win32_error_message() works fine for the
746         Winsock WSA* error codes, too, so drop the winsock_error_message()
747         function.
748
749 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
750
751         Bug 455215 – g_get_user_special_dir: no reference about
752         G_USER_DIRECTORY_DOWNLOAD fallback to $HOME/Desktop if 
753         xdg-user-dirs is not in use
754
755         * glib/gutils.c (g_get_user_special_dir): Improve the docs.
756         Proposed by Luca Ferretti
757
758 2008-06-11  Matthias Clasen  <mclasen@redhat.com>
759
760         Bug 498732 – g_key_file_to_data cannot fail
761
762         * glib/gkeyfile.c (g_key_file_to_data): Improve the docs.
763         Proposed by Christian Persch
764
765 2008-06-11  Ross Burton  <ross@burtonini.com>
766
767         Bug 511367 - add g_file_make_directory_with_parents.
768         
769         * gio/gfile.c:
770         * gio/gfile.h:
771         * gio/gio.symbols: Add g_file_make_directory_with_parents.
772         
773 2008-06-11  Sebastian Dröge  <slomo@circular-chaos.org>
774
775         Bug 531900 – Use __builtin_offsetof for G_STRUCT_OFFSET if building
776         with gcc 4.0 or newer
777
778         * glib/gmacros.h: Use __builtin_offsetof for G_STRUCT_OFFSET if
779         building with gcc 4.0 or newer.
780
781 2008-06-11  Tor Lillqvist  <tml@novell.com>
782
783         * glib/gmain.c
784         * glib/gspawn.c: Clarify what a "child pid" is in the doc
785         comments.
786
787 2008-06-10  Matthias Clasen  <mclasen@redhat.com>
788
789         Bug 536158 – also bump GHashTable version when a node is removed via
790         g_hash_table_iter_remove()/g_hash_table_iter_steal()
791
792         * glib/ghash.c (iter_remove_or_steal): Bump the hash table 
793         version. Patch by Jean-Yves Lefort
794
795 2008-06-07  Tor Lillqvist  <tml@novell.com>
796
797         * glib/gstdio.c (g_access): Define X_OK if necessary (MSVC).
798
799 2008-06-02  Yevgen Muntyan  <muntyan@tamu.edu>
800
801         Bug 531403 – g_utf8_collate broken on Mac.
802
803         * glib/gunicollate.c:  (g_utf8_collate): use UCCompareTextDefault;
804         (collate_key_to_string), (carbon_collate_key_with_collator),
805         (carbon_collate_key), (carbon_collate_key_for_filename): new
806         functions using Carbon API to get collate key for g_utf8_collate_key()
807         and g_utf8_collate_key_for_filename();
808         (g_utf8_collate_key), (g_utf8_collate_key_for_filename): use those.
809
810 2008-05-30  Michael Natterer  <mitch@imendio.com>
811
812         Bug 535628 - test/patterntest.c still includes gpattern.h
813         directly.
814
815         * tests/patterntest.c: don't include "glib/gpattern.h" directly.
816         Patch from Hiroyuki Ikezoe.
817
818 2008-05-30  Tor Lillqvist  <tml@novell.com>
819
820         Bug 535625 - alias.h:2648: error: 'utime' undeclared here (not in
821         a function)
822
823         * glib/glib.symbols: Move g_utime inside #if !defined(G_OS_UNIX)
824         || defined(G_STDIO_NO_WRAP_ON_UNIX).
825
826 2008-05-30  Tor Lillqvist  <tml@novell.com>
827
828         * glib/gstdio.c (g_access) [Win32]: Mask out X_OK to avoid problem
829         on Vista. X_OK was just ignored by access() in earlier Microsoft C
830         libraries. (Which is fine as executability has little meaning on
831         Windows.) The one on Vista returns an error if X_OK is passed.
832
833 2008-05-29  Tor Lillqvist  <tml@novell.com>
834
835         * glib/gstdio.h
836         * glib/gstdio.c: Add g_utime(). No need to include <sys/utime.h>
837         in gstdio.h, just use a forward struct declaration.
838
839         * glib/glib.symbols: Add it.
840
841 2008-05-29  Tor Lillqvist  <tml@novell.com>
842
843         * glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on
844         Windows, and gcc warns: "wint_t is promoted to int when passed
845         through ... (so you should pass int not wint_t to va_arg)." And
846         indeed g_print("%C", L'a') crashes. So do as gcc says then.
847
848 2008-05-28  Michael Natterer  <mitch@imendio.com>
849
850         * configure.in: add G_DISABLE_SINGLE_INCLUDES to CPPFLAGS
851         globally.
852
853         * glib/tests/option-context.c
854         * glib/tests/testing.c
855         * tests/testingbase64.c: don't include <glib/gtestutils.h>
856
857 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
858
859         * configure.in: Bump version
860
861         * === Released 2.17.0 ===
862
863 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
864
865         * README.in: Add a note about G_DISABLE_SINGLE_HEADERS.
866
867         * NEWS: Updates
868
869 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
870
871         * tests/casemap.txt:
872         * tests/casefold.txt: Update for Unicode 5.1
873
874 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
875
876         * Revert the patch for bug 527214 and related changes. GTimer
877         is supposed to work without threads.
878
879 2008-05-27  simon.zheng  <simon.zheng@sun.com>
880
881         * configure.in: Fix #533369. Check whether memeber statvfs.f_basetype 
882         available or not.
883
884 2008-05-27  Matthias Clasen  <mclasen@redhat.com>
885
886         * glib/pcre/*: Update to PCRE 7.7
887
888 2008-05-26  Matthias Clasen  <mclasen@redhat.com>
889
890         * glib/gchecksum.c: Add Since: tag to g_checksum_reset
891
892         * glib/glib.symbols: Add g_checksum_reset
893
894 2008-05-25  Matthias Clasen  <mclasen@redhat.com>
895
896         Bug 534137 – Typo in g_spawn_async_with_pipes doc
897
898         * glib/gspawn.c: Fix a typo in the docs, pointed out by Ted Percival.
899
900 2008-05-25  Tor Lillqvist  <tml@novell.com>
901
902         Bug 534319 - GLib's .pc files could use Libs.private
903
904         * glib-2.0-uninstalled.pc.in
905         * glib-2.0.pc.in
906         * gmodule-2.0-uninstalled.pc.in
907         * gmodule-2.0.pc.in
908         * gmodule-export-2.0.pc.in
909         * gmodule-no-export-2.0.pc.in: Move ICONV_LIBS and G_MODULE_LIBS
910         to Libs.private.
911
912 2008-05-24  Matthias Clasen  <mclasen@redhat.com>
913
914         * glib/gfileutils.c (g_file_open_tmp): Small documention addition.
915
916 2008-05-22 10:49:37  Tim Janik  <timj@imendio.com>
917
918         * glib/gmacros.h: implement G_STMT_START and G_STMT_END with
919         do{}while(0), which is believed to be widely portable, fixes:
920         Bug 519026 - G_STMT_START/G_STMT_END test a non-existent preprocessor symbol
921
922 2008-05-20  Behdad Esfahbod  <behdad@gnome.org>
923
924         Bug 501651 – Update glib/libcharset
925
926         * configure.in:
927         * glib/libcharset/Makefile.am:
928         * glib/libcharset/README:
929         * glib/libcharset/codeset.m4:
930         * glib/libcharset/config.charset:
931         * glib/libcharset/glibc21.m4:
932         * glib/libcharset/libcharset-glib.patch:
933         * glib/libcharset/libcharset.h:
934         * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases),
935         (_g_locale_charset_raw):
936         * glib/libcharset/localcharset.h:
937         * glib/libcharset/make-patch.sh:
938         * glib/libcharset/ref-add.sin:
939         * glib/libcharset/ref-del.sin:
940         * glib/libcharset/update.sh:
941         Update libcharset to the one shipped with libiconv-0.12.
942
943 2008-05-20  Behdad Esfahbod  <behdad@gnome.org>
944
945         Bug 459905 – Bug in wcwidth data
946         Bug 534085 – g_unichar_iswide_cjk() has a totally wrong table
947         * glib/guniprop.c (g_unichar_iswide), (g_unichar_iswide_cjk):
948         Regenrate wide and wide_cjk tables from Unicode 5.1.0 data directly.
949         Not using Markus Kuhn's tables anymore.
950
951 2008-05-20 14:31:18  Tim Janik  <timj@imendio.com>
952
953         * reverted recent unapproved changes by Yair Hershkovitz, regarding:
954         Bug 503071 – Application direction changes to right to left even if theres no translation.
955
956 2008-05-20  Tor Lillqvist  <tml@novell.com>
957
958         * configure.in: Don't need memory barriers when using a non-gcc
959         compiler on Windows either.
960
961 2008-05-19  Tor Lillqvist  <tml@novell.com>
962
963         * glib/gdir.c: Include the dirent.h and wdirent.c from
964         ../build/win32/dirent directly here when compiling with MSVC and
965         without HAVE_DIRENT_H.
966
967 2008-05-19  Hans Breuer  <hans@breuer.org>
968
969         * glib/makefile.msc : added gi18n.c
970
971 2008-05-19  Tor Lillqvist  <tml@novell.com>
972
973         * glib/Makefile.am: #define HELPER_CONSOLE in
974         gspawn-win32-helper-console.c
975
976         * glib/gspawn-win32-helper.c: Compile a main() instead of
977         WinMain() if HELPER_CONSOLE is defined. MSVC insists on a console
978         application having a main().
979
980 2008-05-18  Matthias Clasen  <mclasen@redhat.com>
981
982         Bug 527214 – g_timer_elapsed() returns random values.
983
984         * glib/gtimer.c (g_timer_new()):
985         Print warning if g_thread_init() has not been called yet. 
986         Patch by Mathias Hasselmann
987
988 2008-05-12  Jeffrey Stedfast  <fejj@novell.com>
989
990         * glib/gchecksum.c (g_checksum_reset): New function to reset the
991         state of a GChecksum.
992         (g_checksum_new): Call g_checksum_reset() instead of duplicating
993         code.
994
995 2008-05-17  Matthias Clasen  <mclasen@redhat.com>
996
997         Bug 528667 – Typos in testing module documentation
998
999         * glib/gtestutils.c: Fix typos in the documentation.
1000
1001 2008-05-17  Tor Lillqvist  <tml@novell.com>
1002
1003         * glib/giowin32.c: Make debugging printout more compact and add
1004         more information to it. No changes to actual functionality.
1005
1006         * glib/gmain.c: Improve debugging printouts. When
1007         G_MAIN_POLL_DEBUG is defined, we check for an environment variable
1008         of the same name to decide whether to print out debugging
1009         information or not. G_MAIN_POLL_DEBUG is always defined on Windows
1010         as there is more often a need to debug this stuff there. On Unix
1011         the definition has to be uncommented (or done on the compile
1012         command line).
1013
1014 2008-05-17  Tor Lillqvist  <tml@novell.com>
1015
1016         * build: Don't include the "build" module with svn:externals any
1017         longer. Instead add the still relevant directories and files from
1018         it for real here in GLib.
1019
1020 2008-05-17  Yair Hershkovitz  <yairhr@gmail.com>
1021
1022         * glib/glib.symbols:
1023         * glib/gi18n.h: Added g_disable_setlocale().
1024
1025         * glib/gi18n.c: Added g_disable_setlocale() API to disable setting
1026         the locale in g_i18n_init(). Dont disable translations if textdomain
1027         was not set before calling g_i18n_init(). Dont disable translations if
1028         the locale is "C".
1029
1030 2008-05-16  Tor Lillqvist  <tml@novell.com>
1031
1032         * config.h.win32.in: Update to match the configure-produced one.
1033
1034 2008-05-14  Michael Natterer  <mitch@imendio.com>
1035
1036         * glib/gatomic.c: #include "config.h" before using G_ATOMIC_ARM.
1037
1038 2008-05-13  Kjartan Maraas  <kmaraas@gnome.org>
1039
1040         * glib/gi18n.c: #include <locale.h> to fix the build.
1041
1042 2008-05-12  Yair Hershkovitz  <yairhr@gmail.com>
1043
1044         * glib/gi18n.c (g_i18n_init): Coding convention fix. Space between
1045         a function name and its opening parenthesis.
1046
1047 2008-05-12  Tor Lillqvist  <tml@novell.com>
1048
1049         * glib/glib.symbols: Add g_i18n_init.
1050
1051 2008-05-12  Tor Lillqvist  <tml@novell.com>
1052
1053         Bug 530457 - G_USER_DIRECTORY_DOWNLOAD folder improperly mapped
1054
1055         * glib/gutils.c (load_user_special_dirs): When running on Vista or
1056         later, use SHGetKnownFolderPath() to get the FOLDERID_Downloads
1057         folder for G_USER_DIRECTORY_DOWNLOAD, and FOLDERID_Public for
1058         G_USER_DIRECTORY_PUBLIC_SHARE.
1059
1060 2008-05-11  Yair Hershkovitz  <yairhr@gmail.com>
1061
1062         Bug 503071 - Application direction changes to right to left even if
1063         theres no translation. 
1064
1065         * glib/gi18n.c: g_i18n_init() for initializing the glib i18n,
1066         checking if a translation is available for the calling app. wrappers for
1067         gettext, dgettext and dpgettext to check first if the application
1068         should be translated.
1069
1070         * glib/gi18n.h: symbol declaration for gettext wrappers.
1071
1072         * glib/gi18n-lib.h: include gi18n.h instead of libintl.h.
1073
1074         * glib/gstrfuncs.c: moved g_dpgettext() to glib/gi18n.c.
1075
1076         * glib/gutils.c: use g_dgettext() instead of dgettext().
1077
1078         * glib/glibintl.h: include gi18n.h.
1079
1080         * glib.symbols: added gettext wrappers.
1081
1082         * glib/Makefile.am: added gi18n.c.
1083
1084 2008-05-05  Michael Natterer  <mitch@imendio.com>
1085
1086         * glib/glib.h: #define __GLIB_H_INSIDE__ around including
1087         everything.
1088
1089         * glib/*.h: check for that define instead of __G_LIB_H__ if
1090         G_DISABLE_SINGLE_INCLUDES is defined.
1091
1092         * glib/gdatasetprivate.h: #include <glib.h> instead of
1093         <glib/gdataset.h>
1094
1095 2008-05-02 13:24:13  Tim Janik  <timj@imendio.com>
1096
1097         * glib/gmain.c: renamed GMainDispatch.dispatching_sources to be more
1098         descriptive and distinguishable within the source file.
1099
1100 2008-04-21  Tor Lillqvist  <tml@novell.com>
1101
1102         Bug 528752 - Win32 build and SSL not working
1103
1104         This bug report against libsoup points out an issue with the use
1105         of bitfields in the GIOChannel struct that should really be taken
1106         care of here in GLib.
1107
1108         * configure.in: Add Autoconf variable GLIB_EXTRA_CFLAGS which will
1109         contain the -mms-bitfields flag on Windows.
1110         
1111         * glib-2.0.pc.in: Add it to Cflags.
1112
1113 2008-04-21  Tor Lillqvist  <tml@novell.com>
1114
1115         * configure.in
1116         * */Makefile.am: More work on enabling static building on
1117         Windows. When building statically: Also define
1118         GOBJECT_STATIC_COMPILATION in glibconfig.h so that also the
1119         variables in gparamspecs.h get declared without any
1120         dllimport/dllexport decorations. Don't install .def files which
1121         obviously have no meaning for static libraries. Don't create MS
1122         import libraries. Don't do any resource object files.
1123
1124 2008-04-18 17:40:58  Tim Janik  <timj@imendio.com>
1125
1126         * tests/testglib.c: fixed gstdio.h include.
1127
1128         * tests/Makefile.am: properly list testglib.c SOURCES.
1129
1130 2008-04-17  Emmanuele Bassi  <ebassi@gnome.org>
1131
1132         * glib/gchecksum.c:
1133         (sha_byte_reverse): Use the macro GLib provides for byte-swapping
1134         as it can be optimized.
1135         
1136         (g_checksum_update): Fix a compiler warning.
1137
1138 2008-04-15  Mukund Sivaraman  <muks@mukund.org>
1139
1140         * gio/gfile.c: Fixed typos in gtk-doc comments.
1141
1142 2008-04-10  Mathias Hasselmann  <mathias@openismus.com>
1143
1144         Bug 519137 – g_slice_dup macro needs cast for 64-bit platform
1145
1146         * glib/gslice.h (g_slice_copy): Apply type casts needed
1147           for proper compilation on 64-bit platforms.
1148
1149 2008-04-09  Federico Mena Quintero  <federico@novell.com>
1150
1151         * glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak
1152         the apps_by_name hash table if the applications list is empty.
1153
1154 2008-04-08  Behdad Esfahbod  <behdad@gnome.org>
1155
1156         * glib/gunicode.h: Add ISO 15924 code comments for new scripts.
1157
1158 2008-04-07  Matthias Clasen  <mclasen@redhat.com>
1159
1160         Bug 491554 – Update to Unicode 5.1.0
1161
1162         * glib/gunichartables.h:
1163         * glib/gunicode.h:
1164         * glib/gunibreak.h:
1165         * glib/gmirroringtable.h:
1166         * glib/gscripttable.h:
1167         * glib/gen-script-table.pl: Update to Unicode 5.1.0. Patch by
1168         Behdad Esfahbod
1169
1170 2008-04-07  Matthias Clasen  <mclasen@redhat.com>
1171
1172         Bug 526619 – make test-report crash
1173
1174         * glib/gtester.c: Allocate enough space for argv. Patch by
1175          Hiroyuki Ikezoe
1176
1177 2008-04-04  Matthias Clasen  <mclasen@redhat.com>
1178
1179         * glib/gmain.c: Make the fix for bug 448943 work.
1180
1181 2008-04-04  Tor Lillqvist  <tml@novell.com>
1182
1183         * configure.in: Make sure we don't build both shared and static at
1184         the same time on Windows. Put a #define for
1185         GLIB_STATIC_COMPILATION into glibconfig.h in the static case, so
1186         that the use of variables from libglib gets the GLIB_VAR macro in
1187         gtypes.h automatically correct. This means that a shared and
1188         static build of GLib can't be installed in the same prefix on
1189         Windows, which sucks a bit. But with variables in the GLib API,
1190         there isn't much we can do otherwise. The alternative would be to
1191         force the developer who compiles against a statically built GLib
1192         to use -DGLIB_STATIC_COMPILATION.
1193
1194         * glibconfig.h.win32.in: Define GLIB_STATIC_COMPILATION here also,
1195         if needed.
1196
1197 2008-04-03  Tor Lillqvist  <tml@novell.com>
1198
1199         * configure.in: Don't enforce shared library build only on
1200         Windows. It might well make sense to build static libraries in
1201         some use cases.
1202
1203         * glib/gutils.c: Don't compile the DllMain if building libglib
1204         statically. Also in that case don't return NULL from
1205         _glib_get_installation_directory(), but return the installation
1206         directory of the program's .exe file.
1207
1208 2008-04-03  Tor Lillqvist  <tml@novell.com>
1209
1210         Bug 525972 - UCS-4 not in the new win_iconv implementation
1211
1212         * glib/win_iconv.c: Add UCS-4. Also add spelling of UCS-2 without
1213         the hyphen.
1214
1215 2008-04-03  Matthias Clasen  <mclasen@redhat.com>
1216
1217         Bug 448943 – g_timeout_add_seconds() problems
1218
1219         * glib/gmain.c (g_timeout_set_expiration): Prevent expiration
1220         time going negative. Reported by Cody Russell, analyzed by
1221         Olivier Crete, patch by Sjoerd Simons.
1222
1223 2008-04-03  Matthias Clasen  <mclasen@redhat.com>
1224
1225         Bug 525674 – A typo in gmarkup.c
1226
1227         * glib/gmarkup.c (g_markup_parse_context_get_element_stack): Fix
1228         the docs, reported by Hiroyuki Ikezoe
1229
1230 2008-04-03  Matthias Clasen  <mclasen@redhat.com>
1231
1232         Bug 525732 – Error in documentation for g_list_first
1233
1234         * glib/glist.c (g_list_first): Fix the docs, reported by 
1235         Salvatore Iovene
1236
1237 2008-04-02  Tor Lillqvist  <tml@novell.com>
1238
1239         Bug 524314 - g_convert() on Win32 implicitly converts full width
1240         alphanumerics into half width
1241         
1242         * glib/win_iconv.c: Update from Yukihiro Nakadaira. Use
1243         WC_NO_BEST_FIT_CHARS flag for WideCharToMultiByte() unless the
1244         //translit flag was suffixed to the codeset name.
1245
1246         * glib/gconvert.c: Include win_iconv.c earlier so that its
1247         definition of WINVER before it includes <windows.h> is used.
1248
1249 2008-03-31  Tor Lillqvist  <tml@novell.com>
1250
1251         * glib/gmain.c (g_poll): Improve fix for #525192 below: Use
1252         SleepEx() so that the sleep is alertable. Thanks to John
1253         Ehresman.
1254
1255 2008-03-31  Tor Lillqvist  <tml@novell.com>
1256
1257         * glib/gwin32.c
1258         (g_win32_get_package_installation_directory_of_module): Fix Cygwin
1259         breakage. Patch by Lieven van der Heide.
1260
1261 2008-03-31 10:39:17  Tim Janik  <timj@imendio.com>
1262
1263         * glib/gutils.h: reapply inlining fix from r6333 to fix:
1264         Bug 522292 – Gives warnings in glib/gutils.h with GCC in C99 mode
1265         and again:
1266         Bug 315437 – extern inline -> static inline
1267
1268 2008-03-31  Tor Lillqvist  <tml@novell.com>
1269
1270         Bug 525192 - 100% CPU if run main loop with no IO sources
1271
1272         * glib/gmain.c (g_poll) [Win32]: Patch by Neil Roberts.
1273
1274 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
1275
1276         * glib/gtester.c: Don't use ARG_MAX.  (#522335, patch by 
1277         Samuel Thibault, adapted by Sebastian Dröge)
1278
1279 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
1280
1281         * glib/gmacros.h: Add macros wrapping the gcc alloc_size 
1282         function attribute.  (#523019, Rodrigo Moya)
1283
1284         * glib/gmem.h: 
1285         * glib/gslice.h:
1286         * glib/gstrfuncs.h: Use the new attribute where appropriate.
1287
1288 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
1289
1290         * glib/glibintl.h:
1291         * glib/gstrfuncs.c:
1292         * glib/gutils.c: Simple fixes to help building GLib on 
1293         embedded systems without NLS.  (#524350, Peter Kjellerstedt)
1294
1295 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
1296
1297         * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
1298         (#525060, Arfrever Frehtes Taifersar Arahesis)
1299
1300 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
1301         
1302         * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
1303         by G_STRFUNC.  (#524344, Peter Kjellerstedt)
1304
1305 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
1306
1307         * glib/gtestutils.c: Fix a doc typo. (#524742, Hiroyuki Ikezoe)
1308
1309 2008-03-22  Claudio Saavedra  <csaavedra@gnome.org>
1310
1311         Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
1312         other optimizations
1313
1314         * glib/gbookmarkfile.c: (bookmark_metadata_dump),
1315         (bookmark_item_dump), (g_bookmark_file_dump), (expand_exec_line):
1316         Replace all calls to g_string_append_printf with g_strconcat () or
1317         g_string_append () where appropriate, to reduce the file creation time.
1318         Also, use g_string_sized_new () with an appropriate buffer size instead
1319         of g_string_new (NULL), to reduce time spent in memory reallocation.
1320         (#523877, Claudio Saavedra, Emmanuele Bassi)
1321
1322 2008-03-22  Emmanuele Bassi  <ebassi@gnome.org>
1323
1324         Bug 518160 - replace two g_strdup_printf calls in GBookmarkFile
1325
1326         * glib/gbookmarkfile.c (is_element_full): Compare the fragments
1327         instead of building two strings; this avoids two g_strdup_printf()
1328         per namespaced element enountered. (#518160, Felix Riemann)
1329
1330 2008-03-20  Alexander Larsson  <alexl@redhat.com>
1331
1332         * configure.in:
1333         Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
1334         Patch from ephraim_owns@hotmail.com
1335
1336 2008-03-19  Tor Lillqvist  <tml@novell.com>
1337
1338         Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)
1339
1340         * glib/win_iconv.c: Fixes for code page 54936 (GB18030)
1341         (mbtowc_flags): New function. Check if a code page is one of those
1342         for which the dwFlags parameter to MultiByteToWideChar() must be
1343         zero. Return 0 or MB_ERR_INVALID_CHARS.
1344         (mbcs_mblen): New function for multi-byte (more than two bytes for
1345         some characters) code pages. Only handles 54936 for now.
1346         (make_csconv): Use it for 54936.
1347         (kernel_mbtowc): Use mbtowc_flags().
1348
1349 2008-03-18  Sebastian Dröge  <slomo@circular-chaos.org>
1350
1351         Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
1352
1353         * glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
1354         if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
1355         gcc version prior to 4.3 no correct C99-inline was implemented which
1356         has semantic differences to GNU inline.
1357
1358 2008-03-16  Tor Lillqvist  <tml@novell.com>
1359
1360         * configure.in: Don't bother defining Autoconf variables for
1361         glib.def, gmodule.def, gobject.def and gthread.def when this can
1362         be handled easily in */Makefile.am which are the only files that
1363         use them. Remove also TESTGMODULE_EXP which isn't used at all.
1364
1365         * glib/Makefile.am: Corrsponding change.
1366         
1367 2008-03-14  Michael Natterer  <mitch@imendio.com>
1368
1369         * glib/*.h: make it possible to disable single-file includes by
1370         defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
1371         Approved by Tim Janik.
1372
1373         * glib/glib.h: include <glib/gslice.h>.
1374
1375         * glib/gi18n.h
1376         * glib/gi18n-lib.h
1377         * glib/gprintf.h: include <glib.h> so the above works when these
1378         files are included without including <glib.h> first.
1379
1380 2008-03-14  Alexander Larsson  <alexl@redhat.com>
1381
1382         * configure.in:
1383         Add required includes for f_fstypename member check.
1384
1385 2008-03-14  Alexander Larsson  <alexl@redhat.com>
1386
1387         * configure.in:
1388         Added checks for FEN (Solaris  File Event Notification)
1389
1390 2008-03-13  Tor Lillqvist  <tml@novell.com>
1391
1392         * glib-zip.in: Add lib/gio-2.0.lib and lib/gio-2.0.def.
1393
1394 2008-03-12  Tor Lillqvist  <tml@novell.com>
1395
1396         * configure.in: Expand gio/win32/Makefile.
1397
1398 2008-03-12  Matthias Clasen <mclasen@redhat.com>
1399
1400         * configure.in: Bump version to 2.17.0
1401
1402         * ChangeLog.pre-2-16: rotate ChangeLog
1403         
1404         * === branch for 2.16 ===