1 2005-09-20 Matthias Clasen <mclasen@redhat.com>
3 * glib/gqueue.c (g_queue_insert_sorted): Correct the docs.
6 Mon Sep 19 17:23:23 2005 Tim Janik <timj@imendio.com>
8 * glib/gpattern.c: applied a patch from matthias which checks on the
9 upper bound of GPatternSpec length to optimize matches.
12 * tests/patterntest.c: added more match cases.
14 2005-09-16 Tor Lillqvist <tml@novell.com>
16 * glib/gstrfuncs.c (g_ascii_strcasecmp, g_ascii_strncasecmp): Add
17 warning to doc comment that these functions should not be used on
20 2005-09-14 Matthias Clasen <mclasen@redhat.com>
22 * tests/keyfile-test.c: Add a test for grup names of length 1.
24 * glib/gkeyfile.c (g_key_file_line_is_group): Accept group names
25 of length 1. (#316309)
27 2005-09-12 Matthias Clasen <mclasen@redhat.com>
29 * glib/gmarkup.c (g_markup_escape_text): Clarify docs.
31 2005-09-11 Sebastian Wilhelmi <seppi@seppi.de>
33 * tests/refcount/Makefile.am (INCLUDES): Link the the refcount
34 tests to the system thread library $(G_THREAD_LIBS). Fixes #313744
37 2005-09-11 Kjartan Maraas <kmaraas@gnome.org>
39 * glib/gmain.c: (g_child_watch_prepare), (g_child_watch_check),
40 (child_watch_helper_thread): Remove some dead code. Closes
43 2005-09-07 Tor Lillqvist <tml@novell.com>
45 * glib/Makefile.am: Create also a console version of the
46 gspawn-win32-helper program, gspawn-win32-helper-console.exe.
47 It's otherwise identical to gspawn-win32-helper.exe, except marked
48 as a console application (linked without the -mwindows option).
50 * glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes):
51 Drop the dont_wait parameter. Its truth value correlated 100% with
52 the NULLness of the exit_status parameter anyway, so it's enough
53 to check whether exit_status is NULL. Invert the sense of the
54 dont_return_handle parameter and rename it to do_return_handle, to
55 make the code easier to read by avoiding double negations.
57 (g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls
58 to do_spawn_with_pipes() accordingly.
60 (do_spawn_with_pipes): If we have a console, use the console
61 version of the helper program, otherwise use the GUI one. This
62 avoids extra console windows opening up in some situations. (In
63 case a console application uses the GUI gspawn-win32-helper.exe to
64 spawn another console application we would get a separate console
65 for the spawned console application).
67 * glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
69 2005-09-05 Matthias Clasen <mclasen@redhat.com>
71 * glib/gmappedfile.c (g_mapped_file_new): Report an error
72 if the file is too large. (#315275, Kjartan Maraas)
74 * glib/gkeyfile.c (g_key_file_load_from_fd): The return value
75 of read() is signed. (#315273, Kjartan Maraas)
77 2005-08-31 Tor Lillqvist <tml@novell.com>
79 * glib/gutils.h: Wrapping atexit() is a bad idea on Windows, where
80 the EXE and each DLL have their own atexit function chains.
82 #define g_atexit as atexit instead. This means it has a
83 better chance of doing what the caller wants. For instance,
84 gtkhtml calls g_atexit() registering a function in gtkhtml
85 itself. This caused a crash when g_atexit() was implemented as a
86 function in the GLib DLL. The gtkhtml DLL was already unloaded by
87 the time the GLib DLL got unloaded.
89 * glib/gutils.c: #undef the #define mentioned above, to also get a
90 real g_atexit() into the DLL for backward compatibility. Document
91 the Windows behaviour of g_atexit(), and document the varying ways
92 atexit() can behave in the context of dynamically loaded modules
95 2005-08-31 Matthias Clasen <mclasen@redhat.com>
99 * glib/gdataset.c: Add string interning functions.
101 2005-08-28 Matthias Clasen <mclasen@redhat.com>
103 * glib/giochannel.c: Unify some near-duplicate strings. (#314654,
106 2005-08-26 Matthias Clasen <mclasen@redhat.com>
108 * configure.in: Bump version to 2.9.0
110 2005-08-25 Tor Lillqvist <tml@novell.com>
112 Make also the g_spawn*() functions take parameters in the GLib
113 file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
114 API or ABI. Like the other GLib API that was earlier changed to
115 use UTF-8 on Windows, the names of the functions that take UTF-8
116 have _utf8 suffixes added by using preprocessor macros in the
117 header file. The old names are kept for functions with the old
118 behaviour, taking parameters in the system codepage, for DLL ABI
121 * glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
122 g_spawn*() functions.
124 * glib/gspawn-win32.c: Use wide-char API on NT-based
125 Windows. Convert parameters from UTF-8 to wide chars (NT) or
126 system codepage (Win9x) and call the C library _wspawn*() or
127 spawn*() functions respectvely. Add DLL ABI stability versions
128 that take parameters in the system codepage.
130 * glib/gspawn-win32-helper.c: On NT-based Windows use the
131 wide-char versions of argv and envp, and use wide-char API to
132 change directory and spawn the program to run. Remove the verbose
133 debugging output, it was too complex to modify for the wide-char
134 features. (Just add temporary debugging printouts if needed, no
135 need to have them permanently in the source.)
137 * glib/gspawn.c: Corresponding documentation updates.
139 * glib/glib.symbols: Corresponding changes: Mark the ABI stability
140 symbols as PRIVATE, add the new _utf8-suffixed ones.
142 2005-08-24 Stepan Kasal <kasal@ucw.cz>
144 * glib/gtypes.h (G_MININT64): Cast the constant to gint64; it is
145 guint64 otherwise and that can produce warnings about comparison
146 between signed and unsigned.
148 2005-08-23 Matthias Clasen <mclasen@redhat.com>
150 * glib/gutils.c: Fix the crt_externs.h include.
152 2005-08-23 Stepan Kasal <kasal@ucw.cz>
154 * NEWS: Fix spelling of my first name.
156 2005-08-23 Matthias Clasen <mclasen@redhat.com>
160 * === Released 2.8.1 ===
164 2005-08-20 Hans Breuer <hans@breuer.org>
166 * glib/makefile.msc.in : link with ws2_32.lib
168 2005-08-18 Tor Lillqvist <tml@novell.com>
170 * configure.in: Check for <sys/wait.h>
172 * glib/gbacktrace.c: Include <sys/wait.h> on if HAVE_SYS_WAIT_H.
174 2005-08-18 Ross Burton <ross@burtonini.com>
177 Optimise single-character insertions.
182 * tests/string-test.c:
183 Add tests for new optimisation, and fix a leak.
185 2005-08-17 Matthias Clasen <mclasen@redhat.com>
187 * configure.in: Check for crt_externs.h and _NSGetEnviron.
189 * glib/gutils.c: On Darwin, include crt-externs.h and
190 define environ using _NSGetEnviron(). (#313731)
192 2005-08-16 Stepan Kasal <kasal@ucw.cz>
194 * glib/gutils.c (g_get_any_init): Move the body of the big if...
195 (g_get_any_init_do): ... to this new function.
196 (g_get_any_init): Declare as inline.
197 (g_get_any_init_locked): New inline function, does the locking.
198 Make use of these two throughout the code.
200 2005-08-15 Matthias Clasen <mclasen@redhat.com>
202 * glib/gbacktrace.c (g_on_error_stack_trace): Wait for
203 the child process and then simply return. This makes
204 The "S" option work as documented in g_on_error_query().
205 (#313125, Matthew F. Barnes)
207 * glib/gunicode.h: Update the link to Unicode category
208 values. (#313369, Behnam Esfahbod)
210 * glib/gqueue.c (g_queue_find_custom): Clarify docs
211 a little. (#311727, Tristan van Berkom)
213 * glib/abicheck.sh, gobject/abicheck.sh: Make the
214 check work on ia64 too, where some symbols ended up
215 in yet another section.