1 2006-07-30 Bruno Haible <bruno@clisp.org>
3 * propername.c: Temporarily use c_strstr always.
5 2006-07-30 Bruno Haible <bruno@clisp.org>
7 * c-strstr.h: Renamed from strstr.h. Don't test HAVE_STRSTR.
8 (c_strstr): Renamed from strstr.
9 * c-strstr.c: Renamed from strstr.c.
10 (c_strstr): Renamed from strstr.
11 * javacomp.c: Include c-strstr.h instead of strstr.h.
12 (is_envjavac_gcj): Use c_strstr instead of strstr.
13 * propername.c: Include c-strstr.h.
14 (proper_name_utf8): Use c_strstr instead of strstr.
16 2006-07-29 Bruno Haible <bruno@clisp.org>
18 * xreadlink.c: Assume <stdlib.h> exists.
20 2006-07-29 Bruno Haible <bruno@clisp.org>
22 * localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
24 2006-07-23 Bruno Haible <bruno@clisp.org>
26 Make fstrcmp multithread-safe.
27 * lock.h: New file, from gnulib.
28 * lock.c: New file, from gnulib.
29 * tls.h: New file, from gnulib.
30 * tls.c: New file, from gnulib.
31 * Makefile.am (libgettextlib_la_SOURCES): Add them.
32 * fstrcmp.c: Include lock.h, tls.h.
33 (uintptr_t): New macro.
34 (struct context): New structure, grouping all variables.
35 (diag, compareseq): Add context argument.
36 (buffer_key, bufmax_key): New variables.
37 (keys_init): New functions.
38 (keys_init_once): New variable.
39 (fstrcmp): Establish a struct context. Allocate memory per-thread.
41 2006-07-22 Bruno Haible <bruno@clisp.org>
43 * gl_anyhash_list1.h: New file, from gnulib.
44 * gl_anyhash_list2.h: New file, from gnulib.
45 * gl_anylinked_list1.h: New file, from gnulib.
46 * gl_anylinked_list2.h: New file, from gnulib.
47 * gl_linkedhash_list.h: New file, from gnulib.
48 * gl_linkedhash_list.c: New file, from gnulib.
49 * gl_list.h: New file, from gnulib.
50 * gl_list.c: New file, from gnulib.
51 * size_max.h: New file, from gnulib.
52 * Makefile.am (libgettextlib_la_SOURCES): Add them.
53 (DEFS): Also define SIGNAL_SAFE_LIST.
54 * clean-temp.c: Include limits.h, gl_linkedhash_list.h.
55 (struct tempdir): Use gl_list_t instead of a self-made array-list.
56 (string_equals, string_hash): New functions.
57 (SIZE_BITS): New macro.
58 (cleanup): Use gl_list_iterator_t to walk through the list. No need
59 tp ignore NULLs any more.
60 (create_temp_dir, register_temp_file, unregister_temp_file,
61 register_temp_subdir, unregister_temp_subdir,
62 cleanup_temp_dir_contents): Update.
64 2006-07-18 Bruno Haible <bruno@clisp.org>
66 * xalloc.h (xzalloc): New declaration.
67 * xmalloc.c (xzalloc): New function.
69 2006-07-25 Bruno Haible <bruno@clisp.org>
71 * Makefile.msvc: Remove file.
72 * Makefile.am (EXTRA_DIST): Remove Makefile.msvc.
74 2006-07-25 Bruno Haible <bruno@clisp.org>
76 * Makefile.vms: Remove file.
77 * Makefile.am (EXTRA_DIST): Remove Makefile.vms.
79 2006-07-22 Bruno Haible <bruno@clisp.org>
81 * stdbool_.h: Update from gnulib.
83 * quotearg.c: Update from gnulib.
85 * pathmax.h: Update from gnulib.
87 * obstack.h: Update from gnulib, keeping DLL_VARIABLE annotation.
88 * obstack.c: Update from gnulib.
90 * minmax.h: Update from gnulib.
92 * mbswidth.c: Update from gnulib.
94 * wcwidth.h: New file, from gnulib.
95 * Makefile.am (libgettextlib_la_SOURCES): Add it.
97 * getopt.c: Update from gnulib.
98 * getopt1.c: Likewise.
100 * gcd.c: Update from gnulib.
102 * fwriteerror.c: Update from gnulib.
104 * fnmatch_.h: Update from gnulib.
105 * fnmatch.c: Likewise.
106 * fnmatch_loop.c: Likewise.
108 * fatal-signal.c: Include <config.h>, not "config.h".
109 * findprog.c: Likewise.
111 * progname.c: Likewise.
112 * progreloc.c: Likewise.
113 * wait-process.c: Likewise.
115 * c-strcasecmp.c: Update from gnulib. Don't assume that
116 UCHAR_MAX <= INT_MAX.
117 * c-strncasecmp.c: Likewise.
119 * copy-file.c: Update from gnulib.
121 * atexit.c: Update from gnulib.
123 * verify.h: New file, from gnulib.
124 * argmatch.h: Update from gnulib, keeping DLL_VARIABLE annotation.
125 * Makefile.am (libgettextlib_la_SOURCES): Add verify.h.
127 2006-07-21 Bruno Haible <bruno@clisp.org>
129 * gettext-0.15 released.
131 2006-07-14 Bruno Haible <bruno@clisp.org>
133 * Makefile.am (MOSTLYCLEANFILES): Add core and *.stackdump.
135 2006-07-13 Bruno Haible <bruno@clisp.org>
137 Fix construction of temporary directory names on mingw.
138 * tmpdir.c (ISSLASH): New macro.
139 (path_search): Use it, and remove also the first character if it is
141 Reported by Steffen Macke <sdteffen@gmail.com>.
143 2006-07-13 Bruno Haible <bruno@clisp.org>
145 * Makefile.am (EXTRA_DIST): Add javaversion.class.
147 2006-07-11 Bruno Haible <bruno@clisp.org>
149 * javacomp.c: Fix a comment.
150 Reported by Jim Meyering.
152 2006-07-02 Bruno Haible <bruno@clisp.org>
154 * clean-temp.h (register_temp_file): Renamed from enqueue_temp_file.
155 (unregister_temp_file): Renamed from dequeue_temp_file.
156 (register_temp_subdir): Renamed from enqueue_temp_subdir.
157 (unregister_temp_subdir): Renamed from dequeue_temp_subdir.
158 * clean-temp.c (register_temp_file): Renamed from enqueue_temp_file.
159 (unregister_temp_file): Renamed from dequeue_temp_file.
160 (register_temp_subdir): Renamed from enqueue_temp_subdir.
161 (unregister_temp_subdir): Renamed from dequeue_temp_subdir.
162 (cleanup_temp_file, cleanup_temp_subdir): Update.
163 * javacomp.c (write_temp_file, is_envjavac_gcj_14_14_usable,
164 is_envjavac_gcj_14_13_usable, is_envjavac_nongcj_usable,
165 is_gcj_present, is_gcj_14_14_usable, is_gcj_14_13_usable,
166 is_javac_usable): Update.
168 2006-06-29 Bruno Haible <bruno@clisp.org>
170 * clean-temp.h: Include <stdbool.h>.
171 (struct temp_dir): Add cleanup_verbose field.
172 (create_temp_dir): Add parentdir, cleanup_verbose arguments.
173 * clean-temp.c (struct tempdir): Add cleanup_verbose field.
174 (create_temp_dir): Add parentdir, cleanup_verbose arguments.
175 (do_unlink. do_rmdir): New functions.
176 (cleanup_temp_file, cleanup_temp_subdir, cleanup_temp_dir_contents,
177 cleanup_temp_dir): Use them.
178 * javacomp.c (is_envjavac_gcj_14_14_usable,
179 is_envjavac_gcj_14_13_usable, is_envjavac_nongcj_usable,
180 is_gcj_present, is_gcj_14_14_usable, is_gcj_14_13_usable,
181 is_javac_usable): Update.
183 2006-06-28 Bruno Haible <bruno@clisp.org>
185 Assume <dirent.h> on all Unix platforms. Assume closedir works.
186 * backupfile.c: Don't include <sys/ndir.h>, <sys/dir.h>, <ndir.h>.
187 (NLENGTH): Remove macro.
188 (max_backup_version): Use closedir directly.
190 2006-06-27 Bruno Haible <bruno@clisp.org>
192 Assume correct S_ISDIR macro.
193 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
194 * tmpdir.c: Remove test of STAT_MACROS_BROKEN.
196 2006-06-27 Bruno Haible <bruno@clisp.org>
198 Assume ANSI C header files and <ctype.h> functions.
199 * fnmatch.c (ISASCII): Remove macro.
200 (isblank): Renamed from ISBLANK.
201 (isgraph): Renamed from isgraph.
202 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT,
203 ISSPACE, ISUPPER, ISXDIGIT): Remove macros.
205 * fnmatch_loop.c (FCT): Update.
206 * getndelim2.c: Include <stdlib.h> always.
207 * mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
208 (mbsnwidth): Use isprint, iscntrl instead.
209 * strtol.c (IN_CTYPE_DOMAIN): Remove macro.
210 (ISSPACE, ISALPHA, TOUPPER): Use isspace, isalpha, toupper directly.
212 2006-06-28 Bruno Haible <bruno@clisp.org>
214 * xvasprintf.h: Update from gnulib.
216 2006-04-14 Bruno Haible <bruno@clisp.org>
218 Assume autoconf >= 2.60.
219 * Makefile.am (docdir): Remove variable.
221 2006-06-21 Bruno Haible <bruno@clisp.org>
223 Avoid warnings from recent versions of mcs.
224 * csharpcomp.sh.in (options_mcs): Don't use options -o, -L, -r any
225 more. Use options documented since mcs-1.0 instead. Similarly for -g.
226 * csharpcomp.c (compile_csharp_using_mono): Likewise.
228 2006-06-17 Bruno Haible <bruno@clisp.org>
230 * iconvstring.c (UNSAFE_ICONV): New macro.
231 (iconv_string): Add slower but safer code for UNSAFE_ICONV.
232 Needed for IRIX iconv() and NetBSD's iconv().
234 2006-06-17 Bruno Haible <bruno@clisp.org>
236 * iconvstring.c (iconv_string): Recognize conversion failures also
237 from NetBSD's iconv().
239 2006-06-17 Bruno Haible <bruno@clisp.org>
241 * config.charset: Update for NetBSD 3.0.
243 2006-06-17 Bruno Haible <bruno@clisp.org>
245 * xgetcwd.c: Assume errno.h declares errno.
246 * xreadlink.c: Likewise.
248 2006-06-16 Eric Blake <ebb9@byu.net>
250 * unsetenv.c [!defined errno]: Assume errno.h declares errno.
251 * strtol.c [!defined errno]: Likewise.
253 2006-06-04 Bruno Haible <bruno@clisp.org>
255 * gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Parenthesize.
258 2006-05-17 Bruno Haible <bruno@clisp.org>
261 * classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
262 * javaexec.c (execute_java_class): Test for jview program also on
264 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
265 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
267 2006-05-16 Bruno Haible <bruno@clisp.org>
269 * localcharset.c [CYGWIN]: Include <windows.h>.
270 (get_charset_aliases): For Cygwin, return the same CPxxx aliases list
272 (locale_charset) [CYGWIN]: Try to retrieve the encoding from the
273 environment variables. Fall back to GetACP().
275 2006-05-16 Bruno Haible <bruno@clisp.org>
277 * javacomp.c (is_envjavac_gcj_14_14_usable,
278 is_envjavac_gcj_14_13_usable, is_envjavac_nongcj_usable,
279 is_gcj_present, is_gcj_14_14_usable, is_gcj_14_13_usable,
280 is_javac_usable): Remove unused variable.
282 2006-05-15 Bruno Haible <bruno@clisp.org>
284 * Makefile.am: Test flag WOE32DLL instead of CYGWINDLL.
286 2006-04-30 Bruno Haible <bruno@clisp.org>
288 * progreloc.c: Include <mach-o/dyld.h> if available.
289 (find_executable): Use _NSGetExecutablePath when possible.
291 2006-05-12 Bruno Haible <bruno@clisp.org>
293 * mkdtemp.c [MINGW]: Include <io.h>.
294 (mkdir): Define using _mkdir.
296 2006-05-11 Bruno Haible <bruno@clisp.org>
298 * Makefile.am (libgettextlib_la_SOURCES, libgettextlib_la_LDFLAGS):
301 2006-05-09 Bruno Haible <bruno@clisp.org>
303 * xvasprintf.c (xstrcat): Handle overflow. Suggested by Paul Eggert.
304 Optimize away a va_copy call. Suggested by Eric Blake. Add missing
307 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
309 * progreloc.c (maybe_executable) [CYGWIN]: Use the access() function.
311 2006-04-30 Bruno Haible <bruno@clisp.org>
313 * javacomp.h (compile_java_class): Add source_version, target_version
315 * javacomp.c: Rewritten to choose only a compiler that respects the
316 specified source_version and target_version.
318 2006-04-30 Bruno Haible <bruno@clisp.org>
320 * xvasprintf.c: Include limits.h, string.h, xsize.h.
321 (EOVERFLOW): Define fallback value.
322 (xstrcat): New function.
323 (xvasprintf): Recognize the special case of a string concatenation.
325 2006-03-13 Bruno Haible <bruno@clisp.org>
327 * javaversion.h: New file.
328 * javaversion.c: New file.
329 * javaversion.java: New file.
330 * javaversion.class: New file, generated from javaversion.java.
331 * Makefile.am (libgettextlib_la_SOURCES): Add javaversion.h,
333 (pkgdatadir, pkgdata_DATA): New variables.
334 (EXTRA_DIST): Add javaversion.java.
335 (DEFS): Also define PKGDATADIR.
336 * Makefile.msvc (pkgdatadir, IIpkgdatadir): New variables.
337 (CFLAGS): Also define PKGDATADIR.
338 (OBJECTS): Add javaversion.obj.
339 (javaversion.obj): New rule.
340 * Makefile.vms (pkgdatadir): New variable.
341 (CFLAGS): Also define PKGDATADIR.
342 (OBJECTS): Add javaversion.obj.
343 (javaversion.obj): New rule.
345 2006-04-30 Bruno Haible <bruno@clisp.org>
347 * xvasprintf.h: New file, from gnulib.
348 * xvasprintf.c: New file, from gnulib.
349 * xasprintf.c: New file, from gnulib.
350 * xerror.h (xasprintf): Remove declaration.
351 * xerror.c: Don't include stdarg.h, error.h, exit.h, vasprintf.h,
354 (xasprintf): Remove function.
355 * Makefile.am (libgettextlib_la_SOURCES): Add xvasprintf.h,
356 xvasprintf.c, xasprintf.c.
357 * Makefile.msvc (OBJECTS): Add xvasprintf.obj, xasprintf.obj.
358 (xvasprintf.obj, xasprintf.obj): New rules.
359 * Makefile.vms (OBJECTS): Add xvasprintf.obj, xasprintf.obj.
360 (xvasprintf.obj, xasprintf.obj): New rules.
362 2006-05-01 Bruno Haible <bruno@clisp.org>
364 * javacomp.sh.in: Update for changed javacomp.m4.
366 2006-04-23 Bruno Haible <bruno@clisp.org>
368 * addext.c: Include <unistd.h> unconditionally.
369 * clean-temp.c: Likewise.
370 * copy-file.c: Likewise.
371 * execute.c: Likewise.
372 * fatal-signal.c: Likewise.
373 * findprog.c: Likewise.
374 * getopt_.h: Likewise.
375 * mkdtemp.c: Likewise.
376 * pathmax.h: Likewise.
379 * safe-read.c: Likewise.
380 * unsetenv.c: Likewise.
381 * wait-process.h: Likewise.
382 * xgetcwd.c: Likewise.
383 * Makefile.am (BUILT_SOURCES): Conditionally add unistd.h.
384 (unistd.h): New rule.
385 (MOSTLYCLEANFILES): Add unistd.h.
387 2006-04-17 Bruno Haible <bruno@clisp.org>
389 * Makefile.am: Use $(mkdir_p) instead of $(mkinstalldirs).
391 2006-04-17 Bruno Haible <bruno@clisp.org>
393 * Makefile.am (byteswap.h): Don't use $(srcdir)/$<, for portability.
395 2006-04-09 Bruno Haible <bruno@clisp.org>
397 * clean-temp.h: New file.
398 * clean-temp.c: New file.
399 * Makefile.am (libgettextlib_la_SOURCES): Add them.
400 * Makefile.msvc (OBJECTS): Add clean-temp.obj.
401 (clean-temp.obj): New rule.
402 * Makefile.vms (OBJECTS): Add clean-temp.obj.
403 (clean-temp.obj): New rule.
405 2006-04-09 Bruno Haible <bruno@clisp.org>
407 * fatal-signal.c: Don't include string.h.
408 (at_fatal_signal): Use a copying loop instead of memcpy.
410 2006-04-05 Bruno Haible <bruno@clisp.org>
412 * config.charset: Update Juan Manuel Guerrero's address.
414 2006-04-02 Bruno Haible <bruno@clisp.org>
416 * gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS, pgettext_expr,
417 dpgettext_expr, npgettext_expr, dnpgettext_expr): New macros.
418 (dcpgettext_expr, dcnpgettext_expr): New inline functions.
419 Reported by Chusslove Illich <caslav.ilic@gmx.net>.
421 2006-04-02 Bruno Haible <bruno@clisp.org>
423 Support for non-ASCII author names.
424 * propername.h: New file.
425 * propername.c: New file.
426 * Makefile.am (libgettextlib_la_SOURCES): Add propername.h,
428 * Makefile.msvc (OBJECTS): Add propername.obj.
429 (propername.obj): New rule.
430 * Makefile.vms (OBJECTS): Add propername.obj.
431 (propername.obj): New rule.
433 2006-03-28 Bruno Haible <bruno@clisp.org>
435 * iconvstring.h: New file.
436 * iconvstring.c: New file, mostly extracted from ../src/msgl-iconv.c.
437 * Makefile.am (libgettextlib_la_SOURCES): Add them.
438 * Makefile.msvc (OBJECTS): Add iconvstring.obj.
439 (iconvstring.obj): New rule.
440 * Makefile.vms (OBJECTS): Add iconvstring.obj.
441 (iconvstring.obj): New rule.
443 2006-03-12 Bruno Haible <bruno@clisp.org>
445 * javaexec.sh.in: Update for changed javaexec.m4.
447 2006-03-11 Bruno Haible <bruno@clisp.org>
449 Avoid gcc-4.x warnings.
450 * hash.h (struct hash_entry): New declaration.
451 (struct hash_table): Use it, instead of 'void *'.
452 * hash.c (hash_init): Update.
453 (lookup, hash_find_entry, insert_entry_2): Remove casts.
455 (hash_insert_entry, hash_set_value): Remove casts.
456 (hash_iterate, hash_iterate_modify): Likewise.
458 2006-03-11 Bruno Haible <bruno@clisp.org>
460 * hash.h (hash_iterate_modify): New declaration.
461 * hash.c (hash_iterate_modify): New function.
463 2006-01-10 Bruno Haible <bruno@clisp.org>
465 * localcharset.c: Assume ANSI C. Fixes a gcc warning.
466 Reported by Werner Lemberg <wl@gnu.org>.
468 2005-12-29 Bruno Haible <bruno@clisp.org>
470 * progreloc.c (set_program_name_and_installdir): Fix compilation error.
472 2005-12-04 Bruno Haible <bruno@clisp.org>
474 * csharpexec.sh.in: Add support for 'clix' launcher (untested).
475 * csharpexec.c: Likewise.
476 (execute_csharp_using_sscli): New function.
477 (execute_csharp_program): Call it.
479 2005-12-04 Bruno Haible <bruno@clisp.org>
481 * csharpcomp.sh.in: Suffix for resources is .resources, not .resource.
483 2005-12-04 Bruno Haible <bruno@clisp.org>
486 * progreloc.c: Include <windows.h> also on Cygwin.
487 (find_executable): Add support for Cygwin.
488 (set_program_name_and_installdir): Handle also platforms with nonempty
490 * relocatable.c: Include <windows.h> also on Cygwin.
491 (DllMain): Add support for Cygwin.
492 (get_shared_library_fullname): Update.
493 * relocwrapper.c (add_dotbin): Handle also platforms with nonempty
495 Patches partially from Charles Wilson <cygwin@cwilson.fastmail.fm>.
497 2005-10-09 Bruno Haible <bruno@clisp.org>
499 * c-strcasestr.h: New file.
500 * c-strcasestr.c: New file, based on gnulib's strcasestr.c.
501 * Makefile.am (libgettextlib_la_SOURCES): Add them.
503 2005-10-06 Bruno Haible <bruno@clisp.org>
505 * addext.c: Test HAVE_CONFIG_H using #ifdef.
506 * argmatch.c: Likewise.
507 * backupfile.c: Likewise.
508 * c-strcasecmp.c: Likewise.
509 * c-strncasecmp.c: Likewise.
510 * canonicalize.c: Likewise.
511 * closeout.c: Likewise.
512 * exitfail.c: Likewise.
513 * fnmatch.c: Likewise.
514 * full-write.c: Likewise.
515 * fwriteerror.c: Likewise.
516 * getline.c: Likewise.
517 * getndelim2.c: Likewise.
518 * getopt_.h: Likewise.
520 * memmove.c: Likewise.
522 * quotearg.c: Likewise.
523 * readlink.c: Likewise.
524 * safe-read.c: Likewise.
525 * setenv.c: Likewise.
526 * strcspn.c: Likewise.
527 * strerror.c: Likewise.
528 * strstr.c: Likewise.
529 * strtol.c: Likewise.
530 * unsetenv.c: Likewise.
531 * xgetcwd.c: Likewise.
532 * xmalloc.c: Likewise.
533 * xreadlink.c: Likewise.
534 * xsetenv.c: Likewise.
535 * xstrdup.c: Likewise.
536 Reported by Ralf Wildenhues on bug-gnulib.
538 2005-10-03 Bruno Haible <bruno@clisp.org>
540 * hash.h (hash_insert_entry): Return a pointer instead of int.
541 * hash.c (hash_insert_entry): Return a pointer to the copy of the key.
543 2005-10-03 Bruno Haible <bruno@clisp.org>
545 * hash.h: Add comments everywhere.
546 (hash_init): Renamed from init_hash.
547 (hash_destroy): Renamed from delete_hash.
548 (hash_find_entry): Renamed from find_entry.
549 (hash_insert_entry): Renamed from insert_entry.
550 (hash_set_value): New declaration.
551 (hash_iterate): Renamed from iterate_table.
552 * hash.c: Add comments everywhere. Reorder.
553 (hash_init): Renamed from init_hash.
554 (hash_destroy): Renamed from delete_hash.
555 (hash_find_entry): Renamed from find_entry.
556 (hash_insert_entry): Renamed from insert_entry.
557 (hash_set_value): New function.
558 (hash_iterate): Renamed from iterate_table.
560 2005-10-01 Bruno Haible <bruno@clisp.org>
562 Support for context dependent translations in PO files.
563 * gettext.h (GETTEXT_CONTEXT_GLUE): New macro.
564 (pgettext, dpgettext, dcpgettext, npgettext, dnpgettext, dcnpgettext):
566 (pgettext_aux, npgettext_aux): New inline functions.
568 2005-08-23 Bruno Haible <bruno@clisp.org>
570 * byteswap_.h: New file, from gnulib.
571 * Makefile.am (BUILT_SOURCES, EXTRA_DIST, MOSTLYCLEANFILES): Adjust
573 (byteswap.h): New rule.
575 2005-08-16 Bruno Haible <bruno@clisp.org>
577 * strcase.h: Remove file.
578 * strcasecmp.c: Remove file.
579 * strncasecmp.c: Remove file.
580 * Makefile.am (LIBADD_SOURCE): Remove them.
581 * Makefile.msvc (OBJECTS): Remove strcasecmp.obj, strncasecmp.obj.
582 (strcasecmp.obj, strncasecmp.obj): Remove rules.
584 2005-07-31 Bruno Haible <bruno@clisp.org>
586 * hash.c (resize): New function, extracted from insert_entry_2.
587 (insert_entry): Invoke resize here.
588 (insert_entry_2): ... not here.
590 2005-07-24 Bruno Haible <bruno@clisp.org>
592 Tidy up exported symbols.
593 * relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]: Define
594 to the gcc visibility attribute.
596 2005-07-22 Bruno Haible <bruno@clisp.org>
598 * Makefile.am: Remove rules depending on @STDBOOL_H@, @ALLOCA_H@,
599 @FNMATCH_H@, @GETOPT_H@.
600 (BUILT_SOURCES): Add $(STDBOOL_H), $(ALLOCA_H).
601 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
603 2005-07-09 Bruno Haible <bruno@clisp.org>
605 * csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
606 * csharpcomp.c (compile_csharp_using_sscli): Likewise.
607 Reported by Mark Junker <mjscod@gmx.de>.
609 2005-07-05 Bruno Haible <bruno@clisp.org>
611 * Makefile.am (libgettextlib_la_LDFLAGS): Use LTNOUNDEF.
613 2005-07-02 Bruno Haible <bruno@clisp.org>
615 * localcharset.c (get_charset_aliases) [WIN32]: Add CP65001 and others.
616 Reported by <mus1876@gmx.info> via Alain Bench <messtic@oreka.com>.
618 2005-06-08 Bruno Haible <bruno@clisp.org>
620 * canonicalize.c (__realpath): Avoid gcc warnings on platforms that
621 don't support symbolic links.
623 2005-06-08 Bruno Haible <bruno@clisp.org>
625 * binary-io.h (fileno): Undefine before defining it. Avoids a gcc
628 2006-06-21 Bruno Haible <bruno@clisp.org>
630 * gettext-0.14.6 released.
632 2005-05-23 Bruno Haible <bruno@clisp.org>
634 * gettext-0.14.5 released.
636 2005-04-11 Bruno Haible <bruno@clisp.org>
638 * gettext-0.14.4 released.
640 2005-03-22 Bruno Haible <bruno@clisp.org>
642 * Makefile.am (examplesbuildauxdir): Renamed from examplesconfigdir.
643 (examplesbuildaux_DATA): Renamed from examplesconfig_DATA.
645 2005-03-14 Bruno Haible <bruno@clisp.org>
647 * gettext-0.14.3 released.
649 2004-09-12 Bruno Haible <bruno@clisp.org>
651 * hash.c: Include <limits.h> instead of <values.h>.
652 Assume an ANSI C implementation with stdlib.h, string.h.
653 (BITSPERBYTE, LONGBITS, bcopy): Remove macros.
655 2005-02-24 Bruno Haible <bruno@clisp.org>
657 * gettext-0.14.2 released.
659 2005-02-12 Bruno Haible <bruno@clisp.org>
661 * Makefile.msvc (OBJECTS): Remove strtoul.obj.
662 (strtoul.obj): Remove target.
663 * Makefile.vms (OBJECTS): Remove strtoul.obj.
664 (strtoul.obj): Remove target.
666 2005-02-12 Bruno Haible <bruno@clisp.org>
668 * allocsa.h: Add extern "C" for C++.
669 * xallocsa.h: Likewise.
671 2005-02-12 Bruno Haible <bruno@clisp.org>
673 * exitfail.h (exit_failure): Add DLL_VARIABLE attribute.
675 2005-02-12 Bruno Haible <bruno@clisp.org>
677 * obstack.c: Update from current gnulib version.
679 2005-02-10 Bruno Haible <bruno@clisp.org>
681 * allocsa.h (sa_alignof): Define differently with AIX xlc, to avoid
682 a bug of this compiler on AIX 3.2.5 dealing with enums.
684 2005-02-07 Bruno Haible <bruno@clisp.org>
686 * c-strcase.h: New file, based on strcase.h.
687 * c-strcasecmp.c: New file, based on strcasecmp.c.
688 * c-strncasecmp.c: New file, based on strcasecmp.c.
689 * Makefile.am (libgettextlib_la_SOURCES): Add c-strcase.h,
690 c-strcasecmp.c, c-strncasecmp.c.
691 * Makefile.msvc (OBJECTS): Add c-strcasecmp.obj, c-strncasecmp.obj.
692 (c-strcasecmp.obj, c-strncasecmp.obj): New rules.
693 * Makefile.vms (OBJECTS): Add c-strcasecmp.obj, c-strncasecmp.obj.
694 (c-strcasecmp.obj, c-strncasecmp.obj): New rules.
696 2005-01-29 Bruno Haible <bruno@clisp.org>
698 * progname.c (program_name): Initialize.
699 Needed when linking statically on MacOS X.
701 2005-01-27 Bruno Haible <bruno@clisp.org>
703 * Makefile.am (libgettextlib_la_SOURCES): Remove strtoul.c.
704 (LIBADD_SOURCE): Add strtoul.c here.
706 2005-01-28 Bruno Haible <bruno@clisp.org>
708 * stpncpy.h (stpncpy): Define as a macro without arguments, so that
711 2005-01-09 Bruno Haible <bruno@clisp.org>
713 * csharpcomp.sh.in (func_tmpdir): New function.
714 (mcs invocation): Use it. Fix exit code.
716 2005-01-07 Bruno Haible <bruno@clisp.org>
718 * csharpcomp.c: Include safe-read.h.
720 2005-01-06 Bruno Haible <bruno@clisp.org>
722 * fwriteerror.h (fwriteerror): Change specification to include fclose.
723 * fwriteerror.c: Include <stdbool.h>.
724 (fwriteerror): At the end, close the file stream. Record whether
725 stdout was already closed.
726 * closeout.c: Update comments.
728 2005-01-06 Bruno Haible <bruno@clisp.org>
730 * strerror.c: Update from gnulib, with HAVE_STRERROR modifications.
732 2005-01-06 Bruno Haible <bruno@clisp.org>
734 * strtol.c: Update from gnulib.
735 * strtoul.c: Update from gnulib.
737 2005-01-06 Bruno Haible <bruno@clisp.org>
739 * strstr.c: Update from gnulib.
741 2005-01-06 Bruno Haible <bruno@clisp.org>
743 * strpbrk.c: Update from gnulib.
745 2005-01-06 Bruno Haible <bruno@clisp.org>
747 * strcspn.c: Update from gnulib.
749 2005-01-06 Bruno Haible <bruno@clisp.org>
751 * strcasecmp.c: Update from gnulib.
752 * strncasecmp.c: Update from gnulib.
754 2005-01-06 Bruno Haible <bruno@clisp.org>
756 * stpncpy.h: Update from gnulib.
757 * stpncpy.c: Update from gnulib with simplifications.
758 * Makefile.am (libgettextlib_la_SOURCES): Remove stpncpy.h, stpncpy.c.
759 (LIBADD_SOURCE): Add stpncpy.h, stpncpy.c.
760 * Makefile.msvc: Update.
761 * Makefie.vms: Update.
763 2005-01-06 Bruno Haible <bruno@clisp.org>
765 * error.h: Update from gnulib.
766 * error.c: Update from gnulib.
767 * Makefile.am (libgettextlib_la_SOURCES): Remove error.h, error.c.
768 (LIBADD_SOURCE): Add error.h, error.c here.
769 * Makefile.msvc: Update.
770 * Makefile.vms: Update.
772 2005-01-06 Bruno Haible <bruno@clisp.org>
774 * argmatch.h: Update from gnulib, with DLL_VARIABLE modifications.
775 * argmatch.c: Update from gnulib.
777 2005-01-06 Bruno Haible <bruno@clisp.org>
779 * quote.h: New file, from gnulib.
780 * quote.c: New file, from gnulib.
781 * Makefile.am (libgettextlib_la_SOURCES): Add quote.h, quote.c.
782 * Makefile.msvc (OBJECTS): Add quote.obj.
783 (quote.obj): New rule.
784 * Makefile.vms (OBJECTS): Add quote.obj.
785 (quote.obj): New rule.
787 2005-01-06 Bruno Haible <bruno@clisp.org>
789 * exitfail.h: New file, from gnulib.
790 * exitfail.c: New file, from gnulib.
791 * Makefile.am (libgettextlib_la_SOURCES): Add exitfail.h, exitfail.c.
792 * Makefile.msvc (OBJECTS): Add exitfail.obj.
793 (exitfail.obj): New rule.
794 * Makefile.vms (OBJECTS): Add exitfail.obj.
795 (exitfail.obj): New rule.
797 2005-01-06 Bruno Haible <bruno@clisp.org>
799 * Makefile.am (libgettextlib_la_SOURCES): Remove getopt files.
800 (LIBADD_SOURCE): Add getopt files here, except getopt.h.
801 (BUILT_SOURCES, EXTRA_DIST, all-local, getopt.h): Support for getopt
803 * getopt.h: Remove file.
804 * getopt_.h: New file, from gnulib, with DLL_VARIABLE modifications.
805 * getopt.c: Update from gnulib.
806 * getopt1.c: Update from gnulib.
807 * getopt_int.h: New file, from gnulib.
809 2005-01-06 Bruno Haible <bruno@clisp.org>
811 * fnmatch_.h: Upgrade from gnulib.
812 * fnmatch.c: Upgrade from gnulib.
813 * fnmatch_loop.c: New file, from gnulib.
814 * Makefile.am (DISTCLEANFILES): Remove fnmatch.h.
815 (BUILT_SOURCES): New variable.
816 (EXTRA_DIST): Add fnmatch_loop.c.
817 * Makefile.vms (fnmatch.obj): Depend also on fnmatch_loop.c.
819 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
821 * alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
823 2004-12-18 Bruno Haible <bruno@clisp.org>
825 * fatal-signal.c (fatal_signals): Make non-const.
826 (init_fatal_signals): New function.
827 (uninstall_handlers, install_handlers): Ignore signals that were set to
829 (at_fatal_signal): Call init_fatal_signals.
830 (init_fatal_signal_set): Likewise. Ignore signals that were set to
832 Reported by Paul Eggert.
834 2004-11-11 Jim Meyering <jim@meyering.net>
836 * linebreak.c: Remove trailing blanks.
838 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
840 * quotearg.c (struct quoting_options): Use unsigned int for
841 quote_these_too, so that right shifts are well defined. All uses
844 2004-11-05 Bruno Haible <bruno@clisp.org>
846 * readlink.c: Include stddef.h, needed for size_t on Woe32.
847 Reported by Mark D. Baushke <mdb@cvshome.org>.
849 2004-11-02 Bruno Haible <bruno@clisp.org>
851 * setenv.h (unsetenv): Define as a macro if the system's unsetenv()
852 function returns void.
854 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
856 * unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
857 the includer's responsibility.
859 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
861 * full-write.c: Import changes from coreutils.
863 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
865 * safe-read.c: Import changes from coreutils.
867 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
869 * quotearg.c, quotearg.h: Import changes from coreutils.
871 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
873 * setenv.c: Import changes from coreutils.
875 2004-08-03 Simon Josefsson <jas@extundo.com>
877 * progname.h: Don't include stdbool.h.
879 2004-07-16 Bruno Haible <bruno@clisp.org>
881 * mbswidth.h: Add extern "C" for C++.
882 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
884 2003-09-09 Paul Eggert <eggert@twinsun.com>
886 * memmove.c, memset.c: Include <stddef.h>.
887 Use types required by C89 in prototype.
889 2003-09-08 Paul Eggert <eggert@twinsun.com>
891 * atexit.c (atexit): Define using a prototype.
893 2004-12-10 Bruno Haible <bruno@clisp.org>
895 * obstack.h: Update from current gnulib version.
896 * obstack.c: Update from current gnulib version.
897 Reported by Raphaël Zhou <xzhou@tlmcom.fr>.
899 2004-11-23 Bruno Haible <bruno@clisp.org>
901 * gettext.h [!ENABLE_NLS]: When using GNU libstdc++, include
903 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
905 2004-10-07 Bruno Haible <bruno@clisp.org>
907 * gen-lbrkprop.c (output_tables): Emit a GPL copyright notice.
908 * lbrkprop.h: Update.
910 2004-09-11 Bruno Haible <bruno@clisp.org>
912 * allocsa.valgrind: New file.
913 * Makefile.am (EXTRA_DIST): Add it.
915 2004-09-01 Bruno Haible <bruno@clisp.org>
917 * config.charset: Add support for Darwin 7.
919 2004-08-08 Bruno Haible <bruno@clisp.org>
921 * pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
922 FILESYSTEM_PREFIX_LEN.
923 * progreloc.c: Likewise.
924 * concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
925 * basename.c (FILE_SYSTEM_PREFIX_LEN): Renamed from
926 FILESYSTEM_PREFIX_LEN.
928 * relocatable.c (FILE_SYSTEM_PREFIX_LEN): Renamed from
929 FILESYSTEM_PREFIX_LEN.
930 (compute_curr_prefix): Update.
932 2004-05-27 Bruno Haible <bruno@clisp.org>
934 * execute.c (environ): Declare if needed.
935 * pipe.c (environ): Likewise.
936 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
938 2004-04-28 Bruno Haible <bruno@clisp.org>
940 * basename.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Treat Cygwin like
941 Windows, since it now accepts Windows pathnames.
942 * findprog.c (find_in_path): Treat Cygwin like Windows, since it also
943 implicitly appends .exe to executables.
944 * localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
945 accepts Windows pathnames.
946 * pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): Treat
947 Cygwin like Windows, since it now accepts Windows pathnames.
948 * relocatable.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
949 Treat Cygwin like Windows, since it now accepts Windows pathnames.
950 (compute_curr_prefix): Likewise.
951 * progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): Treat
952 Cygwin like Windows, since it now accepts Windows pathnames.
953 Reported by Derek Robert Price <derek@ximbiot.com>.
955 2004-04-23 Bruno Haible <bruno@clisp.org>
957 * localcharset.c (get_charset_aliases): Allow the CHARSETALIASDIR
958 environment variable to override LIBDIR.
959 Suggested by Matthias Clasen <mclasen@redhat.com>.
961 2004-04-20 Jim Meyering <jim@meyering.net>
962 Bruno Haible <bruno@clisp.org>
964 * localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
965 memory when realloc fails.
967 2004-03-18 Paul Eggert <eggert@twinsun.com>
968 Bruno Haible <bruno@clisp.org>
970 * mbswidth.h: Include <wchar.h> only if HAVE_DECL_MBSWIDTH_IN_WCHAR_H,
971 not on all platforms that have <wchar.h>.
972 * mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
974 2004-03-19 Bruno Haible <bruno@clisp.org>
976 * Makefile.am (install-exec-clean): Don't remove libgettextlib.a on
978 Reported by Kouichi Hashikawa <z01a7ksy@cs.ecip.tohoku.ac.jp>.
980 2004-03-08 Bruno Haible <bruno@clisp.org>
982 * csharpcomp.c (compile_csharp_using_sscli): Test whether csc is not
983 the chicken scheme's 'csc' compiler.
984 Reported by Colin Marquardt <colin@marquardt-home.de>.
986 2004-02-07 Bruno Haible <bruno@clisp.org>
988 * xalloc.h (xalloc_oversized): New macro, from gnulib.
989 * quotearg.h: New file, from gnulib.
990 * quotearg.c: New file, from gnulib.
991 * sh-quote.c: Include quotearg.h.
992 (sh_quoting_options): New variable.
993 (init_sh_quoting_options): New function.
994 (shell_quote_length, shell_quote_copy, shell_quote): Rewrite to use
996 * Makefile.am (libgettextlib_la_SOURCES): Add quotearg.h, quotearg.c.
997 * Makefile.msvc (OBJECTS): Add quotearg.obj.
998 (quotearg.obj): New rule.
999 * Makefile.vms (OBJECTS): Add quotearg.obj.
1000 (quotearg.obj): New rule.
1002 2004-02-06 Bruno Haible <bruno@clisp.org>
1004 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to avoid
1005 a bug of this cc on HP-UX 10.20 dealing with enums.
1006 Reported by Christopher Seip <chris.seip@hp.com>.
1008 2004-02-03 Bruno Haible <bruno@clisp.org>
1010 * pipe.c: New file, synthesis of pipe-in.c, pipe-out.c, pipe-bidi.c.
1011 * pipe-in.c: Remove file.
1012 * pipe-out.c: Remove file.
1013 * pipe-bidi.c: Remove file.
1014 * Makefile.am (libgettextlib_la_SOURCES): Add pipe.c, Remove pipe-in.c,
1015 pipe-out.c, pipe-bidi.c.
1016 * Makefile.msvc (OBJECTS): Add pipe.obj. Remove pipe-in.obj,
1017 pipe-out.obj, pipe-bidi.obj.
1018 (pipe.obj): New rule.
1019 (pipe-in.obj, pipe-out.obj, pipe-bidi.obj): Remove rules.
1020 * Makefile.vms (OBJECTS): Add pipe.obj. Remove pipe-in.obj,
1021 pipe-out.obj, pipe-bidi.obj.
1022 (pipe.obj): New rule.
1023 (pipe-in.obj, pipe-out.obj, pipe-bidi.obj): Remove rules.
1025 2004-01-29 Bruno Haible <bruno@clisp.org>
1027 * gettext-0.14.1 released.
1029 2004-01-28 Bruno Haible <bruno@clisp.org>
1031 * gettext-0.14 released.
1033 2004-01-24 Bruno Haible <bruno@clisp.org>
1035 * progreloc.c (xstrdup): Define as strdup if no xmalloc should be used.
1037 2004-01-21 Bruno Haible <bruno@clisp.org>
1039 * config.charset: Add support for MacOS X (Darwin).
1041 2004-01-10 Bruno Haible <bruno@clisp.org>
1043 * csharpcomp.c (compile_csharp_using_pnet, compile_csharp_using_mono,
1044 compile_csharp_using_sscli): New functions.
1045 (compile_csharp_class): Call them. Respect the CSHARP_CHOICE_* macros.
1046 * csharpexec.c (execute_csharp_using_pnet, execute_csharp_using_mono):
1048 (execute_csharp_program): Call them. Respect the CSHARP_CHOICE_*
1051 2004-01-10 Bruno Haible <bruno@clisp.org>
1053 * csharpcomp.sh.in: Copy the mcs output to stderr, dropping the
1054 "Compilation succeeded" message.
1055 * csharpcomp.c: Include errno.h, pipe.h, wait-process.h, getline.h.
1056 (compile_csharp_class): Copy the mcs output to stderr, dropping the
1057 "Compilation succeeded" message.
1059 2003-12-26 Bruno Haible <bruno@clisp.org>
1062 * csharpcomp.sh.in: New file.
1063 * csharpcomp.h: New file.
1064 * csharpcomp.c: New file.
1065 * csharpexec.sh.in: New file.
1066 * csharpexec.h: New file.
1067 * csharpexec.c: New file.
1068 * classpath.c (CLASSPATHVAR): New variable.
1069 (new_classpath, set_classpath, reset_classpath): Use it instead of
1070 hardcoding "CLASSPATH".
1071 * Makefile.am (libgettextlib_la_SOURCES): Add csharpcomp.h,
1072 csharpcomp.c, csharpexec.h, csharpexec.c.
1073 (examplesconfig_DATA): Add csharpcomp.sh.in, csharpexec.sh.in.
1074 * Makefile.msvc (OBJECTS): Add csharpcomp.obj, csharpexec.obj.
1075 (csharpcomp.obj, csharpexec.obj): New rules.
1076 * Makefile.vms (OBJECTS): Add csharpcomp.obj, csharpexec.obj.
1077 (csharpcomp.obj, csharpexec.obj): New rules.
1079 2003-12-28 Bruno Haible <bruno@clisp.org>
1081 * wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
1082 * wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE specially.
1083 * execute.h (execute): Add ignore_sigpipe argument.
1084 * execute.c (execute): Likewise.
1085 * javacomp.c (compile_java_class): Always pass ignore_sigpipe = false.
1086 * javaexec.c (execute_java_class): Likewise.
1088 2003-09-12 Paul Eggert <eggert@twinsun.com>
1090 * setenv.c (clearenv): Define via prototype.
1092 2003-09-10 Bruno Haible <bruno@clisp.org>
1094 * setenv.c: Include <stdlib.h> and <string.h> unconditionally.
1095 * unsetenv.c: Likewise.
1097 2003-12-12 Bruno Haible <bruno@clisp.org>
1099 Assume automake-1.8.
1100 * Makefile.am (install-exec-local): Renamed from install-exec-am.
1102 2003-11-30 Bruno Haible <bruno@clisp.org>
1104 * alloca.c: Remove file.
1105 * Makefile.am (LIBADD_SOURCE): Remove alloca.c.
1106 (libgettextlib_la_LIBADD): Drop @LTALLOCA@.
1108 2003-11-30 Bruno Haible <bruno@clisp.org>
1110 Safer stack allocation.
1111 * allocsa.h: New file.
1112 * allocsa.c: New file.
1113 * xallocsa.h: New file.
1114 * xallocsa.c: New file.
1115 * canonicalize.c: Include allocsa.h.
1116 (__realpath): Use allocsa instead of alloca. Don't clobber errno right
1117 before returning NULL.
1118 * javacomp.c: Include xallocsa.h.
1119 (compile_java_class): Use allocsa instead of alloca.
1120 * javaexec.c: Include xallocsa.h.
1121 (execute_java_class): Use allocsa instead of alloca.
1122 * relocwrapper.c: Indirectly depends on allocsa.
1123 * setenv.c: Include allocsa.h.
1124 (alloca): Remove fallback definition.
1125 (freea): Remove macro.
1126 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
1128 * Makefile.am (libgettextlib_la_SOURCES): Add allocsa.h, allocsa.c,
1129 xallocsa.h, xallocsa.c.
1130 * Makefile.msvc (OBJECTS): Add allocsa.obj, xallocsa.obj.
1131 (allocsa.obj, xallocsa.obj): New rules.
1132 * Makefile.vms (OBJECTS): Add allocsa.obj, xallocsa.obj.
1133 (allocsa.obj, xallocsa.obj): New rules.
1135 2003-12-17 Bruno Haible <bruno@clisp.org>
1137 * gettext-0.13.1 released.
1139 2003-12-02 Bruno Haible <bruno@clisp.org>
1141 * config.charset: Treat the new country name CS like the old country
1144 2003-11-30 Bruno Haible <bruno@clisp.org>
1146 * gettext-0.13 released.
1148 2003-11-28 Bruno Haible <bruno@clisp.org>
1150 * Makefile.msvc (OBJECTS): Fix typo.
1151 * wait-process.c (cleanup_slaves): Use ANSI C declaration.
1153 2003-11-27 Bruno Haible <bruno@clisp.org>
1155 * wait-process.c: On Windows, include windows.h. Needed on mingw.
1157 2003-11-17 Bruno Haible <bruno@clisp.org>
1159 * canonicalize.c: #undef realpath after <config.h> but before the
1160 system includes, so as to avoid a prototype clash on Solaris 2.5.1.
1161 Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
1163 2003-11-17 Bruno Haible <bruno@clisp.org>
1165 * wait-process.c (wait_process): Disable the 2003-10-31 waitid() patch.
1167 2003-11-16 Bruno Haible <bruno@clisp.org>
1169 * xsize.h (xmax): New function.
1170 (xsum, xsum3, xsum4): Declare as "pure" functions.
1172 2003-11-15 Bruno Haible <bruno@clisp.org>
1174 * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
1176 2003-11-15 Bruno Haible <bruno@clisp.org>
1178 * Makefile.am (docdir, examplesconfigdir, examplesconfig_DATA): New
1181 2003-11-11 Bruno Haible <bruno@clisp.org>
1183 * xsize.h (SIZE_MAX): Remove fallback definition.
1185 2003-11-05 Bruno Haible <bruno@clisp.org>
1187 * xsize.h: Include limits.h, to avoid a possible collision with
1188 SIZE_MAX defined in <limits.h> on Solaris.
1190 2003-11-04 Bruno Haible <bruno@clisp.org>
1192 * xsize.h: New file.
1193 * linebreak.c: Include xsize.h.
1194 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
1195 argument for overflow.
1196 * Makefile.am (libgettextlib_la_SOURCES): Add xsize.h.
1198 2003-10-31 Bruno Haible <bruno@clisp.org>
1200 * wait-process.c (wait_process): Use waitid with WNOWAIT if available,
1201 to avoid (extremely rare) race condition.
1203 2003-10-27 Bruno Haible <bruno@clisp.org>
1205 * stdbool_.h: Better support for BeOS.
1207 2003-10-14 Bruno Haible <bruno@clisp.org>
1209 * hash.h: Make it includable in C++ mode.
1211 2003-10-21 Bruno Haible <bruno@clisp.org>
1213 * canonicalize.c (lstat): Define as an alias to 'stat' on systems
1214 without symbolic links.
1216 2003-10-21 Bruno Haible <bruno@clisp.org>
1218 * wait-process.c (kill): Define appropriately for native Woe32 API.
1220 2003-10-21 Bruno Haible <bruno@clisp.org>
1222 * mkdtemp.c (mkdir): Redefine on mingw.
1224 2003-10-17 Bruno Haible <bruno@clisp.org>
1226 * binary-io.h: Avoid warnings on Cygwin.
1228 2003-10-09 Bruno Haible <bruno@clisp.org>
1230 * xalloc.h: Renamed from xmalloc.h.
1231 * classpath.c: Include xalloc.h instead of xmalloc.h.
1232 * concatpath.c: Likewise.
1233 * fatal-signal.c: Likewise.
1234 * findprog.c: Likewise.
1235 * fstrcmp.c: Likewise.
1237 * javacomp.c: Likewise.
1238 * javaexec.c: Likewise.
1239 * progreloc.c: Likewise.
1240 * relocatable.c: Likewise.
1241 * sh-quote.c: Likewise.
1242 * w32spawn.h: Likewise.
1243 * wait-process.c: Likewise.
1244 * xgetcwd.c: Likewise.
1245 * xmalloc.c: Likewise.
1246 * xreadlink.c: Likewise.
1247 * xstrdup.c: Likewise.
1248 * Makefile.am (libgettextlib_la_SOURCES): Use xalloc.h instead of
1250 * Makefile.msvc: Reorder accordingly.
1251 * Makefile.vms: Likewise.
1253 2003-10-07 Bruno Haible <bruno@clisp.org>
1255 More reliable subprocess cleanup.
1256 * javacomp.c (compile_java_class): Pass slave_process = true to
1257 execute(). create_pipe_in(), wait_subprocess().
1258 * javaexec.c (execute_java_class): Pass slave_process = true to
1261 * wait-process.h (wait_subprocess): Add slave_process argument.
1262 (register_slave_subprocess): New declaration.
1263 * wait-process.c: Include string.h, signal.h, fatal-signal.h,
1265 (slaves_entry_t): New type.
1266 (static_slaves, slaves, slaves_count, slaves_allocated): New variables.
1267 (TERMINATOR): New macro.
1268 (cleanup_slaves, register_slave_subprocess,
1269 unregister_slave_subprocess): New functions.
1270 (wait_subprocess): Add slave_process argument.
1271 * execute.h (execute): Add slave_process argument.
1272 * execute.c: Include signal.h, fatal-signal.h.
1273 (execute): Add slave_process argument.
1274 * pipe.h (create_pipe_in, create_pipe_out, create_pipe_bidi): Add
1275 slave_process argument.
1276 * pipe-in.c: Include signal.h, fatal-signal.h, wait-process.h.
1277 (create_pipe_in): Add slave_process argument.
1278 * pipe-out.c: Include signal.h, fatal-signal.h, wait-process.h.
1279 (create_pipe_out): Add slave_process argument.
1280 * pipe-bidi.c: Include signal.h, fatal-signal.h, wait-process.h.
1281 (create_pipe_bidi): Add slave_process argument.
1283 2003-10-08 Bruno Haible <bruno@clisp.org>
1285 * fatal-signal.h: New file.
1286 * fatal-signal.c: New file.
1287 * Makefile.am (libgettextlib_la_SOURCES): Add them.
1288 * Makefile.msvc (OBJECTS): Add fatal-signal.obj.
1289 (fatal-signal.obj): New rule.
1290 * Makefile.vms (OBJECTS): Add fatal-signal.obj.
1291 (fatal-signal.obj): New rule.
1293 2003-09-21 Bruno Haible <bruno@clisp.org>
1295 * vasprintf.c (int_vasprintf): Assume ANSI C when copying a structure.
1297 2003-09-16 Bruno Haible <bruno@clisp.org>
1299 Portability to SunOS 4.
1300 * atexit.c: New file, from gnulib with modifications.
1301 * Makefile.am (LIBADD_SOURCE): Add atexit.c.
1303 2003-09-14 Bruno Haible <bruno@clisp.org>
1305 * closeout.c: Include fwriteerror.h.
1306 (close_stdout_status): Use improved errno value from fwriteerror().
1307 Don't call fclose; it is be done implicitly during exit().
1309 2003-09-14 Bruno Haible <bruno@clisp.org>
1311 * fwriteerror.h: New file.
1312 * fwriteerror.c: New file.
1313 * Makefile.am (libgettextlib_la_SOURCES): Add fwriteerror.h,
1315 * Makefile.msvc (OBJECTS): Add fwriteerror.obj.
1316 (fwriteerror.obj): New rule.
1317 * Makefile.vms (OBJECTS): Add fwriteerror.obj.
1318 (fwriteerror.obj): New rule.
1320 2003-09-13 Bruno Haible <bruno@clisp.org>
1322 * closeout.h: New file, from gnulib with modifications.
1323 * closeout.c: New file, from gnulib with modifications.
1324 * Makefile.am (libgettextlib_la_SOURCES): Add closeout.h, closeout.c.
1325 * Makefile.msvc (OBJECTS): Add closeout.obj.
1326 (closeout.obj): New rule.
1327 * Makefile.vms (OBJECTS): Add closeout.obj.
1328 (closeout.obj): New rule.
1330 2003-09-12 Paul Eggert <eggert@twinsun.com>
1332 * progreloc.c (get_full_program_name): Define via prototype.
1334 2003-08-28 Bruno Haible <bruno@clisp.org>
1336 * binary-io.h: Undefine O_BINARY before defining it. This avoids a
1337 warning on QNX, which defines O_BINARY to 000000.
1339 2003-08-27 Bruno Haible <bruno@clisp.org>
1341 * getopt.h: Include config.h. Needed for DLL_VARIABLE on OSF/1 4.0.
1343 2003-08-24 Bruno Haible <bruno@clisp.org>
1345 * binary-io.h: Include <stdio.h>, to avoid a compilation error when
1346 MSVC7 <stdio.h> is included later.
1348 2003-08-24 Bruno Haible <bruno@clisp.org>
1350 * error.h: Use ANSI C "..." declarations when compiling with MSVC, even
1351 though it doesn't define __STDC__ by default.
1352 * error.c: Use <stdarg.h> when compiling with MSVC, even though it
1353 doesn't define __STDC__ by default.
1355 2003-08-24 Bruno Haible <bruno@clisp.org>
1357 Support for building DLLs on Windows.
1358 * argmatch.h (argmatch_die): Add DLL_VARIABLE attribute.
1359 * backupfile.h (simple_backup_suffix): Likewise.
1360 * error.h (error_print_progname, error_message_count,
1361 error_one_per_line): Likewise.
1362 * error-progname.h (error_with_progname): Likewise.
1363 * getopt.h (optarg, optind, opterr, optopt): Likewise.
1364 * obstack.h (obstack_alloc_failed_handler, obstack_exit_failure):
1366 * progname.h (program_name): Likewise.
1368 2003-08-24 Bruno Haible <bruno@clisp.org>
1370 * backupfile.h: Make this file includable in C++ mode: add extern "C".
1371 * basename.h: Likewise.
1372 * copy-file.h: Likewise.
1373 * error-progname.h: Likewise.
1374 * findprog.h: Likewise.
1375 * full-write.h: Likewise.
1376 * pathname.h: Likewise.
1378 * progname.h: Likewise.
1379 * relocatable.h: Likewise.
1380 * stpcpy.h: Likewise.
1381 * stpncpy.h: Likewise,
1382 * strcase.h: Likewise.
1383 * strstr.h: Likewise.
1384 * wait-process.h: Likewise.
1385 * xerror.h: Likewise.
1386 * xmalloc.h: Likewise.
1388 2003-08-23 Bruno Haible <bruno@clisp.org>
1390 * getline.h: Update from gnulib.
1391 * getline.c: Update from gnulib.
1392 * getndelim2.h: New file, from gnulib.
1393 * getndelim2.c: New file, from gnulib.
1394 * Makefile.am (LIBADD_SOURCE): Add getndelim2.h, getndelim2.c.
1395 * Makefile.msvc (OBJECTS): Add getndelim2.obj.
1396 (getndelim2.obj): New rule.
1397 * Makefile.vms (OBJECTS): Add getndelim2.obj.
1398 (getndelim2.obj): New rule.
1400 2003-08-23 Bruno Haible <bruno@clisp.org>
1402 * fnmatch_.h: Renamed from pfnmatch.h.
1403 * fnmatch.c: Renamed from pfnmatch.c.
1404 * Makefile.am (LIBADD_SOURCE): Remove pfnmatch.h, pfnmatch.c, add
1406 (EXTRA_DIST): Add fnmatch_.h.
1407 (all-local): Depend on fnmatch.h.
1408 (fnmatch.h): New rule.
1409 (MOSTLYCLEANFILES): Add fnmatch.h.
1410 * Makefile.msvc (OBJECTS): Remove pfnmatch.obj, add fnmatch.obj.
1411 (fnmatch.obj): Renamed from pfnmatch.obj.
1412 * Makefile.vms (OBJECTS): Remove pfnmatch.obj, add fnmatch.obj.
1413 (fnmatch.h): Update rule.
1414 (fnmatch.obj): Renamed from pfnmatch.obj.
1416 2003-07-01 Paul Eggert <eggert@twinsun.com>
1418 * xreadlink.c: Include <sys/types.h> unconditionally, instead of
1419 having it depend on HAVE_SYS_TYPES_H.
1421 2003-06-27 Bruno Haible <bruno@clisp.org>
1423 Avoid use of *_unlocked functions on Solaris 2.5.1.
1424 * localcharset.c: Test HAVE_DECL_GETC_UNLOCKED, not HAVE_GETC_UNLOCKED.
1425 Reported by Eric Botcazou <ebotcazou@libertysurf.fr>.
1427 2003-08-22 Bruno Haible <bruno@clisp.org>
1429 * error-progname.h: New file, extracted from progname.h.
1430 * error-progname.c: New file, extracted from progname.c.
1431 * progname.h (error_with_progname, maybe_print_progname): Remove
1433 * progname.c (error_with_progname): Remove variable.
1434 (maybe_print_progname): Remove function.
1435 * xerror.c: Include error-progname.h.
1436 * Makefile.am (libgettextlib_la_SOURCES): Add error-progname.h and
1438 * Makefile.msvc (OBJECTS): Add error-progname.obj.
1439 (error-progname.obj): New rule.
1440 * Makefile.vms (OBJECTS): Add error-progname.obj.
1441 (error-progname.obj): New rule.
1443 2003-08-20 Bruno Haible <bruno@clisp.org>
1445 * config.charset (linux-gnulibc1*): Change hr_HR, ro_RO to ISO-8859-2.
1446 Reported by Alain Guibert <derogaton+bgli@oreka.com>.
1448 2003-08-11 Bruno Haible <bruno@clisp.org>
1450 * stdbool_.h: Update from gnulib.
1451 2003-08-11 Bruno Haible <bruno@clisp.org>
1452 * stdbool_.h (_Bool): Undo last change; instead use a negative
1453 enum value to ensure that _Bool promotes to int. Use #define
1454 for _Bool when using the Solaris C compiler. Adds comments
1455 suggested by Paul Eggert.
1456 2003-08-03 Paul Eggert <eggert@twinsun.com>
1457 * stdbool_.h (_Bool): Make it signed char, instead of
1458 an enum type, so that it's guaranteed to promote to int. See:
1459 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
1461 2003-05-28 Paul Eggert <eggert@twinsun.com>
1463 * safe-read.c (CHAR_BIT): Don't define, since <limits.h> is guaranteed
1465 * safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
1466 * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
1467 * safe-read.c: Remove TYPE_SIGNED; no longer needed.
1469 2003-04-25 Bruno Haible <bruno@clisp.org>
1471 * copy-file.c: Include <stddef.h>, for size_t.
1473 2003-03-03 Paul Eggert <eggert@twinsun.com>
1474 Bruno Haible <bruno@clisp.org>
1476 * mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
1477 Reported by John Hughes, see
1478 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
1480 2003-01-28 Bruno Haible <bruno@clisp.org>
1482 * c-ctype.h: Assume C_CTYPE_CONSECUTIVE_DIGITS.
1483 (c_isascii, c_isalnum, c_isalpha, c_isxdigit): Optimize.
1484 * c-ctype.c (c_isascii, c_isalnum, c_isalpha, c_ispunct, c_isxdigit):
1486 Suggested by Paul Eggert.
1488 2003-01-23 Bruno Haible <bruno@clisp.org>
1490 * minmax.h: Add comments from Paul Eggert.
1492 2002-11-15 Bruno Haible <bruno@clisp.org>
1494 * strcspn.c: Include <stddef.h>.
1495 * strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
1497 2003-08-14 Bruno Haible <bruno@clisp.org>
1499 * config.charset: Add support for Linux libc5. Based on data from
1500 Alain Guibert <derogaton+bgli@oreka.com>.
1502 2003-08-01 Bruno Haible <bruno@clisp.org>
1504 * relocatable.c (find_shared_library_fullname): Disable the code on
1505 Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
1507 2003-07-09 Paul Eggert <eggert@twinsun.com>
1509 * alloca_.h: Switch from LGPL to GPL.
1511 2003-07-01 Bruno Haible <bruno@clisp.org>
1513 * readlink.c: New file, from gnulib.
1514 * Makefile.am (LIBADD_SOURCE): Add it.
1516 2003-07-01 Bruno Haible <bruno@clisp.org>
1518 * Makefile.am (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of
1521 2003-05-28 Paul Eggert <eggert@twinsun.com>
1523 * pathmax.h: Include <limits.h> without checking for HAVE_LIMITS_H.
1524 * addext.c: Likewise.
1525 * backupfile.c: Likewise.
1526 * xreadlink.c: Likewise.
1528 2003-06-23 Bruno Haible <bruno@clisp.org>
1530 Avoid compilation units that are empty after preprocessing.
1531 * canonicalize.c: Add dummy declaration.
1532 * strerror.c: Likewise.
1533 * strtoul.c: Likewise.
1534 * error.c: Include <stdio.h> even if there's nothing to be compiled.
1536 2003-06-22 Bruno Haible <bruno@clisp.org>
1538 Portability to mingw32.
1539 * relocatable.c [WIN32]: Include <windows.h>.
1540 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
1542 2003-06-22 Bruno Haible <bruno@clisp.org>
1544 * relocatable.c (compute_curr_prefix): Comment out this function in
1545 the case when it is not used.
1546 Reported by Pavel Roskin <proski@gnu.org>.
1548 2003-06-13 Bruno Haible <bruno@clisp.org>
1550 * wait-process.h (wait_subprocess): Add null_stderr argument.
1551 * wait-process.c (wait_subprocess): Add null_stderr argument.
1552 When !exit_on_error && !null_stderr, still emit error messages, but
1554 * execute.c (execute): When !exit_on_error && !null_stderr, still
1555 emit error messages, but don't exit. Update wait_subprocess call.
1556 * pipe-in.c (create_pipe_in): When !exit_on_error && !null_stderr,
1557 still emit error messages, but don't exit.
1558 * pipe-out.c (create_pipe_out): Likewise.
1559 * pipe-bidi.c (create_pipe_bidi): Likewise.
1560 * javacomp.c (compile_java_class): Update wait_subprocess call.
1562 2003-06-08 Bruno Haible <bruno@clisp.org>
1564 * Makefile.vms (alloca.h): New rule.
1565 (all, javacomp.obj, javaexec.obj): Depend on it.
1566 (getopt.obj): Compile with ELIDE_CODE.
1567 * canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
1568 * xgetcwd.c (getcwd) [VMS]: Pass 3 arguments.
1569 Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
1571 2003-05-22 Bruno Haible <bruno@clisp.org>
1573 * gettext-0.12.1 released.
1575 2003-05-18 Bruno Haible <bruno@clisp.org>
1577 * Makefile.msvc (DEBUGFLAGS): New variable.
1578 (gettextlib.lib): Use it.
1580 2003-05-17 Bruno Haible <bruno@clisp.org>
1582 * gettext-0.12 released.
1584 2003-05-17 Bruno Haible <bruno@clisp.org>
1586 * Makefile.msvc (OBJECTS): Remove strpbrk.obj.
1587 (strpbrk.obj): Remove rule.
1589 * w32spawn.h (dup_noinherit): Cast _get_osfhandle result and
1590 _open_osfhandle argument, to avoid warnings.
1591 (prepare_spawn): Add a cast.
1592 * execute.c (execute) [WIN32]: Don't call wait_subprocess; the
1593 return value from spawnvp is already the exit code.
1595 2003-05-10 Bruno Haible <bruno@clisp.org>
1597 * linebreak.c (iconv_string_length): Don't return -1 just because the
1598 string is longer than 4 KB.
1600 2003-05-09 Bruno Haible <bruno@clisp.org>
1602 * error.c: Update from gnulib with modifications.
1603 * unlocked-io.h: New file, from gnulib.
1604 * Makefile.am (libgettextlib_la_SOURCES): Add it.
1606 2003-05-09 Bruno Haible <bruno@clisp.org>
1608 * canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
1609 "extraneous semicolon" warning from Tru64 cc.
1611 2003-05-06 Bruno Haible <bruno@clisp.org>
1613 * Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
1614 * Makefile.msvc (CFLAGS): Likewise.
1616 2003-05-03 Bruno Haible <bruno@clisp.org>
1618 Upgrade to Unicode-4.0.
1619 * linebreak.c (nonspacing_table_data): Change width of U+00AD,
1620 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
1621 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
1622 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
1623 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
1624 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
1625 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
1626 Change width of U+E0100..U+E01EF from 1 to 0.
1628 2003-05-02 Bruno Haible <bruno@clisp.org>
1630 Support for libtool-1.5.
1631 * progname.c (set_program_name): Remove a leading "<dirname>/.libs/lt-"
1632 or "<dirname>/.libs/", not only "lt-".
1634 2003-04-12 Bruno Haible <bruno@clisp.org>
1636 * Makefile.vms: New variables ABIFLAGS, DEFS. Avoid rules with no
1637 lines. Update library creation rule. Don't use the force target.
1638 Correct wildcard syntax. Create fnmatch.h.
1639 Suggested by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
1641 2003-04-12 Bruno Haible <bruno@clisp.org>
1643 * localcharset.c (get_charset_aliases): Add special case for VMS.
1645 2003-04-10 Bruno Haible <bruno@clisp.org>
1647 * findprog.c (find_in_path): Use 'bool' and eaccess().
1648 Suggested by Paul Eggert.
1650 2003-04-06 Bruno Haible <bruno@clisp.org>
1652 * progname.c: Move out all methods depending on ENABLE_RELOCATABLE...
1653 * progreloc.c: ... to here. New file.
1654 * Makefile.am (libgettextlib_la_SOURCES): Add progreloc.c.
1655 * Makefile.msvc (OBJECTS): Add progreloc.obj.
1656 (progreloc.obj): New rule.
1657 * Makefile.vms (OBJECTS): Add progreloc.obj.
1658 (progreloc.obj): New rule.
1660 2003-04-05 Bruno Haible <bruno@clisp.org>
1662 * relocatable.c: Rely on DEPENDS_ON_LIBCHARSET, DEPENDS_ON_LIBICONV,
1663 DEPENDS_ON_LIBINTL, not on NO_LIBRARIES.
1664 * Makefile.am (DEFS): Define DEPENDS_ON_LIBINTL and DEPENDS_ON_LIBICONV,
1666 * Makefile.msvc (CFLAGS): Also define DEPENDS_ON_LIBINTL and
1669 2003-04-05 Bruno Haible <bruno@clisp.org>
1671 * relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets
1672 declared by <stdio.h>.
1674 2003-03-30 Bruno Haible <bruno@clisp.org>
1676 * xgetcwd.c: Include <unistd.h>.
1678 2003-04-03 Bruno Haible <bruno@clisp.org>
1680 * w32spawn.h (dup_noinherit): Signal an error instead of returning -1.
1681 * execute.c: Reorder includes.
1682 * pipe-bidi.c: Likewise.
1683 * pipe-in.c: Likewise.
1684 * pipe-out.c: Likewise.
1686 2003-04-02 Bruno Haible <bruno@clisp.org>
1688 * binary-io.h: Cosmetics. Suggested by Jim Meyering.
1690 2003-03-30 Bruno Haible <bruno@clisp.org>
1692 * Makefile.vms: New file.
1693 * Makefile.am (EXTRA_DIST): Add Makefile.vms.
1694 * execute.c (open): #undef before redefining it. Needed for VMS.
1695 * pipe-in.c (open): Likewise.
1696 * pipe-out.c (open): Likewise.
1698 2003-03-31 Bruno Haible <bruno@clisp.org>
1700 * sh-quote.c (shell_quote_length, shell_quote_copy): Handle empty
1701 argument string correctly.
1703 2003-03-30 Bruno Haible <bruno@clisp.org>
1705 * progname.c (ISSLASH, HAS_DEVICE, IS_PATH_WITH_DIR,
1706 FILESYSTEM_PREFIX_LEN): New macros.
1707 (maybe_executable): Make a nop on Woe32.
1708 (find_executable) [WIN32]: Fix compilation.
1710 * relocatable.h (RELOCATABLE_DLL_EXPORTED): New macro.
1712 * w32spawn.h: New file.
1713 * execute.c: Add alternative implementation using native Woe32 API.
1714 * pipe-bidi.c: Likewise.
1715 * pipe-in.c: Likewise.
1716 * pipe-out.c: Likewise.
1717 * wait-process.c: Likewise.
1718 * Makefile.am (libgettextlib_la_SOURCES): Add w32spawn.h.
1720 * pipe.h (DEV_NULL): New macro.
1721 * javacomp.c (compile_java_class): Use DEV_NULL instead of "/dev/null".
1723 * pipe-bidi.c (STDERR_FILENO): Provide a fallback value.
1724 * pipe-in.c (STDERR_FILENO): Likewise.
1725 * pipe-out.c (STDERR_FILENO): Likewise.
1727 * copy-file.c (copy_file_preserving): Don't set owner if the function
1728 chown() doesn't exist.
1730 2003-03-17 Bruno Haible <bruno@clisp.org>
1732 Native Woe32/MSVC support.
1733 * Makefile.msvc: New file.
1734 * Makefile.am (EXTRA_DIST): Add it.
1736 2003-03-28 Bruno Haible <bruno@clisp.org>
1738 * copy-file.h (copy_file_preserving): Renamed from copy_file.
1739 * copy-file.c (copy_file_preserving): Renamed from copy_file.
1740 Preserve the owner and group as well.
1742 2003-02-28 Bruno Haible <bruno@clisp.org>
1744 Support for relocatable installation.
1745 * canonicalize.h: New file.
1746 * canonicalize.c: New file, from glibc 2.3.1 with modifications.
1747 * relocatable.h: New file.
1748 * relocatable.c: New file.
1749 * relocwrapper.c: New file.
1750 * strerror.c: New file, from gnulib with modifications.
1751 * xreadlink.h: New file, from gnulib with modifications.
1752 * xreadlink.c: New file, from gnulib with modifications.
1753 * progname.h (set_program_name_and_installdir): New declaration.
1754 (set_program_name) [ENABLE_RELOCATABLE]: Define as macro.
1755 (get_full_program_name): New declaration.
1756 * progname.c: Include xreadlink.h, canonicalize.h, relocatable.h.
1757 (executable_fd): New variable.
1758 (maybe_executable): New function.
1759 (find_executable): New function.
1760 (executable_fullname): New variable.
1761 (prepare_relocate): New function.
1762 (set_program_name_and_installdir): New function.
1763 (get_full_program_name): New function.
1764 * localcharset.c: Include relocatable.h.
1765 (get_charset_aliases): Relocate LIBDIR value.
1766 * xmalloc.h (xalloc_die): New declaration.
1767 * xmalloc.c (xalloc_die): New function.
1768 (fixup_null_alloc): Use it.
1769 * Makefile.am (libgettextlib_la_SOURCES): Add xreadlink.h, xreadlink.c.
1770 (LIBADD_SOURCE): Add canonicalize.h, canonicalize.c, memmove.c,
1771 relocatable.h, relocatable.c, strerror.c.
1772 (UNUSED_SOURCE): Remove memmove.c.
1773 (EXTRA_DIST): Add relocwrapper.c.
1775 2003-02-28 Bruno Haible <bruno@clisp.org>
1777 * localcharset.h: Change copyright to LGPL. Enclose declaration in
1778 extern "C", for C++ compilers.
1779 * localcharset.c: Drop C linkage declaration.
1781 2003-01-29 Bruno Haible <bruno@clisp.org>
1783 * config.charset: Add an alias for CP1251 on Solaris.
1784 Reported by Hidetoshi Tajima <hidetoshi.tajima@sun.com>.
1786 2003-02-18 Bruno Haible <bruno@clisp.org>
1788 * copy-file.c: Include safe-read.h.
1789 (copy_file): Simplify code by using safe_read() instead of read().
1791 2003-02-12 Bruno Haible <bruno@clisp.org>
1793 * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
1796 See ChangeLog.0 for earlier changes.