forked from CyanogenMod/android_external_bluetooth_glib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangeLog.pre-2-18
1738 lines (1135 loc) · 52.8 KB
/
ChangeLog.pre-2-18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2008-09-17 Matthias Clasen <[email protected]>
* configure.in: Bump version
* === Released 2.18.1 ===
* NEWS: Updates
2008-09-16 Tor Lillqvist <[email protected]>
* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits in all
the newer Microsoft C libraries, not just 64-bit ones. So to avoid
crash if compiled with newer MSVSes, use a separate time_t
variable in all cases on Windows.
* glib/gbacktrace.h: Define G_BREAKPOINT() also for 64-bit MSVC,
using the __debugbreak() intrinsic.
2008-09-15 Behdad Esfahbod <[email protected]>
* configure.in: Fix description of module shared library suffix.
2008-09-15 Tor Lillqvist <[email protected]>
* config.h.win32.in: Update to match what the configure script
produces. Just for uniformity, only commented out parts affected.
2008-09-13 Tor Lillqvist <[email protected]>
* glib/gutils.h
* glib/gwin32.h: Deprecate G_WIN32_DLLMAIN_FOR_DLL_NAME(),
g_win32_get_package_installation_directory() and
g_win32_get_package_installation_subdirectory() as their
documentation has warned for a while. Sorry that I forgot to do
this before 2.18.0.
* glib/gwin32.c (g_win32_get_package_installation_directory):
Print a warning if a non-NULL package parameter is passed to this
function, as that is deprecated usage, as the documentation says.
2008-09-11 Matthias Clasen <[email protected]>
Bug 548321 – <string.h> is not included in gi18n-lib.h
* glib/gi18n.h:
* glib/gi18n-lib.h: Include string.h, since strlen is used in
the macros. Pointed out by Ignacio Casal Quinteiro
2008-09-10 Matthias Clasen <[email protected]>
Bug 551731 – g_date_set_time[_t] docs should mention what timezone
* glib/gdate.c (g_date_set_time, g_date_set_time_t): Documentation
improvements proposed by Owen Taylor.
2008-09-10 Matthias Clasen <[email protected]>
Bug 551410 – gtestutils.c: using printf without prototype
* glib/gtestutils.c: Include stdio.h. Pointed out by Kazuki Iwamoto.
2008-09-09 Matthias Clasen <[email protected]>
Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
__func__ rather than '???'
* glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h,
as the comment up top says. Instead look at __STDC_VERSION__.
Problem reported by Lin Ma.
2008-09-09 Matthias Clasen <[email protected]>
Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()
* glib/gmain.c (g_main_context_check): Be robust against setting
event fields on the fly, as e.g. happens in linc. Tracked down
by Paul Smith, fix proposed by Owen Taylor.
2008-09-08 Christian Dywan <[email protected]>
Bug 550433 – g_test_init doesn't recognize --help
* glib/gtestutils.c (parse_args): Add detailed --help output
2008-09-02 Matthias Clasen <[email protected]>
* configure.in: Bump version
* === Released 2.18.0 ===
2008-09-02 Ryan Lortie <[email protected]>
Bug 549771 – improved .gitignore for glib
* docs/reference/.gitignore:
* docs/reference/gio/.gitignore:
* docs/reference/gobject/tmpl/.gitignore:
* gio/.gitignore:
* gio/tests/.gitignore:
* glib/.gitignore:
* glib/libcharset/.gitignore:
* glib/tests/.gitignore:
* gmodule/.gitignore:
* gobject/.gitignore:
* gobject/tests/.gitignore:
* po/.gitignore:
* tests/.gitignore: new files
* .gitignore: remove 'build' (since it's part of glib now), add more
useful things.
2008-09-02 Matthias Clasen <[email protected]>
* NEWS: Updates
* configure.in: Bump version to 2.18.0
2008-09-02 Matthias Clasen <[email protected]>
Bug 550104 – trivial documentation fix for g_get_home_dir
* glib/gutils.c (g_get_home_dir): Fix up the docs.
2008-09-02 Michael Natterer <[email protected]>
* glib/gchecksum.c (g_checksum_reset): add
g_return_if_fail (checksum != NULL)
2008-09-01 Paolo Borelli <[email protected]>
Bug 550040 - Move GString, rand and printf tests to the unit test
framework
* tests/printf-test.c:
* tests/rand-test.c:
* tests/string-test.c:
Removed
* glib/tests/printf.c:
* glib/tests/rand.c:
* glib/tests/string.c:
Added
* tests/Makefile.am:
* glib/tests/Makefile.am:
Updated for the above
2008-08-31 Emmanuele Bassi <[email protected]>
Bug 550096 – GBookmarkFile parser is not forward compatible
* glib/gbookmarkfile.c:
(parse_bookmark_element), (parse_application_element),
(parse_mime_type_element), (parse_icon_element): Relax the
attributes checking of the GBookmarkFile parser for the
attributes that the desktop bookmark file specification
defines and controls. This allows adding new attributes to
the existing elements in newer versions without breaking the
parser in older ones.
2008-08-28 Ryan Lortie <[email protected]>
Fixup for test case in previous commit.
* glib/tests/strfuncs.c: don't fail if we can't open the test data.
This happens if $(builddir) != $(srcdir) (like when doing 'make
distcheck'). Quick workaround for now until #549783 can be fixed.
2008-08-28 Ryan Lortie <[email protected]>
Bug 548612 – g_strstr_len() should use memmem when available
* glib/gstrfuncs.c (g_strstr_len): fix off-by-one memory access error
* glib/tests/strfuncs.c (test_bounds): add some new test cases that
would catch problems like this
* glib/tests/4096-random-bytes: test data for the previous
* glib/tests/Makefile.am: add previous to EXTRA_DIST
2008-08-28 Ryan Lortie <[email protected]>
[REVERT] Bug 548612 – g_strstr_len() should use memmem when available
* configure.in:
* glib/gstrfuncs.c (g_strstr_len): revert use of memmem (see bug)
2008-08-28 Matthias Clasen <[email protected]>
* configure.in: Change libselinux detection to not link libglib
against it.
2008-08-28 Michael Natterer <[email protected]>
* glib/gstrfuncs.c (g_parse_long_long): make "endptr" const since
it's always a pointer into the const string passed. Remove some
casting to (gchar*) in this function.
(g_ascii_strtoull)
(g_ascii_strtoll): cast "endptr" to (const gchar**) here when
passing it to above function.
2008-08-28 Bastien Nocera <[email protected]>
Bug 548612 – g_strstr_len() should use memmem when available
* glib/tests/strfuncs.c (test_strstr):
* tests/string-test.c (main): Patch by Paolo Borelli
<[email protected]> to move the tests to the right place,
and add more tests
* glib/gstrfuncs.c (g_strstr_len): Fix problem with memmem ignoring
nul-terminators in strings, and using the haystack_len instead
2008-08-28 Bastien Nocera <[email protected]>
Bug 548612 – g_strstr_len() should use memmem when available
* configure.in: detect whether memmem is available in the C library
* glib/gstrfuncs.c (g_strstr_len): use memmem for g_strstr_len() if
available in it's available, as it could be optimised by the C library
* tests/string-test.c (main): Add a few tests for g_strstr_len()
2008-08-27 Tor Lillqvist <[email protected]>
* glib/giowin32.c: Stylistic changes. Plug an unlikely memory leak
that occurred in create_thread() if closing the thread handle
failed. Add more error messages to g_io_win32_free() that are
printed only when debugging. Plug handle leak, a socket channel's
event was never closed.
2008-08-27 Tor Lillqvist <[email protected]>
* config.h.win32.in: Should not define HAVE_DIRENT_H when
compiling with MSVC, as the only file which checks HAVE_DIRENT_H
is gdir.c, and that includes the dirent.h and wdirent.c from
build/win32/dirent explicitly anyway when being compiled with
MSVC.
2008-08-22 Björn Lindqvist <[email protected]>
Bug 523939 – Example program for GValue
* gobject/gvalue.c: Add code example that demonstrates GValue's
features.
2008-08-21 Tor Lillqvist <[email protected]>
* glib/giowin32.c: Minor comment improvements. Improve run-time
warning messages. Drop some #if 0 code. Don't bother compiling the
binary compatibility g_io_channel_win32_new_stream_socket()
function that has not been mentioned in any header since 2.0 on
Win64.
* glib/glib.symbols: Mark it, too, private, and don't export it on
Win64.
2008-08-21 Tor Lillqvist <[email protected]>
* glib/gmain.c: Rework the g_poll() implementation on Windows to
match poll() semantics more closely. This makes the test program
in bug #468910 behave better and doesn't seem to break anything
else.
If polling several GPollFDs, i.e. messages and/or waitable
handles, first check if one or several of them are in the
signalled state right away, with timeout zero. Return indication
for all that are in that case. To check if several handles are
signalled, we have to call the WaitForMultipleObjectsEx() function
repeatedly, each time removing the handle it indicated was
signalled last time, until WAIT_TIMEOUT is returned.
If not, then poll with timeout and indicate only the single one
that the Win32 wait function tells us as before.
Remove unnecessary ifdefs, as we always have G_MAIN_POLL_DEBUG
defined on Windows.
Initialise g_main_poll_debug in g_main_context_new() so we have it
before testing it in one case.
Don't put several copies of a handle in the array of handles to
wait for. The documentation says this is not allowed, although it
did seem to work fine in practise. But do as the documentation
says anyway.
2008-08-20 Tor Lillqvist <[email protected]>
Bug 500246 - Bug fixes for giowin32
* glib/giowin32.c (read_thread) (write_thread): Change the nbytes
variables to signed.
(g_io_channel_win32_make_pollfd): Fix an obvious error in the file
descriptor case leftover after the patch from bug #333098 on
2006-03-02. Thanks to Marcus Brinkmann.
2008-08-20 Tor Lillqvist <[email protected]>
Bug 324234 - Using g_io_add_watch_full() to wait for connect() to
return on a non-blocking socket returns prematurely
Bug 548278 - Async GETs connections are always terminated
unexpectedly on Windows
* glib/giowin32.c: Add one more state variable to the
GIOWin32Channel struct, ever_writable. Initialise it to FALSE, set
to TRUE when the WSAEventSelect() indicates FD_WRITE, and never
reset to FALSE.
Don't do the WSASetEvent() in g_io_win32_prepare() unless
ever_writable is TRUE. Don't automatically indicate G_IO_OUT in
g_io_win32_check() unless ever_writable is TRUE.
This fixes the behaviour of the test case program in bug #548278,
and the "Testcase for the spurious OUT event bug" in bug
#324234. It also doesn't seem to break anything. Not that there is
any exhaustive test suite...
Add a comment with a list of bugs that are related to the code in
this file.
2008-08-18 Matthias Clasen <[email protected]>
* configure.in: Bump version
2008-08-18 Matthias Clasen <[email protected]>
* === Released 2.17.7 ===
2008-08-17 Sven Neumann <[email protected]>
* NEWS: mention GWinHttpVfs.
2008-08-16 Matthias Clasen <[email protected]>
* NEWS: Updates
2008-08-15 12:41:26 Tim Janik <[email protected]>
* glib/gtestutils.c: changed assertion messages, so older emacsen
can also detect failing source file and line, fixes:
Bug 502498 – Test framework assertion failures should follow gcc error format
2008-08-14 Matthias Clasen <[email protected]>
Bug 547832 – gtk+-2.12.11 fails to build - AC_PROG_MMAP too strict,
and unnecessary
* configure.in: Be a little bit more forgiving when checking
for mmap. Patch by Peter O'Gorman
2008-08-13 Matthias Clasen <[email protected]>
Bug 547337 – G_DISABLE_DEPRECATED breaks tests build
* tests/testglib.c: Protect deprecated API by ifdefs.
Patch by Kalle Vahlman
2008-08-13 Matthias Clasen <[email protected]>
Bug 547637 – unconditional #include of sys/statfs.h in configure
impedes detection of statfs things if non-existant
* configure.in: Protect the statfs.h include by guards.
2008-08-12 Federico Mena Quintero <[email protected]>
* glib/gi18n-lib.h: In the #error about having to define
GETTEXT_PACKAGE, add a hint about a possibly-missing config.h.
2008-08-11 Behdad Esfahbod <[email protected]>
Bug 547200 – g_utf8_find_next_char() issues
* glib/gutf8.c: Improve wording about @end arguments in str funcs.
2008-08-10 Behdad Esfahbod <[email protected]>
* glib/gutf8.c: Fix docs to use "nul-terminated" consistently.
2008-08-08 Ryan Lortie <[email protected]>
Fix 'fail' markup test cases to -not- be valid XML 1.1.
* tests/markups/fail-32.gmarkup: change  to � since the
former is no longer a failure.
2008-08-08 Ryan Lortie <[email protected]>
Bug 546876 - Modify GMarkup parser to accept  .. 
* glib/gmarkup.c: previously the parser only accepted character
references for \t \n and \r (as per XML 1.0); now it accepts all
of  .. .
2008-08-07 Tor Lillqvist <[email protected]>
* configure.in: Output comment clarifying GPid semantics to
glibconfig.h.
* glibconfig.h.win32.in: Ditto here.
2008-08-04 Matthias Clasen <[email protected]>
Bug 546329 – API docs for g_utf8_normalize() are incorrect
* glib/gunidecomp.c: Remove inaccurate information about
g_utf8_collate() from g_utf8_normalize() docs.
Pointed out by Sven Neumann.
2008-08-04 Tor Lillqvist <[email protected]>
* glibconfig.h.win32.in: Make the union _GSystemThread::data array
8 bytes on Win64. Not that it matters as the union contains a
pointer also anyway, but for equivalence with the configure-
generated glibconfig.h
2008-08-04 Tor Lillqvist <[email protected]>
* glib/gmain.c (g_get_current_time): MSDN says: "Do not cast a
pointer to a FILETIME structure to either a LARGE_INTEGER* or
__int64* value because it can cause alignment faults on 64-bit
Windows." So don't do that then. Indeed the code did work randomly
on Win64 when compiled with optimisation.
2008-08-04 Tor Lillqvist <[email protected]>
* glib/giowin32.c
* glib/gmain.c
* glib/gspawn-win32.c
* glib/gspawn-win32-helper.c: Change gssize casts introduced on
2008-07-28 to gintptr casts now that we have that. gssize is as
such the same as gintptr on both 32- and 64-bit Windows, but the
gintptr name indicates that it is used to hold pointers, i.e. also
HANDLEs.
* tests/testglib.c: Avoid warning on Win64 by using gintptr cast
instead if long cast.
2008-08-04 Matthias Clasen <[email protected]>
* configure.in: Bump version
2008-08-04 Matthias Clasen <[email protected]>
* === Released 2.17.6 ===
2008-08-04 Matthias Clasen <[email protected]>
* configure.in: Bump version
* === Released 2.17.5 ===
* NEWS: Updates
2008-08-02 Tor Lillqvist <[email protected]>
* glibconfig.h.win32.in: Add gintptr and guintptr typedefs here,
too, appropriately ifdeffed for 32/64 bit, gcc/MSVC. Add 64-bit
versions of GPOINTER_TO_INT(), GPOINTER_TO_UINT() and vice versa,
too.
2008-08-01 Matthias Clasen <[email protected]>
* NEWS: Updates
2008-08-01 Matthias Clasen <[email protected]>
Bug 545798 – "Since: 2.18" mark is missing in g_set_error_literal
documentation
* glib/gerror.c (g_set_error_literal): Add a Since: marker.
Pointed out by Kouhei Sutou
2008-07-30 Tor Lillqvist <[email protected]>
Bug 545485 - Implicit declaration of utime()
* glib/gstdio.c: Include <utime.h> on POSIX.
2008-07-28 Tor Lillqvist <[email protected]>
* configure.in: Output to glibconfig.h typedefs for gintptr as the
signed integer type that can hold a pointer, and guintptr as the
corresponding unsigned type. These types are portable equivalents
to intptr_t and uintptr_t which are not available in all
compilers.
For all current platforms, they will presumably end up as the same
types as gssize and gsize, but in theory size_t can be smaller
than intptr_t. Also, the intended use case for gintptr and
guintptr is different from that of gssize and gsize. As the name
indicates, gintptr is for when one wants an integer type that can
hold a pointer, and gsize is for when one wants an integer type
that can hold the value of the sizeof operator.
2008-07-28 Matthias Clasen <[email protected]>
Bug 544465 – gmarkup makes it hard to use pre-rolled parsers
* glib/glib.symbols:
* glib/gmarkup.[hc]: Add g_markup_context_get_user_data.
Patch by Ryan Lortie
2008-07-28 Tor Lillqvist <[email protected]>
* glib-zip.in: Message catalogs should always get installed into
share/locale nowadays, don't bother with the convoluted logic
checking if they are in lib/locale instead. Put the correct helper
programs in the zipfile.
2008-07-28 Tor Lillqvist <[email protected]>
Fix problems on 64-bit Windows. Avoid warnings, some of which
indicated actual problems, some which were just annoyances.
Where casts to an integer type are needed for pointers, use
gssize. Technically intptr_t would be the more proper type, but we
still want to be compilable with MSVS6 and 7 which don't have
intptr_t. MSVS8 and 9 do have intptr_t, but in <crtdefs.h>, not
<stdint.h>.
Use %p to print out handles. Use gssize casts when assigning
GPollFD::fd fields.
Use G_GSIZE_FORMAT when printing size_t values.
* configure.in: Define automake conditional G_OS_WIN32_X64 which
is true on Win64.
* glib/giochannel.h: Use slightly different prototype for
g_io_channel_win32_new_messages() on Win64 with gsize instead of
guint.
* glib/giowin32.c
* glib/gmain.c
* glib/gspawn-win32.c
* tests/testglib.c: Generic changes as described above.
* glib/gmain.h: Don't bother mentioning GIMP in comment.
* glib/grel.c (tuple_hash_2): Use all bits of pointer.
* glib/gspawn-win32.c
* glib/gspawn-win32-helper.c: Use gssize types in the
communication between parent and helper process, so that we can
pass process handles, which are pointers, also on Win64.
* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits on
Win64 so we can't pass the address of a GTimeVal::tv_sec which is
a long directly to gmtime(). On the other hand, changing
GTimeVal::tv_sec to be a gint64 on Win64 is not really feasible
either, as that would then require changes in much code that uses
GTimeVals.
* glib/gspawn-win32.c
* glib/Makefile.am: Call the helper programs
gspawn-win64-helper.exe and gspawn-win64-helper-console.exe on
Win64, to avoid potential risk of running a 32-bit version of the
helper.
2008-07-27 Tor Lillqvist <[email protected]>
* glib/glib.symbols
* glib/gconvert.c
* glib/gdir.c
* glib/gfileutils.c
* glib/giowin32.c
* glib/gspawn-win32.c
* glib/gutils.c
* glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on
_WIN64. As there hasn't been any widely deployed 64-bit Windows
builds of the really old GLib (pre-2.8.1) versions those refer to,
there is no need to have the "ABI compatibility" versions in the
DLL.
* glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too.
2008-07-27 Tor Lillqvist <[email protected]>
* configure.in: Set LIB_EXE_MACHINE_FLAG to either X86 or X64 on
Windows. AC_SUBST it.
* glib/Makefile.am (glib-2.0.lib): Pass appropriate -machine flag
to lib.exe.
2008-07-25 15:47:08 Tim Janik <[email protected]>
* glib/tests/testing.c (test_random_conversions): added new sample
test to prepare for extended range random tests.
2008-07-24 Tor Lillqvist <[email protected]>
* glib/gdir.c: Include <stdio.h> for FILENAME_MAX on newer mingw
installations.
2008-07-24 Tor Lillqvist <[email protected]>
* glib/gslice.c (smc_notify_free): Use G_GSIZE_FORMAT instead of
the C99 "zu".
2008-07-24 Tor Lillqvist <[email protected]>
* configure.in: Must output the GLIB_USING_SYSTEM_PRINTF to
glibconfig.h using the same two phase code as for the other
defines in it. Can't check enable_included_printf directly in the
shell code that is the first argument to AC_CONFIG_COMMANDS().
Preset glib_cv_stack_grows=no on Windows to help
cross-compilation.
* configure.in: Enhancements for 64-bit Windows:
Handle also size_t being larger than long. It is long long
a.k.a. __int64 on the LLP64 Win64.
Set glib_void_p and glib_long correctly. Their assignments were
crossed. It hasn't mattered on LP64 platforms like all (?) 64-bit
UNIXes, but on the LLP Win64 it was wrong.
* glibconfig.h.win32.in: Check also _WIN64.
2008-07-24 Tor Lillqvist <[email protected]>
* glibconfig.h.win32.in: Patch for 64-bit Windows from Richard
Hult.
2008-07-23 Matthias Clasen <[email protected]>
544088 – option_test_LDADD is left in tests/Makefile.am
* tests/Makefile.am: Remove leftovers.
Noticed by Hiroyuki Ikezoe
2008-07-22 Mathias Hasselmann <[email protected]>
Set LANG variable for group caption tests to get reproducable results.
* glib/tests/option-context.c (group_captions()):
Set LANG variable to C in the forked process to get reproducable.
Don't silence the forked process in --verbose mode to support
debugging.
2008-07-21 Matthias Clasen <[email protected]>
* configure.in: Fix detection of struct statfs fields.
2008-07-21 Matthias Clasen <[email protected]>
* configure.in: Bump version
2008-07-21 Matthias Clasen <[email protected]>
* === Released 2.17.4 ===
* configure.in: Bump version
* NEWS: Updates
2008-07-21 Emmanuele Bassi <[email protected]>
* glib/gtimer.c (g_time_val_to_iso8601): Use the right format
string to get leading zeros when converting to ISO 8601. (Sven
Herzberg)
2008-07-21 Emmanuele Bassi <[email protected]>
* glib/gbookmarkfile.c:
(bookmark_app_info_new): Do not set the timestamp value
using time(), as it will be overwritten anyway. (#535223,
Michael Meeks)
(parse_application_element),
(bookmark_app_info_dump): Support the "modified" attribute,
which takes an ISO-formatted string instead of a Unix time
stamp, to keep the number of g_strdup_printf() calls to a
minimum.
* glib/gtimer.c:
(g_time_val_to_iso8601): Do not use strftime(): we know
the format and contents of the ISO 8601 date format we
use.
* tests/bookmarks/valid-03.xbel: Add a test file for the
modified attribute.
2008-07-19 Matthias Clasen <[email protected]>
* glib/tests/Makefile.am:
* glib/tests/array-test.c: Move array tests here.
* tests/Makefile.am:
* tests/array-test.c: Removed.
2008-07-20 Tor Lillqvist <[email protected]>
* glib/giowin32.c (g_io_win32_prepare): Patch from Yu Kuan that
makes watched sockets behave much better. See gtk-devel-list
archives from May for the (unfortunately rather meager)
discussion. This patch fixes the presented simple test program,
which reasonably could be expected to work.
2008-07-18 Matthias Clasen <[email protected]>
* NEWS: Updates
2008-07-18 Matthias Clasen <[email protected]>
Bug 536996 – Missing noop i18n macro equivalent to C_
* glib/glib.symbols:
* glib/gstrfuncs.[hc]: Add g_dpgettext2() which is a
variant of g_dpgettext() taking context and id as separate
arguments.
* glib/gi18n-lib.h:
* glib/gi18n.h: Add an NC_() macro that is to C_() as N_()
is to _().
2008-07-18 Matthias Clasen <[email protected]>
* tests/Makefile.am:
* tests/keyfile-test.c:
* tests/option-test.c: Remove
* glib/tests/option-context.c: Add all GOptionContext tests here.
* glib/tests/keyfile.c: Add all GKeyFile tests here.
2008-07-16 Matthias Clasen <[email protected]>
Bug 334234 – "printf" format error
* glib/gslice.c (mem_error): Avoid a warning when printing a pid_t.
Pointed out by Morten Welinder.
2008-07-16 Matthias Clasen <[email protected]>
Bug 406120 – g_ascii_strtod
* glib/gstrfuncs.c (g_ascii_strtod): Document that this
function does accept localized infinities and nans. Reported
by Morten Welinder.
2008-07-16 Matthias Clasen <[email protected]>
Bug 482413 - get_contents_stdio -- overflow and memory corruption
* glib/gfileutils.c (get_contents_stdio): Detect overflow and
error out. Reported by Morten Welinder.
2008-07-16 Matthias Clasen <[email protected]>
Bug 542332 – small fix for error message in GMarkup
* glib/gmarkup.c: Improve an error message.
Patch by Ryan Lortie
2008-07-14 Matthias Clasen <[email protected]>
Bug 428048 – 2 of 51 tests fail on Solaris
* tests/iochannel-test.c: Ignore the error if iconv doesn't
support EUC-JP.
2008-07-14 Matthias Clasen <[email protected]>
* tests/option-test.c: Print error messages when something fails.
2008-07-14 Matthias Clasen <[email protected]>
Bug 467707 – test_iconv_state() in tests/convert-test.c fails on AIX 5.3
* tests/convert-test.c (test_iconv_state): Skip this test if
CP1255 is not supported.
2008-07-10 Ryan Lortie <[email protected]>
* docs/reference/glib/glib-sections.txt:
* glib/glib.symbols:
* glib/gmarkup.c:
* glib/gmarkup.h: add functions g_markup_parse_context_{push,pop} in
order to provide some small hooks on which to build easy-to-use
subparsers.
* glib/tests/Makefile: add new test
* glib/tests/markup-subparser.c: new test for subparsers
Fixes bug #337518.
2008-07-05 Matthias Clasen <[email protected]>
Bug 528317 – GRegex does not allow recursion limit
* glib/pcre/Makefile.am: Set a sane default recursion limit
of 8192 instead of 1000000.
Patch by Mart Raudsepp.
2008-07-04 Behdad Esfahbod <[email protected]>
Bug 541507 – Ambiguous description of assigned characters in the Glib
Unicode Manipulation reference
* glib/guniprop.c
(g_unichar_isgraph): Return true for PrivateUse too.
(g_unichar_isprint): Return true for PrivateUse too.
(g_unichar_isdefined): Return false for Surrogate.
2008-07-04 Michael Natterer <[email protected]>
Bug 541208 – Functions to easily install and use signals without
class struct slot
* tests/gobject/override.c: added tests for the new gsignal
overriding and chaining APIs.
2008-07-02 Matthias Clasen <[email protected]>
* === Released 2.17.3 ===
2008-07-02 Matthias Clasen <[email protected]>
* configure.in: Better endianness fix. From Tomas Mraz.
2008-07-02 Matthias Clasen <[email protected]>
* NEWS: Updates
2008-07-02 Colin Walters <[email protected]>
* gio/gcontenttype.c: Use UNLOCK to unlock, not LOCK.
2008-07-02 Matthias Clasen <[email protected]>
* configure.in: Add a check for structfs.f_bavail
2008-07-02 Matthias Clasen <[email protected]>
* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
check in both versions. Proposed by Patrik Olsson in bug 540545.
2008-07-02 Matthias Clasen <[email protected]>
* configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
Add a _cv_ to some variable names, since autoconf wants it.
2008-06-30 Matthias Clasen <[email protected]>
* glib/pcre/pcre_compile.c: Apply fix for CVE-2008-2371 to
fix a heap-based buffer overflow.
2008-06-29 Björn Lindqvist <[email protected]>
Bug 539626 – Update docstrings for g_object_freeze_notify and
g_object_thaw_notify
* gobject/gobject.c: Explain how the freeze count works.
2008-06-26 Cody Russell <[email protected]>
* configure.in: Add #define GLIB_USING_SYSTEM_PRINTF
to glibconfig.h, which specifies if GLib is using
the system printf functions for g_print*().
(#539999, by Tim-Philipp Müller)
2008-06-24 Paolo Borelli <[email protected]>
Bug 539770 - migrate gstrfunc unit tests to gtest
* tests/strfunc-test.c:
* tests/testglib.c:
* tests/strtoll-test.c:
* tests/strtod-test.c:
* tests/string-test.c:
* tests/Makefile.am:
Removed old tests.
* glib/tests/fileutils.c:
* glib/tests/strfuncs.c:
* glib/tests/Makefile.am:
Added all the old tests migrated to the new unit test framework
and add new unit tests for some of the functions.
2008-06-23 Kristian Rietveld <[email protected]>
* gobject/glib-mkenums.in: introduce an ENUMPREFIX substitution.
* gio/gioenumtypes.h.template: use @ENUMPREFIX@ instead of
hard coding "G" as prefix.
2008-06-22 Stefan Kost <[email protected]>
* glib/gurifuncs.c:
Fix markup in comment.
2008-06-21 Johan Dahlin <[email protected]>
* *.[ch]: Include "config.h" instead of <config.h>
Command used:
find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
Rubberstamped by Mitch
2008-06-20 Sebastian Dröge <[email protected]>
Bug 316221 - G_LOCK warns about breaking strict-aliasing rules
* configure.in:
* glib/gthread.h: Revert previous patch as it doesn't improve the
situation and results in other warnings.
2008-06-16 Christian Persch <[email protected]>
Bug 539123 – annotate g_d[n]gettext with G_GNUC_FORMAT
* glib/gstrfuncs.h:
* glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT.
2008-06-19 Tor Lillqvist <[email protected]>
Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
* glib/gspawn-win32-helper.c (main): Write also the exit status of
the spawned process to the error report pipe. Patch by Hiroyuki
Ikezoe.
2008-06-19 Matthias Clasen <[email protected]>
Bug 535949 – annotate g_strip_context and g_dpgettext with
G_GNUC_FORMAT
* glib/gstrfuncs.h:
* glib/glib.symbols: Annotate some functions with G_GNUC_FORMAT.
Patch by Christian Persch
2008-06-19 Matthias Clasen <[email protected]>
Bug 539067 – The document g_io_channel_win32_new_fd() says that "Your
code should call only g_io_channel_read()." but gio_channel_read() is
deprecated
* glib/giochannel.h: Fix a reference in a comment
Patch by Hiroyuki Ikezoe
2008-06-18 Matthias Clasen <[email protected]>
Bug 537635 – Corrections and improvements to
g_time_val_from_iso8601()/g_time_val_to_iso8601()
* glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather
than 1 when a fraction of a second is not specified
(g_time_val_from_iso8601): calculate a fraction of a second
correctly even in case it does not happen to consist of exactly
six digits; do not allow random data after the ISO 8601 string,
only whitespace
(make g_time_val_to_iso8601): support fractions of a second
Patch by Peter Kjellerstedt
* tests/testglib.c: Update to match
2008-06-16 Christian Persch <[email protected]>
* glib/gbookmarkfile.c
* glib/gconvert.c
* glib/gfileutils.c
* glib/giochannel.c
* glib/giounix.c
* glib/giowin32.c
* glib/gkeyfile.c
* glib/gregex.c
* glib/gshell.c
* glib/gspawn-win32.c
* glib/gutf8.c: Use g_set_error_literal where appropriate. Patch from
bug #535947.
2008-06-16 Christian Persch <[email protected]>
* docs/reference/glib/glib-sections.txt:
* glib/gerror.c:
* glib/gerror.h:
* glib/glib.symbols: Add g_set_error_literal. Bug #535947.
2008-06-16 Michael Natterer <[email protected]>
* glib/goption.c (dgettext_swapped): changed return value to
const gchar* to fix warning.
2008-06-14 Matthias Clasen <[email protected]>
* glib/gtestutils.c: Move docs around
* glib/gchecksum.h: Add docs.
2008-06-13 Matthias Clasen <[email protected]>
Bug 538119 – glib's mainloop leaks a pipe to sub-processes
* glib/gmain.c (g_main_context_init_pipe): Don't leak the
pipes to child processes. Patch by Thiago Macieira.
2008-06-13 Hans Breuer <[email protected]>
* glib/gstrfuncs.c : to get the default translation target on
win32 use g_win32_get_locale() instead of setlocale(LS_MESSAGES,NULL)
Fixes bug #538044