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