Report an error if the file is too large. (#315275, Kjartan Maraas)
[platform/upstream/glib.git] / ChangeLog
1 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/gmappedfile.c (g_mapped_file_new): Report an error
4         if the file is too large.  (#315275, Kjartan Maraas)
5
6         * glib/gkeyfile.c (g_key_file_load_from_fd): The return value
7         of read() is signed.  (#315273, Kjartan Maraas)
8         
9 2005-08-31  Tor Lillqvist  <tml@novell.com>
10
11         * glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
12         the EXE and each DLL have their own atexit function chains.
13
14         #define g_atexit as atexit instead. This means it has a
15         better chance of doing what the caller wants. For instance,
16         gtkhtml calls g_atexit() registering a function in gtkhtml
17         itself. This caused a crash when g_atexit() was implemented as a
18         function in the GLib DLL. The gtkhtml DLL was already unloaded by
19         the time the GLib DLL got unloaded.
20
21         * glib/gutils.c: #undef the #define mentioned above, to also get a
22         real g_atexit() into the DLL for backward compatibility. Document
23         the Windows behaviour of g_atexit(), and document the varying ways
24         atexit() can behave in the context of dynamically loaded modules
25         on Unix.
26
27 2005-08-31  Matthias Clasen  <mclasen@redhat.com>
28
29         * glib/glib.symbols: 
30         * glib/gquark.h: 
31         * glib/gdataset.c: Add string interning functions.
32
33 2005-08-28  Matthias Clasen  <mclasen@redhat.com>
34
35         * glib/giochannel.c: Unify some near-duplicate strings. (#314654,
36         Clytie Siddall)
37         
38 2005-08-26  Matthias Clasen  <mclasen@redhat.com>
39
40         * configure.in: Bump version to 2.9.0
41
42 2005-08-25  Tor Lillqvist  <tml@novell.com>
43
44         Make also the g_spawn*() functions take parameters in the GLib
45         file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
46         API or ABI. Like the other GLib API that was earlier changed to
47         use UTF-8 on Windows, the names of the functions that take UTF-8
48         have _utf8 suffixes added by using preprocessor macros in the
49         header file. The old names are kept for functions with the old
50         behaviour, taking parameters in the system codepage, for DLL ABI
51         stability.
52         
53         * glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
54         g_spawn*() functions.
55         
56         * glib/gspawn-win32.c: Use wide-char API on NT-based
57         Windows. Convert parameters from UTF-8 to wide chars (NT) or
58         system codepage (Win9x) and call the C library _wspawn*() or
59         spawn*() functions respectvely. Add DLL ABI stability versions
60         that take parameters in the system codepage.
61
62         * glib/gspawn-win32-helper.c: On NT-based Windows use the
63         wide-char versions of argv and envp, and use wide-char API to
64         change directory and spawn the program to run. Remove the verbose
65         debugging output, it was too complex to modify for the wide-char
66         features. (Just add temporary debugging printouts if needed, no
67         need to have them permanently in the source.)
68
69         * glib/gspawn.c: Corresponding documentation updates.
70
71         * glib/glib.symbols: Corresponding changes: Mark the ABI stability
72         symbols as PRIVATE, add the new _utf8-suffixed ones.
73
74 2005-08-24  Stepan Kasal  <kasal@ucw.cz>
75
76         * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is
77         guint64 otherwise and that can produce warnings about comparison
78         between signed and unsigned.
79
80 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
81
82         * glib/gutils.c: Fix the crt_externs.h include.
83
84 2005-08-23  Stepan Kasal  <kasal@ucw.cz>
85
86         * NEWS: Fix spelling of my first name.
87
88 2005-08-23  Matthias Clasen  <mclasen@redhat.com>
89
90         * Bump version
91
92         * === Released 2.8.1 ===
93
94         * NEWS: Updates
95
96 2005-08-20  Hans Breuer  <hans@breuer.org>
97
98         * glib/makefile.msc.in : link with ws2_32.lib
99
100 2005-08-18  Tor Lillqvist  <tml@novell.com>
101
102         * configure.in: Check for <sys/wait.h>
103
104         * glib/gbacktrace.c: Include <sys/wait.h> on if HAVE_SYS_WAIT_H.
105
106 2005-08-18  Ross Burton  <ross@burtonini.com>
107
108         * glib/gstring.c:
109         Optimise single-character insertions.
110         
111         * glib/gutf8.c:
112         Note copied code.
113         
114         * tests/string-test.c:
115         Add tests for new optimisation, and fix a leak.
116
117 2005-08-17  Matthias Clasen  <mclasen@redhat.com>
118
119         * configure.in: Check for crt_externs.h and _NSGetEnviron.
120
121         * glib/gutils.c: On Darwin, include crt-externs.h and
122         define environ using _NSGetEnviron().  (#313731)
123
124 2005-08-16  Stepan Kasal  <kasal@ucw.cz>
125
126         * glib/gutils.c (g_get_any_init): Move the body of the big if...
127         (g_get_any_init_do): ... to this new function.
128         (g_get_any_init): Declare as inline.
129         (g_get_any_init_locked): New inline function, does the locking.
130         Make use of these two throughout the code.
131
132 2005-08-15  Matthias Clasen  <mclasen@redhat.com>
133
134         * glib/gbacktrace.c (g_on_error_stack_trace): Wait for
135         the child process and then simply return. This makes 
136         The "S" option work as documented in g_on_error_query().
137         (#313125, Matthew F. Barnes)
138
139         * glib/gunicode.h: Update the link to Unicode category
140         values.  (#313369, Behnam Esfahbod)
141
142         * glib/gqueue.c (g_queue_find_custom): Clarify docs
143         a little.  (#311727, Tristan van Berkom)
144
145         * glib/abicheck.sh, gobject/abicheck.sh: Make the 
146         check work on ia64 too, where some symbols ended up 
147         in yet another section.
148