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