2003-11-30 Bruno Haible * gettext-0.13 released. 2003-11-28 Bruno Haible * Makefile.msvc (OBJECTS): Fix typo. * wait-process.c (cleanup_slaves): Use ANSI C declaration. 2003-11-27 Bruno Haible * wait-process.c: On Windows, include windows.h. Needed on mingw. 2003-11-17 Bruno Haible * canonicalize.c: #undef realpath after but before the system includes, so as to avoid a prototype clash on Solaris 2.5.1. Reported by Warren L. Dodge . 2003-11-17 Bruno Haible * wait-process.c (wait_process): Disable the 2003-10-31 waitid() patch. 2003-11-16 Bruno Haible * xsize.h (xmax): New function. (xsum, xsum3, xsum4): Declare as "pure" functions. 2003-11-15 Bruno Haible * Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES. 2003-11-15 Bruno Haible * Makefile.am (docdir, examplesconfigdir, examplesconfig_DATA): New variables. 2003-11-11 Bruno Haible * xsize.h (SIZE_MAX): Remove fallback definition. 2003-11-05 Bruno Haible * xsize.h: Include limits.h, to avoid a possible collision with SIZE_MAX defined in on Solaris. 2003-11-04 Bruno Haible * xsize.h: New file. * linebreak.c: Include xsize.h. (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc() argument for overflow. * Makefile.am (libgettextlib_la_SOURCES): Add xsize.h. 2003-10-31 Bruno Haible * wait-process.c (wait_process): Use waitid with WNOWAIT if available, to avoid (extremely rare) race condition. 2003-10-27 Bruno Haible * stdbool_.h: Better support for BeOS. 2003-10-14 Bruno Haible * hash.h: Make it includable in C++ mode. 2003-10-21 Bruno Haible * canonicalize.c (lstat): Define as an alias to 'stat' on systems without symbolic links. 2003-10-21 Bruno Haible * wait-process.c (kill): Define appropriately for native Woe32 API. 2003-10-21 Bruno Haible * mkdtemp.c (mkdir): Redefine on mingw. 2003-10-17 Bruno Haible * binary-io.h: Avoid warnings on Cygwin. 2003-10-09 Bruno Haible * xalloc.h: Renamed from xmalloc.h. * classpath.c: Include xalloc.h instead of xmalloc.h. * concatpath.c: Likewise. * fatal-signal.c: Likewise. * findprog.c: Likewise. * fstrcmp.c: Likewise. * hash.c: Likewise. * javacomp.c: Likewise. * javaexec.c: Likewise. * progreloc.c: Likewise. * relocatable.c: Likewise. * sh-quote.c: Likewise. * w32spawn.h: Likewise. * wait-process.c: Likewise. * xgetcwd.c: Likewise. * xmalloc.c: Likewise. * xreadlink.c: Likewise. * xstrdup.c: Likewise. * Makefile.am (libgettextlib_la_SOURCES): Use xalloc.h instead of xmalloc.h. * Makefile.msvc: Reorder accordingly. * Makefile.vms: Likewise. 2003-10-07 Bruno Haible More reliable subprocess cleanup. * javacomp.c (compile_java_class): Pass slave_process = true to execute(). create_pipe_in(), wait_subprocess(). * javaexec.c (execute_java_class): Pass slave_process = true to execute(). * wait-process.h (wait_subprocess): Add slave_process argument. (register_slave_subprocess): New declaration. * wait-process.c: Include string.h, signal.h, fatal-signal.h, xmalloc.h. (slaves_entry_t): New type. (static_slaves, slaves, slaves_count, slaves_allocated): New variables. (TERMINATOR): New macro. (cleanup_slaves, register_slave_subprocess, unregister_slave_subprocess): New functions. (wait_subprocess): Add slave_process argument. * execute.h (execute): Add slave_process argument. * execute.c: Include signal.h, fatal-signal.h. (execute): Add slave_process argument. * pipe.h (create_pipe_in, create_pipe_out, create_pipe_bidi): Add slave_process argument. * pipe-in.c: Include signal.h, fatal-signal.h, wait-process.h. (create_pipe_in): Add slave_process argument. * pipe-out.c: Include signal.h, fatal-signal.h, wait-process.h. (create_pipe_out): Add slave_process argument. * pipe-bidi.c: Include signal.h, fatal-signal.h, wait-process.h. (create_pipe_bidi): Add slave_process argument. 2003-10-08 Bruno Haible * fatal-signal.h: New file. * fatal-signal.c: New file. * Makefile.am (libgettextlib_la_SOURCES): Add them. * Makefile.msvc (OBJECTS): Add fatal-signal.obj. (fatal-signal.obj): New rule. * Makefile.vms (OBJECTS): Add fatal-signal.obj. (fatal-signal.obj): New rule. 2003-09-21 Bruno Haible * vasprintf.c (int_vasprintf): Assume ANSI C when copying a structure. 2003-09-16 Bruno Haible Portability to SunOS 4. * atexit.c: New file, from gnulib with modifications. * Makefile.am (LIBADD_SOURCE): Add atexit.c. 2003-09-14 Bruno Haible * closeout.c: Include fwriteerror.h. (close_stdout_status): Use improved errno value from fwriteerror(). Don't call fclose; it is be done implicitly during exit(). 2003-09-14 Bruno Haible * fwriteerror.h: New file. * fwriteerror.c: New file. * Makefile.am (libgettextlib_la_SOURCES): Add fwriteerror.h, fwriteerror.c. * Makefile.msvc (OBJECTS): Add fwriteerror.obj. (fwriteerror.obj): New rule. * Makefile.vms (OBJECTS): Add fwriteerror.obj. (fwriteerror.obj): New rule. 2003-09-13 Bruno Haible * closeout.h: New file, from gnulib with modifications. * closeout.c: New file, from gnulib with modifications. * Makefile.am (libgettextlib_la_SOURCES): Add closeout.h, closeout.c. * Makefile.msvc (OBJECTS): Add closeout.obj. (closeout.obj): New rule. * Makefile.vms (OBJECTS): Add closeout.obj. (closeout.obj): New rule. 2003-09-12 Paul Eggert * progreloc.c (get_full_program_name): Define via prototype. 2003-08-28 Bruno Haible * binary-io.h: Undefine O_BINARY before defining it. This avoids a warning on QNX, which defines O_BINARY to 000000. 2003-08-27 Bruno Haible * getopt.h: Include config.h. Needed for DLL_VARIABLE on OSF/1 4.0. 2003-08-24 Bruno Haible * binary-io.h: Include , to avoid a compilation error when MSVC7 is included later. 2003-08-24 Bruno Haible * error.h: Use ANSI C "..." declarations when compiling with MSVC, even though it doesn't define __STDC__ by default. * error.c: Use when compiling with MSVC, even though it doesn't define __STDC__ by default. 2003-08-24 Bruno Haible Support for building DLLs on Windows. * argmatch.h (argmatch_die): Add DLL_VARIABLE attribute. * backupfile.h (simple_backup_suffix): Likewise. * error.h (error_print_progname, error_message_count, error_one_per_line): Likewise. * error-progname.h (error_with_progname): Likewise. * getopt.h (optarg, optind, opterr, optopt): Likewise. * obstack.h (obstack_alloc_failed_handler, obstack_exit_failure): Likewise. * progname.h (program_name): Likewise. 2003-08-24 Bruno Haible * backupfile.h: Make this file includable in C++ mode: add extern "C". * basename.h: Likewise. * copy-file.h: Likewise. * error-progname.h: Likewise. * findprog.h: Likewise. * full-write.h: Likewise. * pathname.h: Likewise. * pipe.h: Likewise. * progname.h: Likewise. * relocatable.h: Likewise. * stpcpy.h: Likewise. * stpncpy.h: Likewise, * strcase.h: Likewise. * strstr.h: Likewise. * wait-process.h: Likewise. * xerror.h: Likewise. * xmalloc.h: Likewise. 2003-08-23 Bruno Haible * getline.h: Update from gnulib. * getline.c: Update from gnulib. * getndelim2.h: New file, from gnulib. * getndelim2.c: New file, from gnulib. * Makefile.am (LIBADD_SOURCE): Add getndelim2.h, getndelim2.c. * Makefile.msvc (OBJECTS): Add getndelim2.obj. (getndelim2.obj): New rule. * Makefile.vms (OBJECTS): Add getndelim2.obj. (getndelim2.obj): New rule. 2003-08-23 Bruno Haible * fnmatch_.h: Renamed from pfnmatch.h. * fnmatch.c: Renamed from pfnmatch.c. * Makefile.am (LIBADD_SOURCE): Remove pfnmatch.h, pfnmatch.c, add fnmatch.c. (EXTRA_DIST): Add fnmatch_.h. (all-local): Depend on fnmatch.h. (fnmatch.h): New rule. (MOSTLYCLEANFILES): Add fnmatch.h. * Makefile.msvc (OBJECTS): Remove pfnmatch.obj, add fnmatch.obj. (fnmatch.obj): Renamed from pfnmatch.obj. * Makefile.vms (OBJECTS): Remove pfnmatch.obj, add fnmatch.obj. (fnmatch.h): Update rule. (fnmatch.obj): Renamed from pfnmatch.obj. 2003-07-01 Paul Eggert * xreadlink.c: Include unconditionally, instead of having it depend on HAVE_SYS_TYPES_H. 2003-06-27 Bruno Haible Avoid use of *_unlocked functions on Solaris 2.5.1. * localcharset.c: Test HAVE_DECL_GETC_UNLOCKED, not HAVE_GETC_UNLOCKED. Reported by Eric Botcazou . 2003-08-22 Bruno Haible * error-progname.h: New file, extracted from progname.h. * error-progname.c: New file, extracted from progname.c. * progname.h (error_with_progname, maybe_print_progname): Remove declarations. * progname.c (error_with_progname): Remove variable. (maybe_print_progname): Remove function. * xerror.c: Include error-progname.h. * Makefile.am (libgettextlib_la_SOURCES): Add error-progname.h and error-progname.c. * Makefile.msvc (OBJECTS): Add error-progname.obj. (error-progname.obj): New rule. * Makefile.vms (OBJECTS): Add error-progname.obj. (error-progname.obj): New rule. 2003-08-20 Bruno Haible * config.charset (linux-gnulibc1*): Change hr_HR, ro_RO to ISO-8859-2. Reported by Alain Guibert . 2003-08-11 Bruno Haible * stdbool_.h: Update from gnulib. 2003-08-11 Bruno Haible * stdbool_.h (_Bool): Undo last change; instead use a negative enum value to ensure that _Bool promotes to int. Use #define for _Bool when using the Solaris C compiler. Adds comments suggested by Paul Eggert. 2003-08-03 Paul Eggert * stdbool_.h (_Bool): Make it signed char, instead of an enum type, so that it's guaranteed to promote to int. See: 2003-05-28 Paul Eggert * safe-read.c (CHAR_BIT): Don't define, since is guaranteed to do that. * safe-read.c (INT_MAX): Don't define, since does that. * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. * safe-read.c: Remove TYPE_SIGNED; no longer needed. 2003-04-25 Bruno Haible * copy-file.c: Include , for size_t. 2003-03-03 Paul Eggert Bruno Haible * mbswidth.h: Include . Needed for UnixWare 7.1.1. Reported by John Hughes, see http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html 2003-01-28 Bruno Haible * c-ctype.h: Assume C_CTYPE_CONSECUTIVE_DIGITS. (c_isascii, c_isalnum, c_isalpha, c_isxdigit): Optimize. * c-ctype.c (c_isascii, c_isalnum, c_isalpha, c_ispunct, c_isxdigit): Optimize. Suggested by Paul Eggert. 2003-01-23 Bruno Haible * minmax.h: Add comments from Paul Eggert. 2002-11-15 Bruno Haible * strcspn.c: Include . * strpbrk.c: Minimize diffs to glibc. Include . 2003-08-14 Bruno Haible * config.charset: Add support for Linux libc5. Based on data from Alain Guibert . 2003-08-01 Bruno Haible * relocatable.c (find_shared_library_fullname): Disable the code on Linux/libc5. Reported by Alain Guibert . 2003-07-09 Paul Eggert * alloca_.h: Switch from LGPL to GPL. 2003-07-01 Bruno Haible * readlink.c: New file, from gnulib. * Makefile.am (LIBADD_SOURCE): Add it. 2003-07-01 Bruno Haible * Makefile.am (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in. 2003-05-28 Paul Eggert * pathmax.h: Include without checking for HAVE_LIMITS_H. * addext.c: Likewise. * backupfile.c: Likewise. * xreadlink.c: Likewise. 2003-06-23 Bruno Haible Avoid compilation units that are empty after preprocessing. * canonicalize.c: Add dummy declaration. * strerror.c: Likewise. * strtoul.c: Likewise. * error.c: Include even if there's nothing to be compiled. 2003-06-22 Bruno Haible Portability to mingw32. * relocatable.c [WIN32]: Include . Reported by Jeff Bonggren . 2003-06-22 Bruno Haible * relocatable.c (compute_curr_prefix): Comment out this function in the case when it is not used. Reported by Pavel Roskin . 2003-06-13 Bruno Haible * wait-process.h (wait_subprocess): Add null_stderr argument. * wait-process.c (wait_subprocess): Add null_stderr argument. When !exit_on_error && !null_stderr, still emit error messages, but don't exit. * execute.c (execute): When !exit_on_error && !null_stderr, still emit error messages, but don't exit. Update wait_subprocess call. * pipe-in.c (create_pipe_in): When !exit_on_error && !null_stderr, still emit error messages, but don't exit. * pipe-out.c (create_pipe_out): Likewise. * pipe-bidi.c (create_pipe_bidi): Likewise. * javacomp.c (compile_java_class): Update wait_subprocess call. 2003-06-08 Bruno Haible * Makefile.vms (alloca.h): New rule. (all, javacomp.obj, javaexec.obj): Depend on it. (getopt.obj): Compile with ELIDE_CODE. * canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd. * xgetcwd.c (getcwd) [VMS]: Pass 3 arguments. Reported by Jouk Jansen . 2003-05-22 Bruno Haible * gettext-0.12.1 released. 2003-05-18 Bruno Haible * Makefile.msvc (DEBUGFLAGS): New variable. (gettextlib.lib): Use it. 2003-05-17 Bruno Haible * gettext-0.12 released. 2003-05-17 Bruno Haible * Makefile.msvc (OBJECTS): Remove strpbrk.obj. (strpbrk.obj): Remove rule. * w32spawn.h (dup_noinherit): Cast _get_osfhandle result and _open_osfhandle argument, to avoid warnings. (prepare_spawn): Add a cast. * execute.c (execute) [WIN32]: Don't call wait_subprocess; the return value from spawnvp is already the exit code. 2003-05-10 Bruno Haible * linebreak.c (iconv_string_length): Don't return -1 just because the string is longer than 4 KB. 2003-05-09 Bruno Haible * error.c: Update from gnulib with modifications. * unlocked-io.h: New file, from gnulib. * Makefile.am (libgettextlib_la_SOURCES): Add it. 2003-05-09 Bruno Haible * canonicalize.c: Add #ifdef around versioned_symbol. Avoids an "extraneous semicolon" warning from Tru64 cc. 2003-05-06 Bruno Haible * Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV. * Makefile.msvc (CFLAGS): Likewise. 2003-05-03 Bruno Haible Upgrade to Unicode-4.0. * linebreak.c (nonspacing_table_data): Change width of U+00AD, U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615, U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5, U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1. (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2. Change width of U+E0100..U+E01EF from 1 to 0. 2003-05-02 Bruno Haible Support for libtool-1.5. * progname.c (set_program_name): Remove a leading "/.libs/lt-" or "/.libs/", not only "lt-". 2003-04-12 Bruno Haible * Makefile.vms: New variables ABIFLAGS, DEFS. Avoid rules with no lines. Update library creation rule. Don't use the force target. Correct wildcard syntax. Create fnmatch.h. Suggested by Jouk Jansen . 2003-04-12 Bruno Haible * localcharset.c (get_charset_aliases): Add special case for VMS. 2003-04-10 Bruno Haible * findprog.c (find_in_path): Use 'bool' and eaccess(). Suggested by Paul Eggert. 2003-04-06 Bruno Haible * progname.c: Move out all methods depending on ENABLE_RELOCATABLE... * progreloc.c: ... to here. New file. * Makefile.am (libgettextlib_la_SOURCES): Add progreloc.c. * Makefile.msvc (OBJECTS): Add progreloc.obj. (progreloc.obj): New rule. * Makefile.vms (OBJECTS): Add progreloc.obj. (progreloc.obj): New rule. 2003-04-05 Bruno Haible * relocatable.c: Rely on DEPENDS_ON_LIBCHARSET, DEPENDS_ON_LIBICONV, DEPENDS_ON_LIBINTL, not on NO_LIBRARIES. * Makefile.am (DEFS): Define DEPENDS_ON_LIBINTL and DEPENDS_ON_LIBICONV, for relocatable.c. * Makefile.msvc (CFLAGS): Also define DEPENDS_ON_LIBINTL and DEPENDS_ON_LIBCONV. 2003-04-05 Bruno Haible * relocatable.c (_GNU_SOURCE): Define, to ensure getline() gets declared by . 2003-03-30 Bruno Haible * xgetcwd.c: Include . 2003-04-03 Bruno Haible * w32spawn.h (dup_noinherit): Signal an error instead of returning -1. * execute.c: Reorder includes. * pipe-bidi.c: Likewise. * pipe-in.c: Likewise. * pipe-out.c: Likewise. 2003-04-02 Bruno Haible * binary-io.h: Cosmetics. Suggested by Jim Meyering. 2003-03-30 Bruno Haible * Makefile.vms: New file. * Makefile.am (EXTRA_DIST): Add Makefile.vms. * execute.c (open): #undef before redefining it. Needed for VMS. * pipe-in.c (open): Likewise. * pipe-out.c (open): Likewise. 2003-03-31 Bruno Haible * sh-quote.c (shell_quote_length, shell_quote_copy): Handle empty argument string correctly. 2003-03-30 Bruno Haible * progname.c (ISSLASH, HAS_DEVICE, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN): New macros. (maybe_executable): Make a nop on Woe32. (find_executable) [WIN32]: Fix compilation. * relocatable.h (RELOCATABLE_DLL_EXPORTED): New macro. * w32spawn.h: New file. * execute.c: Add alternative implementation using native Woe32 API. * pipe-bidi.c: Likewise. * pipe-in.c: Likewise. * pipe-out.c: Likewise. * wait-process.c: Likewise. * Makefile.am (libgettextlib_la_SOURCES): Add w32spawn.h. * pipe.h (DEV_NULL): New macro. * javacomp.c (compile_java_class): Use DEV_NULL instead of "/dev/null". * pipe-bidi.c (STDERR_FILENO): Provide a fallback value. * pipe-in.c (STDERR_FILENO): Likewise. * pipe-out.c (STDERR_FILENO): Likewise. * copy-file.c (copy_file_preserving): Don't set owner if the function chown() doesn't exist. 2003-03-17 Bruno Haible Native Woe32/MSVC support. * Makefile.msvc: New file. * Makefile.am (EXTRA_DIST): Add it. 2003-03-28 Bruno Haible * copy-file.h (copy_file_preserving): Renamed from copy_file. * copy-file.c (copy_file_preserving): Renamed from copy_file. Preserve the owner and group as well. 2003-02-28 Bruno Haible Support for relocatable installation. * canonicalize.h: New file. * canonicalize.c: New file, from glibc 2.3.1 with modifications. * relocatable.h: New file. * relocatable.c: New file. * relocwrapper.c: New file. * strerror.c: New file, from gnulib with modifications. * xreadlink.h: New file, from gnulib with modifications. * xreadlink.c: New file, from gnulib with modifications. * progname.h (set_program_name_and_installdir): New declaration. (set_program_name) [ENABLE_RELOCATABLE]: Define as macro. (get_full_program_name): New declaration. * progname.c: Include xreadlink.h, canonicalize.h, relocatable.h. (executable_fd): New variable. (maybe_executable): New function. (find_executable): New function. (executable_fullname): New variable. (prepare_relocate): New function. (set_program_name_and_installdir): New function. (get_full_program_name): New function. * localcharset.c: Include relocatable.h. (get_charset_aliases): Relocate LIBDIR value. * xmalloc.h (xalloc_die): New declaration. * xmalloc.c (xalloc_die): New function. (fixup_null_alloc): Use it. * Makefile.am (libgettextlib_la_SOURCES): Add xreadlink.h, xreadlink.c. (LIBADD_SOURCE): Add canonicalize.h, canonicalize.c, memmove.c, relocatable.h, relocatable.c, strerror.c. (UNUSED_SOURCE): Remove memmove.c. (EXTRA_DIST): Add relocwrapper.c. 2003-02-28 Bruno Haible * localcharset.h: Change copyright to LGPL. Enclose declaration in extern "C", for C++ compilers. * localcharset.c: Drop C linkage declaration. 2003-01-29 Bruno Haible * config.charset: Add an alias for CP1251 on Solaris. Reported by Hidetoshi Tajima . 2003-02-18 Bruno Haible * copy-file.c: Include safe-read.h. (copy_file): Simplify code by using safe_read() instead of read(). 2003-02-12 Bruno Haible * Makefile.am (EXTRA_DIST): Add ChangeLog.0. See ChangeLog.0 for earlier changes.