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