don't hardcode lengths for cut, instead split on the third field.
[platform/upstream/glib.git] / ChangeLog.pre-2-6
1 Thu Sep 16 18:42:46 2004  Manish Singh  <yosh@gimp.org>
2
3         * glib/abicheck.sh: don't hardcode lengths for cut, instead split on
4         the third field.
5
6 Thu Sep 16 18:15:32 2004  Manish Singh  <yosh@gimp.org>
7
8         * glib/gstrfuncs.c (g_strncasecmp): Make it take a guint for number
9         of characters, instead of a gsize. Technically this is incorrect,
10         but this makes it match the prototype, and this is a deprecated
11         function anyway.
12
13 2004-09-16  Matthias Clasen  <mclasen@redhat.com>
14
15         * glib/Makefile.am (EXTRA_DIST): Add abicheck.sh
16
17 Thu Sep 16 02:03:15 2004  Matthias Clasen  <maclas@gmx.de>
18
19         Implement the same PLT reduction technique used in GTK+:
20         
21         * glib/glib.symbols: Master list of symbols
22
23         * glib/makegalias.pl: Perl script which creates galias.h
24
25         * glib/abicheck.sh: Compares actual exports against glib.symbols 
26
27         * glib/glib.def: Removed. This file is now generated from
28         glib.symbols
29         
30         * glib/Makefile.am: Add rules to generate galias.h and glib.def,
31         and add abicheck.sh to TESTS. Don't export _-prefixed symbols.
32         
33         * configure.in: Add --disable-visibility to suppress the 
34         use of ELF visibility attributes.
35
36         * glib/*.c: Include galias.h
37
38 2004-09-15  Tor Lillqvist  <tml@iki.fi>
39
40         * glib/gwin32.c (g_win32_error_message): Convert message to
41         UTF-8. Technically this breaks API, but the actual use cases in
42         gdk/win32 have assumed it is UTF-8 anyway. Fix
43         documentation. (#152618, Kazuki Iwamoto)
44
45         * glib/gwin32.h: Don't define ftruncate as a macro. Was never a
46         good idea, and it clashes with newest mingw headers, which have a
47         ftruncate implementation as an inline function. Thanks to Dominik R.
48
49         * glib/gwin32.c (g_win32_ftruncate): Simplify implementation, just
50         call _chsize() in the C library.
51
52 2004-09-15  Matthias Clasen  <mclasen@redhat.com>
53
54         * NEWS: Update.
55
56 2004-09-09  Matthias Clasen  <mclasen@redhat.com>
57
58         * glib/gmessages.c (g_return_if_fail_warning): Strip the
59         prefix "IA__" from function names, since that is what
60         GTK+ uses for the PLT-reduction aliases. 
61
62 Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
63
64         * glib/gmessages.c (g_return_if_fail_warning): 
65         Include implementation of g_return_if_fail_internal().
66
67 Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
68
69         * glib/gmessages.h (g_return_[val_]if_fail): Use
70         a helper function to reduce code size; omit FILE/LINE
71         when we have __PRETTY_FUNCTION__.
72
73 2004-09-09  Matthias Clasen  <mclasen@redhat.com>
74
75         * glib/gutils.c (g_get_home_dir): Remove a misleading comment.
76
77 Thu Sep  9 00:10:40 2004  Matthias Clasen  <maclas@gmx.de>
78
79         * glib/gstrfuncs.h: 
80         * glib/gstrfuncs.c (g_strv_length): Add a function to 
81         calculate the length of a NULL-terminated string 
82         array.  (#150455, Tim-Philipp Müller)
83
84         * tests/strfunc-test.c (main): Add a test for g_strv_length().
85
86 2004-09-08  Tor Lillqvist  <tml@iki.fi>
87
88         * glib/gutils.c (guess_category_value): On Win32, as last resort
89         call g_win32_getlocale() to get the current thread locale. There
90         usually aren't any POSIXish LANG or LC_* environment variables
91         present on Windows machines.
92
93         * glib/glib.def: Add g_get_language_names.
94
95 2004-09-07  Matthias Clasen  <mclasen@redhat.com>
96
97         * glib/gutils.h: 
98         * glib/gutils.c (g_get_language_names): Add a function to
99         return a list of applicable locale names.  (#95587, 
100         Hidetoshi Tajima)
101         (guess_category_value, compute_locale_variants):
102         (explode_locale, unalias_lang, read_aliases): Helper 
103         functions for g_get_language_names()
104
105         * tests/testglib.c (main): Show the results of 
106         g_get_language_names()
107
108 Sun Sep  5 01:46:11 2004  Matthias Clasen  <maclas@gmx.de>
109
110         * glib/glib.def: 
111         * glib/gmessages.h: 
112         * glib/gmessages.c (g_log_set_default_handler): New
113         function to install an alternate default log 
114         handler.  (#66387, Darin Adler)
115
116 2004-09-03  Tor Lillqvist  <tml@iki.fi>
117
118         * glib/glib.def: Update.
119
120 Wed Sep  1 20:22:39 2004  Matthias Clasen  <maclas@gmx.de>
121
122         * glib/gdate.h:
123         * glib/gdate.c (g_date_get_iso8601_week_of_year): Add
124         a function to calculate the ISO 8601 week number of 
125         a date.  (#92579, Niklas Lundell)
126
127 2004-09-01  Anders Carlsson  <andersca@gnome.org>
128
129         * glib/goption.c: (g_option_context_parse):
130         Set program name before calling the pre-parse hooks.
131         
132 2004-09-01  Anders Carlsson  <andersca@gnome.org>
133
134         * glib/goption.c: (g_option_context_free), (print_help),
135         (g_option_context_parse):
136         Handle option contexts without a main group.
137         
138         * tests/option-test.c: (empty_test2), (main):
139         Add test case for that.
140         
141 2004-08-30  Anders Carlsson  <andersca@gnome.org>
142
143         * glib/goption.c: (g_option_context_parse):
144         Set prgname to <unknown> if argc and argv are NULL.
145         
146         * tests/option-test.c: (empty_test1), (main):
147         Add test case for that.
148         
149 Sun Aug 29 23:58:38 2004  Matthias Clasen  <maclas@gmx.de>
150
151         * glib/ghash.c (g_hash_table_lookup): Point to 
152         g_hash_table_lookup_extended() for differentiation between
153         not-found and value-is-NULL.  (#150960, Morten Welinder)
154
155 2004-08-27  Matthias Clasen  <mclasen@redhat.com>
156
157         Fix #151193, Stepan Kasal:
158         
159         * glib/gfileutils.c (g_file_error_from_errno): 
160         * glib/gfileutils.h (enum GFileError): Add G_FILE_ERROR_NOSYS.
161
162 Fri Aug 27 00:45:41 2004  Matthias Clasen  <maclas@gmx.de>
163
164         * glib/goption.c (g_option_context_parse): Set the program name
165         from argv[0], noticed by Masatake YAMATO.
166
167 2004-08-26  Tor Lillqvist  <tml@iki.fi>
168
169         * tests/testglib.c (main): Test the new XDG basedir functions.
170
171 2004-08-25  Tor Lillqvist  <tml@iki.fi>
172
173         * glib/gwin32.c (g_win32_get_windows_version): New
174         function. Returns the Windows version code like GetVersion(),
175         except that one can pretend to be running on Win9x by setting the
176         G_WIN32_PRETEND_WIN9X environment variable. This is mainly for
177         debugging purposed.
178
179         * glib/gwin32.h: Declare it. Define macros G_WIN32_WINDOWS_IS_NT_BASED 
180         and G_WIN32_HAVE_WIDECHAR_API to test Windows features at run-time.
181
182 2004-08-25  Matthias Clasen  <mclasen@redhat.com>
183
184         * configure.in: Post-release version bump.
185
186         * === Released 2.5.2 ===
187
188 Wed Aug 25 00:25:08 2004  Matthias Clasen  <maclas@gmx.de>
189
190         * NEWS: Update for 2.5.2
191
192 2004-08-25  Tor Lillqvist  <tml@iki.fi>
193
194         Win32 equivalences of the XDG folders
195         
196         * glib/gutils.c (get_special_folder): New function, calls
197         SHGetSpecialFolderLocation() to get path to places like the My
198         Documents folder.
199         (g_get_any_init): Use CSIDL_PROFILE as HOME if not
200         overridden by env vars.
201         (g_get_user_data_dir): Use CSIDL_PERSONAL.
202         (g_get_user_config_dir): Use CSIDL_APPDATA.
203         (g_get_user_cache_dir): Use CSIDL_INTERNET_CACHE. Debatable...
204         (g_get_system_data_dirs): Use CSIDL_COMMON_APPDATA and
205         CSIDL_COMMON_DOCUMENTS.
206         (g_get_system_config_dirs): Use CSIDL_COMMON_APPDATA.
207
208         * configure.in: Add -lole32 to G_LIBS_EXTRA for mingw.
209
210         * glib/glib.def: Add the new functions.
211
212 Mon Aug 23 16:16:35 2004  Manish Singh  <yosh@gimp.org>
213
214         * glib/goption.c (g_option_group_add_entries): remove unused
215         variable.
216
217 Mon Aug 23 01:35:18 2004  Matthias Clasen  <maclas@gmx.de>
218
219         * glib/gutils.c (g_get_user_cache_dir): 
220         * glib/gutils.c (g_get_user_config_dir): 
221         * glib/gutils.c (g_get_user_data_dir): Don't call g_get_home_dir()
222         while holding the g_utils_global lock, simply use g_home_dir. 
223         (#150695, Jody Goldberg)
224
225 2004-08-21  Tor Lillqvist  <tml@iki.fi>
226
227         * glib/giowin32.c (g_io_win32_finalize): Tell select_thread to
228         break out of its loop. Prevents a thread leak. (#147392, Peter
229         Zelezny)
230
231         * glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
232         return value from strxfrm(). For instance Microsoft's strxfrm()
233         returns INT_MAX on errors. (#141124)
234
235 2004-08-19  Tor Lillqvist  <tml@iki.fi>
236
237         * glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
238         source and destination charset parameter order in g_convert()
239         call. (#150394, possibly also #141124)
240
241 2004-08-20  Jon K Hellan  <hellan@acm.org>
242
243         * glib/goption.h: Remove trailing commas.
244
245 2004-08-17  Matthias Clasen  <mclasen@redhat.com>
246
247         * configure.in: Check for all four values of the
248         visibility attribute; gcc 2.96 seems to miss 
249         "default".  (#150379, Vincent Noel)
250
251 2004-08-16  Christian Rose  <menthos@menthos.com>
252
253         * configure.in: Added "bs" to ALL_LINGUAS.
254
255 2004-08-11  Ray Strode  <rstrode@redhat.com>
256
257         * docs/reference/glib/glib-sections.txt: 
258         * glib/gutils.[ch] (g_get_user_data_dir),
259         (g_get_user_config_dir), (g_get_user_cache_dir),
260         (g_get_system_data_dirs), (g_get_system_config_dirs): 
261         Add new XDG basedir API (bug 139973).
262
263 2004-08-10  Matthias Clasen  <mclasen@redhat.com>
264
265         * glib/gmacros.h: Remove G_GNUC_INTERNAL from here.
266         * configure.in: Check whether the visibility attribute
267         works and define G_HAVE_GNUC_VISIBILITY and 
268         G_GNUC_INTERNAL in glibconfig.h correspondingly.
269
270 Mon Aug  9 17:37:56 2004  Matthias Clasen  <maclas@gmx.de>
271
272         * glib/gmacros.h (G_GNUC_INTERNAL): Define empty if gcc is too old.
273
274 2004-08-06  Hans Breuer  <hans@breuer.org>
275
276         * glib/makefile.msc.in glib/glib.def : updated
277
278         * glib/gutils.c : avoid 'inconsitent dll linkage' by not
279         defining extern char** environ with msvc
280
281 2004-08-06  Matthias Clasen  <mclasen@redhat.com>
282
283         * m4macros/glib-gettext.m4: Require ngettext.  (#123847,
284         Danilo Segan)
285
286 Thu Aug  5 20:53:00 2004  Ray Strode  <rstrode@redhat.com>
287
288         * glib/gutils.h (g_get_codeset): strdup result so caller
289         doesn't free internally managed memory.
290
291 2004-08-04  Tor Lillqvist  <tml@iki.fi>
292
293         * glib/glib.def: Add glib_check_version.
294
295         * config.h.win32.in: Update to match what configure produces. Add
296         the G_ATOMIC_*. Define G_ATOMIC_I486 when compiling with gcc. Move
297         HAVE_INT64_AND_I64 to where the configure script puts it. Add
298         HAVE_INTTYPES_H_WITH_UINTMAX. Define intmax_t as __int64 for MSVC.
299
300 Tue Aug  3 16:19:44 2004  Matthias Clasen  <maclas@gmx.de>
301
302         * glib/goption.c: Mark user visible strings for translation.
303
304 Tue Aug  3 15:50:55 2004  Matthias Clasen  <maclas@gmx.de>
305
306         * glib/goption.[hc]: Pedantically use g types throughout.
307
308 Tue Aug  3 14:58:20 2004  Matthias Clasen  <maclas@gmx.de>
309
310         * glib/gutils.h: 
311         * glib/gutils.c (glib_check_version): New function to
312         check the version of GLib at runtime.  (#149175, Michael Natterer)
313
314 2004-08-03  Anders Carlsson  <andersca@gnome.org>
315
316         * glib/goption.h:
317         * glib/gtypes.h:
318         Move GTranslateFunc to gtypes.h
319         
320 2004-08-02  Anders Carlsson  <andersca@gnome.org>
321
322         * glib/Makefile.am:
323         * glib/glib.h:
324         * glib/goption.c:
325         * glib/goption.h:
326         * tests/.cvsignore:
327         * tests/Makefile.am:
328         * tests/option-test.c: 
329         Add GOption.
330
331 2004-08-02  Matthias Clasen  <mclasen@redhat.com>
332
333         * glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
334         declarations as internal and avoid PLT indirections for 
335         them.  (#145465, Arjan van de Ven)
336
337         * glib/gunicodeprivate.h: 
338         * glib/gthreadinit.h: 
339         * glib/gmessages.h: 
340         * glib/gdebug.h: 
341         * glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
342         _g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
343         _g_messages_thread_init(), _g_convert_thread_init(), 
344         _g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
345         _g_mem_thread_private_init(), _g_messages_thread_private_init(),
346         _g_utf8_normalize_wc() and _g_unichar_combining_class().
347
348         * glib/gatomic.c: Include gthreadinit.h here to see the declaration
349         for _g_atomic_thread_init().
350
351 Sun Aug  1 13:19:18 2004  Manish Singh  <yosh@gimp.org>
352
353         * tests/uri-test.c: move newline printing from run_from_uri_tests()
354         to run_roundtrip_tests().
355
356 2004-08-01 Matthias Clasen  <mclasen@redhat.com>
357
358         * Post-release version bump
359
360         * === Released 2.5.1 ===
361
362 Sat Jul 31 23:17:05 2004  Matthias Clasen  <maclas@gmx.de>
363
364         * NEWS: Updates.
365
366 Sat Jul 31 20:33:07 2004  Matthias Clasen  <maclas@gmx.de>
367
368         * tests/shell-test.c: Include a test involving consecutive
369         backslashes followed by a non-escaped doublequote.
370         
371         * glib/gshell.c (tokenize_command_line): Count consecutive
372         backslashes mod 2 to detect escaped doubleqotes.  (#127306)
373
374 2004-07-30  Matthias Clasen  <mclasen@redhat.com>
375
376         * glib/gconvert.c (g_unescape_uri_string): Don't validate
377         for UTF-8 here.  (#148420, Robert Ögren)
378
379         * tests/uri-test.c (run_roundtrip_tests): Add tests for 
380         roundtrip compatibility. Going from filename to uri and 
381         back should always give you the same filename back. 
382
383 2004-07-28  Matthias Clasen  <mclasen@redhat.com>
384
385         * tests/markups/valid-{9,10,11}.gmarkup: 
386         * tests/markups/fail-{37,38,39}.gmarkup: Tests for handling
387         of whitespace inside tags.
388
389         * glib/gmarkup.c (enum GMarkupParseState): Add 
390         STATE_AFTER_ATTRIBUTE_NAME and STATE_AFTER_CLOSE_TAG_NAME.
391         (g_markup_parse_context_parse): Accept whitespace between
392         attribute names, '=' and attribute values and between
393         close tag name and '>'. (#148646, Hiroyuki Ikezoe)
394
395 Tue Jul 27 02:01:31 2004  Matthias Clasen  <maclas@gmx.de>
396
397         * glib/gstrfuncs.c (g_strsplit_set): s/g_strsplit/g_strsplit_set/
398         as well.
399
400 Sat Jul 24 17:50:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
401
402         * glib/gstrfuncs.c (g_strsplit_set):
403         s/g_strtokenize/g_strsplit_set/ in docs.
404
405 Fri Jul 23 10:37:50 2004  Matthias Clasen  <maclas@gmx.de>
406
407         * tests/type-test.c (main): Actually test G_MAXSIZE with
408         a gsize variable.
409
410 2004-07-21  Matthias Clasen  <mclasen@redhat.com>
411
412         Fix #132858, Sven Neumann, patch by James Henstridge:
413         
414         * glib-gettextize.in: modify so that mkinstalldirs will 
415         get installed into auxdir.
416
417         * Makefile.am (gettext_SCRIPTS): install mkinstalldirs.
418
419 2004-07-21  Matthias Clasen  <mclasen@redhat.com>
420
421         Fix #147651, reported by Oliver Guntermann:
422
423         * glib/gprintfint.h (_g_vasprintf): Don't wrap vasprintf(),
424         _g_gnulib_vasprintf() in a macro, since they behave 
425         differently wrt. to memory allocation.
426
427         * glib/gprintf.c (g_vasprintf): Instead, differentiate 
428         here between the three cases: system vasprintf(), 
429         _g_gnulib_vasprintf(), no vasprintf().  
430
431 2004-07-20  Crispin Flowerday  <gnome@flowerday.cx>
432
433         * NEWS: Fix a typo in my name
434
435 Tue Jul 20 04:31:40 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
436
437         * configure.in: Bump version number
438
439 Sun Jul 18 19:40:30 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
440
441         * === Released 2.5.0 ===
442
443         * Makefile.am (BUILT_EXTRA_DIST): move gtk-doc.make here.
444
445 Sun Jul 18 01:40:28 2004  Matthias Clasen  <maclas@gmx.de>
446
447         * NEWS: Updates for 2.5.0
448
449 Mon Jul 12 00:02:40 2004  Matthias Clasen  <maclas@gmx.de>
450
451         * glib/gi18n-lib.h: Remove the ENABLE_NLS check here as well.
452
453 2004-07-09  Matthias Clasen  <mclasen@redhat.com>
454
455         * glib/gdir.c (g_dir_open): Convert filename to UTF-8 
456         before using it in the error message.  (#146054, Federico
457         Mena Quintero)
458
459 Thu Jul  8 00:54:32 2004  Matthias Clasen  <maclas@gmx.de>
460
461         * glib/gi18n.h: Remove the ENABLE_NLS check, since GLib can't
462         be built without anyway.  (#135899, Murray Cumming)
463
464 Mon Jul  5 18:50:27 2004  Matthias Clasen  <maclas@gmx.de>
465
466         * glib/gmessages.h (g_debug): Complete the g_log() 
467         family.  (#135730, Sven Herzberg)
468
469 Mon Jul  5 18:42:30 2004  Matthias Clasen  <maclas@gmx.de>
470
471         * glib/gnulib/Makefile.am (INCLUDES): Add top_srcdir to 
472         make srcdir != . work.  (#145166, Kaz Sasayama)
473
474 Sun Jul  4 01:52:18 2004  Matthias Clasen  <maclas@gmx.de>
475
476         * configure.in: Use a small test library instead of
477         libpthread.so for testing RTLD_GLOBAL brokenness.  (#139567,
478         Julio M. Merino Vidal)
479         
480 2004-07-02  Sebastian Wilhelmi  <seppi@seppi.de>
481
482         * glib/gatomic.c: Rename __asm to __asm__ and __volatile to
483         __volatile__ to make the file consistent. Spotted by Benoit
484         Carpentier <gtkool_2kx@yahoo.fr>.
485
486 2004-07-01  John Ehresman  <jpe@wingide.com>
487
488         * glib/giowin32.c (g_io_channel_win32_init, g_io_win32_free)
489         Initialize reset_send & reset_recv fields and don't close
490         sockets unless they were created.  (#145153)
491
492 Fri Jun 11 22:56:46 2004  Matthias Clasen  <maclas@gmx.de>
493
494         * glib/gscanner.c (g_scanner_get_token_ll): Ignore a 
495         missing newline at EOF for single line comments.  
496         (#83674, Sven Neumann)
497
498 Thu Jun 10 23:38:02 2004  Matthias Clasen  <maclas@gmx.de>
499
500         * tests/printf-test.c (TEST): Actually set any_failed on 
501         failure.  (#143552, Philippe Blain)
502
503 2004-06-09  Federico Mena Quintero  <federico@ximian.com>
504
505         * tests/uri-test.c (to_uri_tests): Fix expected results (ha ha)
506         for URIs that *should* have been invalid, or viceversa.
507         (from_uri_tests): Likewise.
508
509 2004-06-07  Federico Mena Quintero  <federico@ximian.com>
510
511         Fixes #140532.
512
513         * glib/gconvert.c (is_asciialphanum): Renamed from
514         is_escalphanum(); ensures that this is an ASCII character.
515         (is_asciiescalpha): Renamed from is_escalpha().
516         (hostname_validate): Use the two functions above.
517         (g_filename_to_uri): Don't convert the filename to UTF-8.
518         (g_filename_from_uri): Don't convert the filename from UTF-8.
519
520 Mon Jun  7 22:25:24 2004  Matthias Clasen  <maclas@gmx.de>
521
522         * tests/run-markup-tests.sh: Default to silence, but support
523         a -v argument to get the old output back. 
524
525 2004-06-06  Tor Lillqvist  <tml@iki.fi>
526
527         * glib/gutils.c (g_get_any_init): Check home for being
528         NULL. (#143812, Ivan Wong)
529
530 Sun Jun  6 15:23:00 2004  Pawan Chitrakr  <pawan@nplinu.org>
531
532         * configure.in: Added "ne" (Nepali) in ALL_LINGUAS
533
534 Fri Jun  4 19:26:47 2004  Manish Singh  <yosh@gimp.org>
535
536         * glib/galloca.h: cpp #directives should always have the "#" in the
537         first column of the the line. Do that for "#pragma alloca". Fixes
538         bug #143744.
539
540 Wed Jun  2 00:57:16 2004  Matthias Clasen  <maclas@gmx.de>
541
542         * glib/gtypes.h: Use higher precision for the mathematical
543         constants.  (#141941, Morten Welinder)
544
545 Tue Jun  1 22:01:40 2004  Matthias Clasen  <maclas@gmx.de>
546
547         * glib/gmarkup.c (advance_char): Fix an off-by-one error 
548         in g_markup_parse_context_parse().  (#142794, Morten Welinder)
549
550 Sun May 16 23:23:29 2004  Matthias Clasen  <maclas@gmx.de>
551
552         Merged from 2.4:
553         
554         * glib/gcompletion.c (g_completion_add_items):
555         (g_completion_remove_items): Remove unnecessary 
556         checks.  (#142559, Morten Welinder)
557
558 2004-05-15  Tor Lillqvist  <tml@iki.fi>
559
560         * glib/gutils.c (g_get_any_init): [Win32] Only believe HOME if it
561         is an absolute path and exists. (#138618)
562
563 2004-05-14  Tor Lillqvist  <tml@iki.fi>
564
565         * glib/gnulib/vasnprintf.c (vasnprintf): Handle empty digit string
566         for precision correctly. (#142400)
567
568         For backward compatibility with the Trio implementation, make "ll"
569         format modifer work on Win32, too. Change into "I64" before
570         passing to the system printf. (#142433)
571
572         * tests/printf-test.c (main): Add tests for the above.
573
574 2004-05-10  Matthias Clasen  <mclasen@redhat.com>
575
576         Merge from 2.4:
577         
578         * glib/gmain.c (block_source, unblock_source): Make these 
579         static.  (#142230, Morten Welinder)
580
581 2004-05-10  Tor Lillqvist  <tml@iki.fi>
582
583         * glib/giowin32.c (g_win32_print_gioflags): Remove two duplicated
584         lines. Thanks to Benoît Carpentier.
585
586 Sun May  9 02:04:14 2004  Matthias Clasen  <maclas@gmx.de>
587
588         Merge from 2.4:
589         
590         * glib/guniprop.c (g_utf8_casefold): Avoid an unnecessary
591         memleak.  (#141998, Nikolai Weibull)
592
593 Sat May  8 23:02:26 2004  Matthias Clasen  <maclas@gmx.de>
594
595         Merge from 2.4:
596         
597         * glib/gutils.h: Remove vestigial g_get_codeset().
598         * glib/gutils.c (g_get_codeset): Call g_get_charset().
599         (#137703, Owen Taylor)
600
601 2004-05-06  Matthias Clasen  <mclasen@redhat.com>
602
603         * configure.in: Bump version number to 2.5.0.
604
605 Wed May  5 23:35:44 2004  Matthias Clasen  <maclas@gmx.de>
606
607         * glib/gconvert.c (g_filename_from_uri): Quote the file
608         scheme to mark it as untranslatable. String change.  
609         (#133144, Danilo Segan)
610
611 2004-05-03  Pablo Saratxaga  <pablo@mandrakesoft.com>
612
613         * configure.in: Added Walloon (wa) to ALL_LINGUAS
614
615 Sun May  2 03:51:59 2004  Manish Singh  <yosh@gimp.org>
616
617         * glib/gtypes.h: check for __pentium4__ when deciding whether to
618         use bswap for GUINT32_SWAP_LE_BE_IA32(). Fixes bug #141620.
619
620 2004-05-01  Hans Breuer  <hans@breuer.org>
621
622         * glib/gnulib/Makefile.am : added makefile.msc to EXTRA_DIST
623         fixes #141563, Steve Lhomme
624
625 2004-04-30  Matthias Clasen  <mclasen@redhat.com>
626
627         * === Released 2.4.1 ===
628
629         * configure.in: Version 2.4.1, interface age 1. 
630
631         * NEWS: Updates
632         
633 2004-04-25  Tor Lillqvist  <tml@iki.fi>
634
635         * glib/gwin32.c (g_win32_get_package_installation_subdirectory):
636         Plug memory leak. (#140770, John Ehresman)
637
638 2004-04-23  Matthias Clasen  <mclasen@redhat.com>
639
640         * glib/libcharset/localcharset.c (_g_locale_get_charset_aliases): 
641         Reinstate LIBCHARSET_ALIAS_DIR support which got lost at some
642         point.  (#139134, Piotr Klaban)
643
644         * glib/gconvert.c (open_converter): Don't call g_strerror() here, 
645         since it can lead to infinite recursion.  (#139133, Piotr Klaban)
646
647 2004-04-22  Matthias Clasen  <mclasen@redhat.com>
648
649         * tests/testglib.c (main): Trivial warning fix.  (#140345)
650
651         * tests/queue-test.c (main): Add some tests for off-by-one errors.
652
653         * glib/gqueue.c (g_queue_pop_nth_link): Fix an off-by-one 
654         error.  (#139703, Philippe Blain)
655
656         * tests/testglib.c (main): Add testcases for g_message() involving
657         non-printable and unsafe characters.
658
659         * glib/gmessages.c (escape_string): Don't assume that
660         string->str remains unchanged over g_string_insert() 
661         calls.  (#139030, Christophe Saout)
662
663         * glib/gstrfuncs.c (g_ascii_strtod): Fix problems when a 
664         locale-specific decimal separator directly follows a 
665         number.  (#138424, Nickolay V. Shmyrev)
666
667         * tests/strtod-test.c (main): Add some more testcases.
668
669         * glib/gmain.c (g_main_context_query): Only set time_is_current to 
670         FALSE if context->timeout is not zero.  (#137795, Christian Krause)
671
672 2004-04-21  Matthias Clasen  <mclasen@redhat.com>
673
674         * tests/printf-test.c (main): Comment out a nonessential testcase
675         which fails on HP-UX.  (#136283, Jonas Jonsson)
676
677 2004-04-15  Matthias Clasen  <mclasen@redhat.com>
678
679         * tests/patterntest.c (main): Add tests for the empty pattern.
680
681         * glib/gpattern.c (g_pattern_spec_new): Don't read and write out 
682         of bounds when the pattern is empty.  (#140032, Stanislav Brabec,
683         Stefan Fent)
684
685 2004-04-10  Tor Lillqvist  <tml@iki.fi>
686
687         * glib/gwin32.c (g_win32_getlocale): Add new language and
688         sublanguage codes, from GNU gettext. (#137958)
689         
690         * glib/giowin32.c
691         * glib/gmain.c
692         * glib/gstrfuncs.c
693         * glib/gthread.c: Decorating variable definitions with
694         __declspec(dllexport) causes problems on Cygwin build, and isn't
695         really needed for a native Win32 build with mingw or MSVC, so
696         remove. (#138402, Roger Leigh)
697
698         * glib/libcharset/localcharset.c: Use Win32-specific code also on
699         Cygwin.
700         * tests/uri-test.c: Don't assume that local filenames are in UTF-8
701         on Cygwin, either. (#138412, Roger Leigh)
702
703 2004-04-08  Guntupalli Karunakar  <karunakar@freedomink.org>
704
705         * configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
706
707 2004-04-03  Tor Lillqvist  <tml@iki.fi>
708
709         * configure.in: Remove AC_CYGWIN, obsolete. Don't let pthreads be
710         found on Cygwin, they don't work. (#138401, Roger Leigh)
711
712 2004-03-31  Tor Lillqvist  <tml@iki.fi>
713
714         * tests/spawn-test-win32-gui.c: Minor Cygwin fix. (#138405, Roger
715         Leigh)
716
717         * tests/unicode-encoding.c (process): Use UTF-16LE explicitly also
718         on Cygwin. (#138423, Roger Leigh)
719
720 2004-03-30  Adam Weinberger  <adamw@gnome.org>
721
722         * configure.in: Added en_CA to ALL_LINGUAS.
723
724 2004-03-21  Tor Lillqvist  <tml@iki.fi>
725
726         * glib/gutils.c (g_path_get_dirname): Fix Win32 behaviour in some
727         cases where a drive letter is present. For 'a:' or 'a:foo', return
728         'a:.'. This is mostly just for consistency with the behaviour
729         without a drive letter. But very important is to for 'a:\foo' or
730         'a:\', return 'a:\', and not 'a:'. (Ditto for forward slashes
731         instead of backslashes.) (#137316)
732
733         * tests/dirname-test.c (main): More complete testing on Win32. If
734         a test fails, include expected and actual result in error message.
735
736 Fri Mar 19 15:21:09 2004  Owen Taylor  <otaylor@redhat.com>
737
738         * glib/gmain.c: Fix the accidental revert of the
739         fixes from #112222 that happened when the GChildWatch
740         code was added. (Caught by Christian Persch)
741
742 Fri Mar 19 11:07:06 2004  Owen Taylor  <otaylor@redhat.com>
743
744         * tests/atomic-test.c (main): Make computation
745         of "biggest_pointer" vaguely more portable.
746         (#137498, Jonas Jonsson)
747
748 2004-03-16  Tor Lillqvist  <tml@iki.fi>
749
750         * configure.in: Define HAVE_INT64_AND_I64 also in the mingw (gcc
751         on Win32) case, where the 64-bit type is called long long, but the
752         system printf/scanf format modifier for 64-bit integers is still I64.
753
754 2004-03-16  Gareth Owen  <gowen72@yahoo.com>
755
756         * configure.in: Added en_GB to ALL_LINGUAS
757