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