neovim/cmake.deps/CMakeLists.txt

283 lines
10 KiB
CMake
Raw Normal View History

# This is not meant to be included by the top-level.
cmake_minimum_required (VERSION 3.10)
project(NVIM_DEPS C)
2015-03-20 12:31:39 -07:00
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()
# Point CMake at any custom modules we may ship
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" "${PROJECT_SOURCE_DIR}/../cmake")
include(CheckCCompilerFlag)
include(Util)
set(DEPS_CMAKE_ARGS
-D CMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-D CMAKE_C_STANDARD=99
-D CMAKE_GENERATOR=${CMAKE_GENERATOR}
-D CMAKE_GENERATOR_PLATFORM=${CMAKE_GENERATOR_PLATFORM}
-D CMAKE_POSITION_INDEPENDENT_CODE=ON
-D CMAKE_FIND_FRAMEWORK=${CMAKE_FIND_FRAMEWORK})
set(DEPS_CMAKE_CACHE_ARGS -DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES})
set_default_buildtype()
get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT isMultiConfig)
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
endif()
set(DEFAULT_MAKE_CFLAGS CFLAGS+=-g)
check_c_compiler_flag(-Og HAS_OG_FLAG)
if(HAS_OG_FLAG)
set(DEFAULT_MAKE_CFLAGS CFLAGS+=-Og ${DEFAULT_MAKE_CFLAGS})
endif()
set(DEPS_INSTALL_DIR "${CMAKE_BINARY_DIR}/usr")
set(DEPS_BIN_DIR "${DEPS_INSTALL_DIR}/bin")
set(DEPS_LIB_DIR "${DEPS_INSTALL_DIR}/lib")
set(DEPS_BUILD_DIR "${CMAKE_BINARY_DIR}/build")
set(DEPS_DOWNLOAD_DIR "${DEPS_BUILD_DIR}/downloads")
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_INSTALL_PREFIX=${DEPS_INSTALL_DIR})
option(USE_BUNDLED "Use bundled dependencies." ON)
option(USE_BUNDLED_UNIBILIUM "Use the bundled unibilium." ${USE_BUNDLED})
option(USE_BUNDLED_LIBTERMKEY "Use the bundled libtermkey." ${USE_BUNDLED})
option(USE_BUNDLED_LIBVTERM "Use the bundled libvterm." ${USE_BUNDLED})
option(USE_BUNDLED_LIBUV "Use the bundled libuv." ${USE_BUNDLED})
option(USE_BUNDLED_MSGPACK "Use the bundled msgpack." ${USE_BUNDLED})
option(USE_BUNDLED_LUAJIT "Use the bundled version of luajit." ${USE_BUNDLED})
option(USE_BUNDLED_LUAROCKS "Use the bundled version of luarocks." ${USE_BUNDLED})
option(USE_BUNDLED_LUV "Use the bundled version of luv." ${USE_BUNDLED})
#XXX(tarruda): Lua is only used for debugging the functional test client, don't
# build it unless explicitly requested
option(USE_BUNDLED_LUA "Use the bundled version of lua." OFF)
option(USE_BUNDLED_TS_PARSERS "Use the bundled treesitter parsers." ${USE_BUNDLED})
option(USE_BUNDLED_TS "Use the bundled treesitter runtime." ${USE_BUNDLED})
if(USE_BUNDLED AND MSVC)
option(USE_BUNDLED_GETTEXT "Use the bundled version of gettext." ON)
option(USE_BUNDLED_LIBICONV "Use the bundled version of libiconv." ON)
else()
option(USE_BUNDLED_GETTEXT "Use the bundled version of gettext." OFF)
option(USE_BUNDLED_LIBICONV "Use the bundled version of libiconv." OFF)
endif()
if(WIN32)
option(USE_BUNDLED_NVIMQT "Bundle neovim-qt" ON)
endif()
option(USE_EXISTING_SRC_DIR "Skip download of deps sources in case of existing source directory." OFF)
find_package(Git)
if(NOT Git_FOUND)
message(FATAL_ERROR "Git is required to apply patches.")
endif()
2014-11-05 17:41:14 -07:00
if(UNIX)
find_program(MAKE_PRG NAMES gmake make)
if(NOT MAKE_PRG)
message(FATAL_ERROR "GNU Make is required to build the dependencies.")
else()
message(STATUS "Found GNU Make at ${MAKE_PRG}")
endif()
endif()
# When using make, use the $(MAKE) variable to avoid warning about the job
# server.
if(CMAKE_GENERATOR MATCHES "Makefiles")
set(MAKE_PRG "$(MAKE)")
endif()
if(MINGW AND CMAKE_GENERATOR MATCHES "Ninja")
find_program(MAKE_PRG NAMES mingw32-make)
if(NOT MAKE_PRG)
message(FATAL_ERROR "GNU Make for mingw32 is required to build the dependencies.")
else()
message(STATUS "Found GNU Make for mingw32: ${MAKE_PRG}")
endif()
endif()
set(DEPS_C_COMPILER "${CMAKE_C_COMPILER}")
if(CMAKE_OSX_SYSROOT)
set(DEPS_C_COMPILER "${DEPS_C_COMPILER} -isysroot${CMAKE_OSX_SYSROOT}")
endif()
if(CMAKE_OSX_ARCHITECTURES)
# The LuaJIT build does not like being passed multiple `-arch` flags
# so we handle a universal build the old-fashioned way.
set(LUAJIT_C_COMPILER "${DEPS_C_COMPILER}")
foreach(ARCH IN LISTS CMAKE_OSX_ARCHITECTURES)
set(DEPS_C_COMPILER "${DEPS_C_COMPILER} -arch ${ARCH}")
endforeach()
endif()
# If the macOS deployment target is not set manually (via $MACOSX_DEPLOYMENT_TARGET),
# fall back to local system version. Needs to be done here and in top-level CMakeLists.txt.
if(APPLE)
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
execute_process(COMMAND sw_vers -productVersion
OUTPUT_VARIABLE MACOS_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "${MACOS_VERSION}")
endif()
message(STATUS "Using deployment target ${CMAKE_OSX_DEPLOYMENT_TARGET}")
endif()
include(ExternalProject)
set_directory_properties(PROPERTIES EP_PREFIX "${DEPS_BUILD_DIR}")
2023-08-10 09:35:13 -07:00
set(LIBUV_URL https://github.com/libuv/libuv/archive/v1.46.0.tar.gz)
set(LIBUV_SHA256 7aa66be3413ae10605e1f5c9ae934504ffe317ef68ea16fdaa83e23905c681bd)
set(MSGPACK_URL https://github.com/msgpack/msgpack-c/releases/download/c-6.0.0/msgpack-c-6.0.0.tar.gz)
set(MSGPACK_SHA256 3654f5e2c652dc52e0a993e270bb57d5702b262703f03771c152bba51602aeba)
# https://github.com/LuaJIT/LuaJIT/tree/v2.1
set(LUAJIT_URL https://github.com/LuaJIT/LuaJIT/archive/03c31124cc3b521ef54fe398e10fa55660a5057d.tar.gz)
set(LUAJIT_SHA256 61dcc7ae3f543ae3cc30e66db060e31e2a77e4be34ee65e370c953d112b4d60c)
2016-12-03 17:42:32 -07:00
set(LUA_URL https://www.lua.org/ftp/lua-5.1.5.tar.gz)
set(LUA_SHA256 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333)
set(LUAROCKS_URL https://github.com/luarocks/luarocks/archive/v3.9.2.tar.gz)
set(LUAROCKS_SHA256 a0b36cd68586cd79966d0106bb2e5a4f5523327867995fd66bee4237062b3e3b)
set(UNIBILIUM_URL https://github.com/neovim/unibilium/archive/d72c3598e7ac5d1ebf86ee268b8b4ed95c0fa628.tar.gz)
set(UNIBILIUM_SHA256 9c4747c862ab5e3076dcf8fa8f0ea7a6b50f20ec5905618b9536655596797487)
set(LIBTERMKEY_URL https://github.com/neovim/deps/raw/aa004f1b2b6470a92363cba8e1cc1874141dacc4/opt/libtermkey-0.22.tar.gz)
2019-11-28 20:45:43 -07:00
set(LIBTERMKEY_SHA256 6945bd3c4aaa83da83d80a045c5563da4edd7d0374c62c0d35aec09eb3014600)
set(LIBVTERM_URL https://github.com/neovim/deps/raw/12c9dcf1d823ac4acbccf494c93c4774a87db11d/opt/libvterm-0.3.3.tar.gz)
set(LIBVTERM_SHA256 09156f43dd2128bd347cbeebe50d9a571d32c64e0cf18d211197946aff7226e0)
2023-08-10 09:36:12 -07:00
set(LUV_URL https://github.com/luvit/luv/archive/1.45.0-0.tar.gz)
set(LUV_SHA256 97e89940f9eeaa8dfb34f1c19f80dd373299c42719d15228ec790f415d4e4965)
set(LUA_COMPAT53_URL https://github.com/keplerproject/lua-compat-5.3/archive/v0.9.tar.gz)
set(LUA_COMPAT53_SHA256 ad05540d2d96a48725bb79a1def35cf6652a4e2ec26376e2617c8ce2baa6f416)
# Windows only: cat.exe diff.exe tee.exe xxd.exe
set(CAT_URL https://github.com/neovim/deps/raw/21c5e8bdda33521a6ed497b315e03265a2785cbc/opt/cat.exe)
set(CAT_SHA256 93b8d307bb15af3968920bdea3beb869a49d166f9164853c58a4e6ffdcae61c6)
set(DIFF_URL https://github.com/neovim/deps/raw/21c5e8bdda33521a6ed497b315e03265a2785cbc/opt/diff.exe)
set(DIFF_SHA256 4ceceebc8150422c6d8d9a06c2e9686d5a5d90f1033f60ad92ab81fe810e2a28)
set(TEE_URL https://github.com/neovim/deps/raw/21c5e8bdda33521a6ed497b315e03265a2785cbc/opt/tee.exe)
set(TEE_SHA256 950eea4e17fa3a7e89fa2c55374037b5797b3f1a54fea1304634884ab42ec14d)
set(XXD_URL https://github.com/neovim/deps/raw/21c5e8bdda33521a6ed497b315e03265a2785cbc/opt/xxd.exe)
set(XXD_SHA256 7a581e3882d28161cc52850f9a11d634b3eaf2c029276f093c1ed4c90e45a10c)
set(WINGUI_URL https://github.com/equalsraf/neovim-qt/releases/download/v0.2.17/neovim-qt.zip)
set(WINGUI_SHA256 502e386eef677c2c2e0c11d8cbb27f3e12b4d96818369417e8da4129c4580c25)
2017-02-15 10:13:49 -07:00
set(WIN32YANK_X86_64_URL https://github.com/equalsraf/win32yank/releases/download/v0.1.1/win32yank-x64.zip)
set(WIN32YANK_X86_64_SHA256 247c9a05b94387a884b49d3db13f806b1677dfc38020f955f719be6902260cd6)
deps: gettext 0.20.1 fix https://github.com/neovim/neovim/pull/8163 The `gettext-Fix-compilation-on-a-system-without-alloca.patch` patch is included in gettext 0.20.1, so we can remove that file and the associated PATCH_COMMAND in `BuildGettext.cmake`. changes (abbreviated) since 0.19.8.1: 2019-05-12 Bruno Haible <bruno@clisp.org> intl: Fix wrong libtool versioning information. Reported by Ken Takata <ktakata65536@gmail.com> in <https://savannah.gnu.org/bugs/?56305>. 2019-05-11 Bruno Haible <bruno@clisp.org> intl: Remove obsolete code. Update after gnulib changed. * autogen.sh: Don't copy intl.m4. intl.m4, intmax.m4, printf-posix.m4, uintmax_t.m4, visibility.m4. Update to newest gnulib. 2019-05-09 Bruno Haible <bruno@clisp.org> Update release steps. 2019-05-08 Bruno Haible <bruno@clisp.org> examples: Use infrastructure from gettext version 0.20. version 0.20. Update translations (from the TP). Prepare for 0.20 release. * libtextstyle/version.sh: Update RELEASE_DATE. 2019-05-07 Bruno Haible <bruno@clisp.org> libtextstyle: examples: Enable --color=html, for debuggability. Reported by Akim Demaille. * libtextstyle/examples/color-hello/hello.c (main): Handle color_html case. * libtextstyle/examples/color-filter/filter.c (main): Likewise. 2019-05-05 Bruno Haible <bruno@clisp.org> examples: hello-c++-widgets: Update build infrastructure. Gnulib changed on 2018-11-11: asm-underscore.m4 is no longer needed for havelib. asm-underscore.m4. asm-underscore.m4. 2019-05-05 Bruno Haible <bruno@clisp.org> (check_PROGRAMS): Add intl-version-prg. (intl_version_prg_SOURCES, intl_version_prg_LDADD): New variables. 2019-05-05 Bruno Haible <bruno@clisp.org> msginit: Avoid error messages when run on mingw. Reported by Michele Locati <michele@locati.it>. language_team_address): Don't even attempt to run the shell script. 2019-05-05 Bruno Haible <bruno@clisp.org> libtextstyle: Document debugging tricks. Reported by Akim Demaille <akim@lrde.epita.fr>. * libtextstyle/doc/libtextstyle.texi (Debugging style files): New subsection. (Debugging the styling code): New section. 2019-05-01 Bruno Haible <bruno@clisp.org> msginit: Fix invocation of helper programs on Windows. Reported by Michele Locati <michele@locati.it> in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00058.html>. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add configmake. (main): Add BINDIR to the PATH. 2019-05-01 Bruno Haible <bruno@clisp.org> msginit: Improvements for Cygwin and Android. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add sh-filename. language_team_address): Use BOURNE_SHELL instead of hardcoding /bin/sh. 2019-04-29 Bruno Haible <bruno@clisp.org> libtextstyle: Document one more terminal emulator. * libtextstyle/doc/libtextstyle.texi (Terminal emulators): Mention QTerminal. 2019-04-28 Bruno Haible <bruno@clisp.org> "cldr-plurals.exe", not "cldr-plurals". 2019-04-28 Bruno Haible <bruno@clisp.org> In the POT files, talk about the "GNU gettext package". Reported by Benno Schulenberg <coordinator@translationproject.org>. 2019-04-28 Bruno Haible <bruno@clisp.org> XGETTEXT_OPTIONS and the XGETTEXT_EXTRA_OPTIONS after all other options. Likewise. ($(DOMAIN).pot-update): Likewise. 2019-04-28 Bruno Haible <bruno@clisp.org> The xterm description on these platforms includes support for italics. Reported by Nelson H. F. Beebe. New file. expected result. 2019-04-28 Bruno Haible <bruno@clisp.org> libxml: Avoid gcc warnings. Avoids "warning: too many arguments for format". * gnulib-local/lib/libxml/xmlerror.in.h (__xmlSimpleError): Remove LIBXML_ATTR_FORMAT annotation, because this function may be called with a NULL msg. 2019-04-28 Bruno Haible <bruno@clisp.org> libxml: Avoid build failure due to "implicit declaration of function". * gnulib-local/lib/libxml/libxml.h: Include xmlstring.h only after config.h is included. libxml: Update included libxml2 to version 2.9.9. * gnulib-local/lib/libxml/*: Update from libxml2 2.9.9. Update to newest gnulib. 2019-04-28 Bruno Haible <bruno@clisp.org> Reported by Nelson H. F. Beebe. allow an expected result in UTF-8 encoding. 2019-04-28 Bruno Haible <bruno@clisp.org> Reported by Nelson H. F. Beebe. 2019-04-28 Bruno Haible <bruno@clisp.org> Reported by Nelson H. F. Beebe. 2019-04-28 Bruno Haible <bruno@clisp.org> The master copy lives in gnulib now. 2019-04-28 Bruno Haible <bruno@clisp.org> 2019-04-28 Bruno Haible <bruno@clisp.org> Reported by Nelson H. F. Beebe. "automake -a -c". 2019-04-28 Bruno Haible <bruno@clisp.org> Reported by Nelson H. F. Beebe. 2019-04-28 Bruno Haible <bruno@clisp.org> Update after gnulib changed. Update to newest gnulib. 2019-04-27 Bruno Haible <bruno@clisp.org> intl: Use the lookup optimization also on platforms without per-thread locales. This bug was introduced on 2007-01-27. 2019-04-27 Bruno Haible <bruno@clisp.org> po-mode: Fix warning. libgettextpo: Don't rely on the undocumented variable libgettextpo_program_name. * gnulib-local/lib/xerror.c: If IN_LIBGETTEXTPO is defined, include getprogname.h instead of progname.h and define program_name as a macro. * gnulib-local/lib/error-progname.c: Likewise. * autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Remove progname. Pass --avoid=progname to gnulib-tool invocation for libgettextpo. libgettextpo: Fix crash when iconv() does not support the PO file's encoding. defined, don't use program_name. libgettextpo: Fix gcc warnings. evaluate the classname argument. Fix a gcc warning. USEJAVA is 0. Fix a gcc warning on mingw. set. (get_user_fullname): Don't call get_user_pwd if HAVE_PWD_H is not set. Fix gcc warnings on mingw and IRIX 6.5. supports %zu. Fix gcc warnings on mingw. Fix a gcc warning (regression from 2017-05-04). search-path.c: Improve code style. (foreach_elements): Fix comment. (get_search_path): Improve comments. Perform each getenv() only once. Reduce scope of variables. Fix gcc warning. libxml: Fix width of fprintf argument on native Windows. * gnulib-local/lib/libxml/timsort.h (TIM_SORT_RESIZE): Cast fprintf argument to 'unsigned long'. intl: Fix a gcc warning. data as BYTE array, not char array. 2019-04-26 Bruno Haible <bruno@clisp.org> Reported by Michele Locati <michele@locati.it> in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00052.html>. symbol. 2019-04-26 Bruno Haible <bruno@clisp.org> Document the OUTPUT_CHARSET environment variable. Reported by Václav Slavík <vaclav@slavik.io> via Michele Locati <michele@locati.it>. 2019-04-14 Bruno Haible <bruno@clisp.org> Update translations (from the TP). Prepare for 0.20 release. (GETTEXT_MACRO_VERSION): Bump to 0.20. output. * libtextstyle/version.sh: Use version number 0.20 here as well. autopoint: Reject AM_GNU_GETTEXT without 'external' for versions >= 0.20. specified with a gettext version >= 0.20. --with-included-gettext. Don't use libtoolize. * check-copyright-headers (func_check_file): Succeed for the archive.dir.tar file. Update to newest gnulib. 2019-04-13 Bruno Haible <bruno@clisp.org> assume that fprintf supports %zu. * autogen.sh: Copy x-to-1.in from gnulib. libtextstyle/lib. (textstyle.h): New rule. (BUILT_SOURCES, MOSTLYCLEANFILES): Add textstyle.h and textstyle/*.h. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add openmp-init. Remove openmp. Update to newest gnulib. 2019-04-12 Bruno Haible <bruno@clisp.org> msgfmt: Fix another buffer overrun. Reported and patch by Joshua Root <jmr@macports.org> at <https://savannah.gnu.org/bugs/?56126>. trailing NUL byte as well. 2019-04-11 Bruno Haible <bruno@clisp.org> * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add localtime, unsetenv. gl_array_list_implementation, styled_ostream_typeinfo. color_test_mode, style_file_name. modules. * libtextstyle/autogen.sh: Pass a --macro-prefix option to gnulib-tool. * libtextstyle/configure.ac: Update accordingly. libtextstyle: Fix build failure on mingw (regression from 2019-03-17). isatty.c defines the symbol 'libtextstyle_isatty', not 'isatty'. 2019-04-11 Bruno Haible <bruno@clisp.org> For some reason, Automake puts a definition of CXXLD in 2019-04-10 Bruno Haible <bruno@clisp.org> msgfmt: Fix a buffer overrun. Reported by Tobi Schäfer at <https://trac.macports.org/ticket/58323>, via Ryan Schmidt <@ryandesign.com> at <https://savannah.gnu.org/bugs/?56112>. Patch proposed by Joshua Root. trailing NUL byte as well. 2019-04-09 Bruno Haible <bruno@clisp.org> of HAVE_USELOCALE. msgmerge: Fix crash on 32-bit AIX 7.2. (main): Invoke openmp_init(). Update to newest gnulib. 2019-04-08 Bruno Haible <bruno@clisp.org> Make sure that libintl.h declares the *wprintf overrides on Windows. Update to newest gnulib. 2019-04-08 Bruno Haible <bruno@clisp.org> autopoint: Don't risk failing because of user or system git configurations. Reported by Jamie Kirkpatrick <jkp@kirkconsulting.co.uk> in <https://savannah.gnu.org/support/?107689>. does not read the user's git configuration nor the system's git configuration. 2019-04-08 Bruno Haible <bruno@clisp.org> xgettext: Recognize ECMAScript-262 6th edition template literals. Reported by Philip Chimento <philip.chimento@gmail.com> in <https://savannah.gnu.org/bugs/index.php?50920>. (enum token_type_ty): Add token_type_template, token_type_ltemplate, token_type_mtemplate, token_type_rtemplate. (free_token): Treat token_type_template like token_type_string. (phase7_getuc): Add support for backquote quote_char. (brace_depth, template_literal_depth): New variables. (phase5_get): Parse template literals. (x_javascript_lex): Treat token_type_template like token_type_string. Handle the combination of symbol followed by template. (extract_balanced): Treat token_type_template like token_type_string, and token_type_ltemplate, token_type_mtemplate, token_type_rtemplate like token_type_other. (extract_javascript): Initialize brace_depth, template_literal_depth. syntax for strings. 2019-04-08 Bruno Haible <bruno@clisp.org> xgettext: Make JavaScript parser more robust. inside_embedded_js_in_xml. 2019-04-07 Bruno Haible <bruno@clisp.org> * check-copyright-headers: New file. (distcheck-hook): Run check-copyright-headers and fail if it fails. 2019-04-07 Bruno Haible <bruno@clisp.org> Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. 2019-04-07 Bruno Haible <bruno@clisp.org> * build-aux/texi2html: Moved to here from libtextstyle/build-aux/texi2html. * libtextstyle/autogen.sh: Copy texi2html. (EXTRA_DIST): Remove texi2html. (EXTRA_DIST): Remove texi2html. (distcheck-hook): Update. 2019-04-07 Bruno Haible <bruno@clisp.org> Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html. processing. -no-sec-nav -no-menu -toc-links. (gettext_toc.html): Likewise. Pull out generated files out of subdirectory. 2019-04-07 Bruno Haible <bruno@clisp.org> libasprintf: Use a version of texi2html which is under a good license. Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. changes made in libunistring/build-aux/texi2html and then in libtextstyle/build-aux/texi2html. gettext-tools/doc/fdl.texi. gnulib/doc/gpl-2.0.texi. gnulib/doc/lgpl-2.1.texi. Top node during texi2html processing. (Licenses): New appendix. (MAKEINFOFLAGS): Use it. (autosprintf_TEXINFOS): New variable. (autosprintf_all.html): Depend on it. Use texi2html options -no-sec-nav -no-menu -toc-links. 2019-04-07 Bruno Haible <bruno@clisp.org> libtextstyle: Tweak style of HTML documentation. * libtextstyle/build-aux/texi2html (BIG_RULE): Set to empty. 2019-04-07 Bruno Haible <bruno@clisp.org> Add copyright notices in several files. Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. by Gora Mohanty <gora_mohanty@yahoo.co.in> through private email on 2004-11-13. file is meant to be copied and renamed to 'Makevars'. notice. 2019-04-04 Bruno Haible <bruno@clisp.org> Reduce ABOUT-NLS to just a hyperlink. The common way to distribute information, nowadays, is through the web, not by including files in tarballs of packages. Also, the current contents of ABOUT-NLS is outdated. Reported by Samuel Thibault in <https://savannah.gnu.org/bugs/?54809>. documentation. (all-local, ABOUT-NLS): Remove rules. instead of the ABOUT-NLS file. ABOUT-NLS file. 2019-04-04 Bruno Haible <bruno@clisp.org> 'Translation Intro'. Turn into a section. Mark section as historical. matrix.texi. 2019-04-04 Bruno Haible <bruno@clisp.org> Add copyright notices in several files. Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. * windows/windres-options: Likewise. in Rules-quot. 2019-04-03 Bruno Haible <bruno@clisp.org> Mention the support for Java 11. This support was added in gnulib on 2018-09-26. 2019-04-03 Bruno Haible <bruno@clisp.org> libtextstyle: Clean up old TODO item. 2019-04-02 Bruno Haible <bruno@clisp.org> libtextstyle: Distribute two more files. gnulib-local/lib/libxml/xmlversion.in.h.diff, gnulib-local/modules/libxml.diff. * libtextstyle/gnulib-local/*: Many files moved to here from gnulib-local/*. * libtextstyle/gnulib-local/modules/libglib: Apply diff. * libtextstyle/gnulib-local/modules/libglib.diff: Remove file. * libtextstyle/gnulib-local/modules/libcroco: Apply diff. * libtextstyle/gnulib-local/modules/libcroco.diff: Remove file. * libtextstyle/gnulib-local/modules/term-styled-ostream: Apply diff. * libtextstyle/gnulib-local/modules/term-styled-ostream.diff: Remove file. * libtextstyle/gnulib-local/modules/html-styled-ostream: Apply diff. * libtextstyle/gnulib-local/modules/html-styled-ostream.diff: Remove file. * libtextstyle/gnulib-local/modules/noop-styled-ostream: Apply diff. * libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: Remove file. * libtextstyle/woe32dll/c++term-styled-ostream.cc: Remove file. * libtextstyle/woe32dll/c++html-styled-ostream.cc: Remove file. * libtextstyle/woe32dll/c++noop-styled-ostream.cc: Remove file. libtextstyle/gnulib-local/. Add build-aux/moopp. libgettextpo: Avoid closing a FILE stream when it will still be used. ostream_free if we're using the dummy <textstyle.h>. libgettextpo: Use a dummy replacement for libtextstyle. * gnulib-local/modules/libtextstyle-dummy: New file, based on gnulib's modules/libtextstyle-optional. * autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add libtextstyle-dummy. Remove file-ostream, ostream. Link the msg* and xgettext programs against libtextstyle. * libtextstyle/autogen.sh: Don't generate lib/color.h and lib/color.c. * libtextstyle/lib/color.h: Moved to here from gettext-tools/src/color.h. * libtextstyle/lib/color.c: Moved to here from gettext-tools/src/color.c. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Remove fd-ostream, file-ostream, html-styled-ostream, ostream, styled-ostream, term-styled-ostream. Add libxml. customization. (AM_CPPFLAGS): Add -I directives to the libtextstyle/lib directory. (libgettextsrc_la_SOURCES): Remove color.c. (libgettextsrc_la_LDFLAGS): Link with libtextstyle.la. and *-ostream.h. (msgdomain_list_print): Use styled_ostream_create and noop_styled_ostream_create. (is_stylable): Remove function. (begin_css_class, end_css_class): Update. Mark as inline. ostream.h. libtextstyle: Generalize fd-styled-ostream to noop-styled-ostream. * gnulib-local/lib/noop-styled-ostream.oo.h: New file, based on gnulib-local/lib/fd-styled-ostream.oo.h. * gnulib-local/lib/noop-styled-ostream.oo.c: New file, based on gnulib-local/lib/fd-styled-ostream.oo.c. * gnulib-local/modules/noop-styled-ostream: New file, based on gnulib-local/modules/fd-styled-ostream. and modules/fd-styled-ostream. Add lib/noop-styled-ostream.oo.[hc] and modules/noop-styled-ostream. * libtextstyle/woe32dll/c++noop-styled-ostream.cc: New file, based on libtextstyle/woe32dll/c++fd-styled-ostream.cc. * libtextstyle/gnulib-local/modules/noop-styled-ostream.diff: New file, based on libtextstyle/gnulib-local/modules/fd-styled-ostream.diff. * gnulib-local/lib/fd-styled-ostream.oo.h: Remove file. * gnulib-local/lib/fd-styled-ostream.oo.c: Remove file. * gnulib-local/modules/fd-styled-ostream: Remove file. * libtextstyle/woe32dll/c++fd-styled-ostream.cc: Remove file. * libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: Remove file. * libtextstyle/autogen.sh (GNULIB_MODULES): Add noop-styled-ostream. Remove fd-styled-ostream. * libtextstyle/lib/misc.c: Include noop-styled-ostream.h, fd-ostream.h. (styled_ostream_create): Call fd_ostream_create and noop_styled_ostream_create instead of fd_styled_ostream_create. * libtextstyle/lib/textstyle.h (noop_styled_ostream_t): New type. (noop_styled_ostream_*): New declarations. * libtextstyle/doc/libtextstyle.texi (The noop_styled_ostream class): New subsection. * autogen.sh: Recurse into libtextstyle directory. * configure.ac: Likewise. * DEPENDENCIES: Mention that libiconv and ncurses are also used by libtextstyle. * PACKAGING: Recommend to ship libtextstyle as a third binary package. * gitsub.sh: New file, from gnulib. * autogen.sh: Remove all git operations and the --no-git option. Look at the GNULIB_SRCDIR environment variable. Ignore the GNULIB_TOOL environment variable. * HACKING: Explain when to use gitsub.sh. libtextstyle: Bump version number. 2019-04-01 Daiki Ueno <ueno@gnu.org> desktop: Fix whitespace handling around '=' While the spec only allows spaces before and after '=', xgettext/msgfmt previously accepted all whitespaces including '\n'. That was causing unwanted concatenation of desktop lines. Reported by Bastien Nocera in: https://lists.gnu.org/archive/html/bug-gettext/2019-03/msg00017.html space characters before and after '='. 2019-04-01 Bruno Haible <bruno@clisp.org> libtextstyle: Bump version number. 2019-03-31 Bruno Haible <bruno@clisp.org> libtextstyle: Add support for true-color terminals. * gnulib-local/lib/term-ostream.oo.c (colormodel_t): Add cm_xtermrgb. (rgb_to_color_xtermrgb): New function. (attributes_t): Extend the color fields to 25 bits. (struct term_ostream): New fields active_attr_color, active_attr_bgcolor. (out_color_change, out_bgcolor_change, term_ostream::rgb_to_color): Handle cm_xtermrgb. (out_attr_change): Set also active_attr_color, active_attr_bgcolor. (async_set_attributes_from_default): Fetch also active_attr_color, active_attr_bgcolor. (term_ostream_create): Accept all $TERM values that end in -direct. * libtextstyle/doc/libtextstyle.texi (Terminal emulators): Document the prerequisites for true-color support. maint: Make code more "git diff"-friendly. non-whitespace character. libtextstyle: Improve documentation regarding the TERM value. * libtextstyle/doc/libtextstyle.texi (The TERM variable): Many more details. (Terminal emulators, Consoles): New subsections. libtextstyle: Support for terminal types with 256 colors. * gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Accept all $TERM values that end in -16color or -256 color (such as Eterm-256color, mlterm-256color, or putty-256color). 2019-03-30 Takesi Ayanokoji <ayanokoji.takesi@gmail.com> po-mode: Enable highlighting of #, lines. 2019-03-30 Bruno Haible <bruno@clisp.org> po-mode: Remove support for Emacs versions < 22. Emacs 22 is the oldest version still in use, see <https://repology.org/project/emacs/versions>. (po-rehighlight): Remove function. (po-check-all-pending-edits, po-check-for-pending-edit): Update. 2019-03-30 Bruno Haible <bruno@clisp.org> po-mode: Remove support for XEmacs. Update after gnulib changed. 2019-03-27 Bruno Haible <bruno@clisp.org> libtextstyle: Add support for Windows consoles. * gnulib-local/lib/term-ostream.oo.c: Include <windows.h>, msvc-nothrow.h, <io.h>. (struct term_ostream): Add fields handle, is_windows_console, default_console_attributes, current_console_attributes. (out_color_change, out_bgcolor_change, out_underline_change, out_attr_change, restore, async_restore, async_set_attributes_from_default, term_ostream::flush): Add separate code path for Windows consoles. and initialize the new fields. * gnulib-local/modules/term-ostream (Depends-on): Add msvc-nothrow. libtextstyle: Make the SIGCONT handler work more reliably. * gnulib-local/lib/term-ostream.oo.c (out_attr_change): Modify active_attr before emitting the escape sequences, not afterwards. libtextstyle: Mention fixes. 'term-style-control'. libtextstyle: Small fix for last commit. * gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark fd volatile. Update to newest gnulib. 2019-03-27 Bruno Haible <bruno@clisp.org> its: Simplify code. Suggested by Daiki Ueno. 2019-03-26 Bruno Haible <bruno@clisp.org> boundary. Get rid of initial trim() call. at the end of the last paragraph. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add memchr. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add strchrnul. 2019-03-24 Bruno Haible <bruno@clisp.org> libtextstyle: Use gnulib module 'term-style-control'. * gnulib-local/lib/term-ostream.oo.h: Include term-style-control.h. (ttyctl_t): Remove type. * gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): Remove macro. Don't include <signal.h>, <stdio.h>, <sys/stat.h>, fatal-signal.h, sig-handler.h, same-inode.h. (SIZEOF): Remove macro. (nonintr_tcgetattr, nonintr_tcsetattr): Remove functions. (log_message, sprintf_integer, simple_errno_string, simple_signal_string, log_signal_handler_called): Remove functions. (struct term_ostream): Remove fields tty_control, same_as_stderr, non_default_active. Add control_data field instead. (get_control_data): New function. (BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): Remove macro. (term_fd): Remove variable. (pgrp_status_t): Remove type. (pgrp_status): Remove variable. (update_pgrp_status): Remove function. (out_filename): Remove variable. (out_error): Use out_stream instead of out_filename. (restore, tcsetattr_failed): Remove functions. (orig_lflag_set, orig_lflag): Remove variables. (clobber_local_mode, restore_local_mode): Remove functions. (job_control_signals): Remove variable. (num_job_control_signals): Remove macro. (relevant_signal_set, relevant_signal_set_initialized): Remove variables. (init_relevant_signal_set, block_relevant_signals, unblock_relevant_signals, is_ignored, show_signal_marker, fatal_or_stopping_signal_handler, fatal_signal_handler, stopping_signal_handler, continuing_signal_handler, ensure_continuing_signal_handler, ensure_other_signal_handlers): Remove functions. (out_attr_change): Set out_stream and out_fd. (activate_non_default_attr, deactivate_non_default_attr): Remove functions. (restore, async_restore, async_set_attributes_from_default): New functions. (controller): New variable. (activate_default_attr, output_buffer): Update. (term_ostream::free): Invoke deactivate_term_style_controller. (term_ostream_create): Invoke activate_term_style_controller. * gnulib-local/modules/term-ostream (Depends-on): Add term-style-control. Remove fatal-signal, sigaction, sigprocmask, same-inode. moopp: Allow forward references to the <class>_representation type. * gnulib-local/build-aux/moopp (func_version): Bump copyright year. (func_emit_source_c): Move the <class>_representation type alias to the top of the file. 2019-03-20 Bruno Haible <bruno@clisp.org> libtextstyle: Fix a memory access from a signal handler. * gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Mark active_attr field as volatile. libtextstyle: Bump version number. Use _GL_ASYNC_SAFE from gnulib. (sigfpe_handler): Mark as _GL_ASYNC_SAFE. * gnulib-local/lib/term-ostream.oo.c (ASYNC_SAFE): Remove macro. Use _GL_ASYNC_SAFE instead. Update to newest gnulib. Update .gitignore after 2019-03-12 change. 2019-03-17 Bruno Haible <bruno@clisp.org> libtextstyle: Bump version number. libtextstyle: Bump version number. libtextstyle: Implement reliable tty control. * gnulib-local/lib/term-ostream.oo.c (DEBUG_SIGNALS): New macro. Include <stdio.h>, <sys/stat.h>. (NOFLSH): Define fallback value. Include sig-handler.h, same-inode.h. (ASYNC_SAFE): New macro. (color_bgr): Mark as ASYNC_SAFE. (nonintr_tcgetattr, nonintr_tcsetattr): New functions. (log_message, sprintf_integer, simple_errno_string, simple_signal_string, log_signal_handler_called): New functions. (struct term_ostream): Add fields restore_colors, restore_weight, restore_posture, restore_underline, tty_control, same_as_stderr. (BLOCK_SIGNALS_DURING_NON_DEFAULT_STYLE_OUTPUT): New macro. (term_fd): New variable. (pgrp_status_t): New type. (pgrp_status): New variable. (update_pgrp_status): New function. (out_stream): New variable. (restore_colors, restore_weight, restore_posture, restore_underline): Remove variables. (out_color_change, out_bgcolor_change, out_weight_change, out_posture_change, out_underline_change): New functions, extracted from out_attr_change. (out_attr_change): Call these functions. (restore): Use out_stream. (tcsetattr_failed): New function. (orig_lflag_set, orig_lflag): New variables. (clobber_local_mode, restore_local_mode): New functions. (job_control_signals): Renamed from stopping_signals. Add SIGCONT. (num_job_control_signals): Renamed from num_stopping_signals. (relevant_signal_set): Replaces stopping_signal_set. (relevant_signal_set_initialized): New variable. (init_relevant_signal_set): Replaces init_stopping_signal_set. (block_relevant_signals): Replaces block_stopping_signals. (unblock_relevant_signals): Replaces unblock_stopping_signals. (is_ignored): New function. (show_signal_marker): New function. (fatal_or_stopping_signal_handler, fatal_signal_handler, stopping_signal_handler, continuing_signal_handler, ensure_continuing_signal_handler, ensure_other_signal_handlers): New functions. (activate_non_default_attr, deactivate_non_default_attr): Rewritten. (term_ostream::free): Unset term_fd and call update_pgrp_status. (term_ostream_create): Initialize the fields restore_colors, restore_weight, restore_posture, restore_underline, tty_control, same_as_stderr. Call init_relevant_signal_set. Set term_fd and call ensure_continuing_signal_handler and update_pgrp_status. * gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Check for tcgetattr. * gnulib-local/modules/term-ostream (Depends-on): Add sigaction, same-inode. libtextstyle: Fix build failure on Cygwin (regression from 2019-03-15). from $(srcdir)/libtextstyle.sym. (libtextstyle.sym): New rule. (MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST): Update accordingly. (config.h): Depend on libtextstyle.sym in the build directory. (libtextstyle_la_LDFLAGS: Use libtextstyle.sym in the build directory. libtextstyle: Clean up leftovers from 2019-03-13 commit. 2019-03-16 Bruno Haible <bruno@clisp.org> libtextstyle: Complete styled_ostream_flush_to_current_style declaration. * libtextstyle/lib/textstyle.h (term_styled_ostream_flush_to_current_style, html_styled_ostream_flush_to_current_style): New declarations. libtextstyle: Protect better against EINTR. * gnulib-local/lib/fd-ostream.oo.c (nonintr_tcdrain): New function. (fd_ostream::flush): Use it instead of tcdrain. * gnulib-local/lib/file-ostream.oo.c: Include <errno.h>. (nonintr_tcdrain): New function. (file_ostream::flush): Use it instead of tcdrain. * gnulib-local/lib/term-ostream.oo.c (nonintr_tcdrain): New function. (term_ostream::flush): Use it instead of tcdrain. 2019-03-15 Bruno Haible <bruno@clisp.org> libtextstyle: Reexport isatty() override from gnulib. This is necessary for programs that are compiled for native Windows and run in a Cygwin console. * libtextstyle/autogen.sh (GNULIB_MODULES): Add 'isatty'. * libtextstyle/configure.ac: Set GNULIB_ISATTY to 0. * libtextstyle/lib/textstyle.h (libtextstyle_isatty): New declaration. (isatty): Redirect to libtextstyle_isatty. 2019-03-14 Bruno Haible <bruno@clisp.org> libtextstyle: Use less code from libxml. * libtextstyle/gnulib-local/lib/libxml/xmlversion.in.h.diff: New file. * gnulib-local/lib/libxml/save.h (xmlEncodeAttributeEntities): Declare also when LIBXML_OUTPUT_ENABLED is 0. libtextstyle: Fix "make clean" failure in VPATH builds. (DISTCLEANDIRS_NOT_IN_SRCDIR): Add 'textstyle'. libtextstyle: Make sure we get new versions also of mdate-sh. * libtextstyle/autogen.sh: Erase more files in build-aux. 2019-03-14 Bruno Haible <bruno@clisp.org> libtextstyle: Remove unused code for exporting variables from Windows DLLs. Here we use the third approach listed in gettext-tools/woe32dll/export.h, not the fourth approach. * libtextstyle/configure.ac (false): Remove conditional. 2019-03-14 Bruno Haible <bruno@clisp.org> libtextstyle: Add metainformation for Windows. libtextstyle: Add metainformation for Windows. * libtextstyle/lib/libtextstyle.rc: New file. (WOE32_LIBADD): New variable. (libtextstyle.res.lo): New rule. (libtextstyle_la_LIBADD, libtextstyle_la_DEPENDENCIES): Augment. 2019-03-13 Bruno Haible <bruno@clisp.org> libtextstyle: Don't use a C++ compiler. * libtextstyle/gnulib-local/modules/fd-styled-ostream.diff: New file. * libtextstyle/gnulib-local/modules/html-styled-ostream.diff: New file. * libtextstyle/gnulib-local/modules/term-styled-ostream.diff: New file. always. * libtextstyle/configure.ac: Remove LT_LANG([C++]), AC_PROG_CXX, and related invocations. libasprintf: Add metainformation for Windows. (WOE32_LIBADD): New variable. (libasprintf.res.lo): New rule. (libasprintf_la_LIBADD, libasprintf_la_DEPENDENCIES): New variables. * windows/gettext.rc: Likewise. libtextstyle: Bump version number. 2019-03-12 Bruno Haible <bruno@clisp.org> libtextstyle: Bump version number. libtextstyle: New function styled_ostream_flush_to_current_style. * gnulib-local/lib/styled-ostream.oo.h (struct styled_ostream): Add method flush_to_current_style. * gnulib-local/lib/fd-styled-ostream.oo.c (fd_styled_ostream::flush_to_current_style): New method. * gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream::flush_to_current_style): New method. * gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::flush_to_current_style): New method. * libtextstyle/lib/textstyle.h (styled_ostream_flush_to_current_style): New declaration. * libtextstyle/doc/libtextstyle.texi (The styled_ostream class): Document styled_ostream_flush_to_current_style. libtextstyle: New function html_ostream_flush_to_current_style. * gnulib-local/lib/html-ostream.oo.h (struct html_ostream): Add method flush_to_current_style. * gnulib-local/lib/html-ostream.oo.c (html_ostream::flush_to_current_style): New method. * libtextstyle/lib/textstyle.h (html_ostream_flush_to_current_style): New declaration. * libtextstyle/doc/libtextstyle.texi (The html_ostream class): Document html_ostream_flush_to_current_style. libtextstyle: New function term_ostream_flush_to_current_style. * gnulib-local/lib/term-ostream.oo.h (struct term_ostream): Add method flush_to_current_style. * gnulib-local/lib/term-ostream.oo.c (struct term_ostream): Add fields default_attr, active_attr, non_default_active. (out_attr_change): Remove second argument. Update active_attr. (activate_non_default_attr, deactivate_non_default_attr, activate_default_attr): New functions, extracted from output_buffer. (output_buffer): Use them. Add a second argument. (term_ostream::write_mem, term_ostream::flush): Update output_buffer calls. (term_ostream::free): Add an assertion. (term_ostream::flush_to_current_style): New method. (term_ostream_create): Initialize the fields default_attr, active_attr, non_default_active. * libtextstyle/lib/textstyle.h (term_ostream_flush_to_current_style): New declaration. * libtextstyle/doc/libtextstyle.texi (The term_ostream class): Document term_ostream_flush_to_current_style. 2019-03-12 Bruno Haible <bruno@clisp.org> libtextstyle: Add a second argument to the 'flush' operations. * gnulib-local/lib/ostream.oo.h (ostream_flush_scope_t): New type. (ostream::flush): Add scope parameter. * gnulib-local/lib/file-ostream.oo.c: Include <unistd.h>, <termios.h>. (file_ostream::flush): Add a scope parameter. * gnulib-local/modules/file-ostream (Depends-on): Add 'fsync'. (configure.ac): Check for tcdrain. * gnulib-local/lib/fd-ostream.oo.c: Include <unistd.h>, <termios.h>. (fd_ostream::flush): Add a scope parameter. (fd_ostream::free): Update flush call. * gnulib-local/modules/fd-ostream (Depends-on): Add 'fsync'. (configure.ac): Check for tcdrain. * gnulib-local/lib/term-ostream.oo.c: Include <unistd.h>, <termios.h>. (term_ostream::flush): Add scope parameter. (term_ostream::free): Update flush call. * gnulib-local/m4/term-ostream.m4 (gl_TERM_OSTREAM): Check for tcdrain. * gnulib-local/modules/term-ostream (Depends-on): Add 'fsync'. * gnulib-local/lib/memory-ostream.oo.c (memory_ostream::flush): Add scope parameter. * gnulib-local/lib/iconv-ostream.oo.c (iconv_ostream::flush): Add scope parameter. * gnulib-local/lib/html-ostream.oo.c (html_ostream::flush): Add scope parameter. Emit closing </span> tags. * gnulib-local/lib/fd-styled-ostream.oo.c (fd_styled_ostream::flush): Add scope parameter. * gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream::flush): Add scope parameter. * gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::flush): Add scope parameter. * libtextstyle/lib/textstyle.h (ostream_flush_scope_t): New type. (ostream_flush, styled_ostream_flush, file_ostream_flush, fd_ostream_flush, term_ostream_flush, memory_ostream_flush, iconv_ostream_flush, html_ostream_flush, term_styled_ostream_flush, html_styled_ostream_flush): Add scope parameter. * libtextstyle/doc/libtextstyle.texi (The ostream class): Add scope parameter to flush method. 2019-03-11 Bruno Haible <bruno@clisp.org> libtextstyle/examples/color-hello/hello.c. libtextstyle/examples/color-hello/hello-default.css. contains an encoding. 2019-03-10 Bruno Haible <bruno@clisp.org> 2019-03-04 Bruno Haible <bruno@clisp.org> (libgettextlib_la_LDFLAGS): Augment for relocatable installation. relocatable installation. variable. (libgettextpo_la_LDFLAGS): Augment for relocatable installation. Update after gnulib changed. Update to newest gnulib. 2019-02-24 Bruno Haible <bruno@clisp.org> libintl: Fix installation with BSD 'make'. directory first. 2019-02-16 Bruno Haible <bruno@clisp.org> libtextstyle: Improve the way the library is built. needed for building on older versions of AIX and useful to verify no undefined symbols are used by mistake. Add '-export-symbols', to reduce the loading time of the shared library. 2019-02-15 Daiki Ueno <ueno@gnu.org> its: Avoid uninitialized variable Fixes commit 89e7d2663bd27b8cdd300f26095f49d2c7519030. 2019-02-15 Bruno Haible <bruno@clisp.org> @INTL_MACOSX_LIBS@ here. libtextstyle: Don't use an external libglib. * gnulib-local/m4/libglib.m4 (gl_LIBGLIB): Accept an optional FORCE-INCLUDED argument. * libtextstyle/gnulib-local/modules/libglib.diff: New file. libtextstyle: Don't use an external libxml. * gnulib-local/m4/libxml.m4 (gl_LIBXML): Accept an optional FORCE-INCLUDED argument. * libtextstyle/gnulib-local/modules/libxml.diff: New file. libtextstyle: Don't use an external libcroco. * gnulib-local/m4/libcroco.m4 (gl_LIBCROCO): Accept an optional FORCE-INCLUDED argument. * libtextstyle/gnulib-local/modules/libcroco.diff: New file. * libtextstyle/autogen.sh: Pass another --local-dir option to gnulib-tool. libtextstyle: Fix build error on Cygwin and mingw. libtextstyle: Really fix hyperlinks to table of contents in HTML doc. libtextstyle: Document when and how to turn off styling. * libtextstyle/doc/libtextstyle.texi (Basic use): Document when and how to turn off styling. * gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream_create): Handle a NULL css_filename explicitly. 2019-02-15 Daiki Ueno <ueno@gnu.org> its: Add new preserveSpaceRule "paragraph" This implements a new text extraction rule preserving paragraph boundaries, as mentioned in: https://gitlab.gnome.org/GNOME/glib/issues/1350 (its_merge_context_merge_node): Likewise. (normalize_whitespace): Handle "paragraph" rule. 2019-02-15 Daiki Ueno <ueno@gnu.org> its: Make whitespace normalization logic simpler pointers for normalizing whitespaces, instead of memmove. Suggested by Bruno Haible. 2019-02-14 Bruno Haible <bruno@clisp.org> libtextstyle: In the examples, actually respect the --color option. Reported by Akim Demaille <akim.demaille@gmail.com>. * libtextstyle/examples/color-filter/filter.c (main): Set style_file_name to NULL when styling should be disabled. * libtextstyle/examples/color-hello/hello.c (main): Likewise. 2019-02-14 Bruno Haible <bruno@clisp.org> libtextstyle: Assume that the texinfo sources are in the source dir. libtextstyle_toc.html): Lookup libunistring.texi in $(srcdir). 2019-02-14 Bruno Haible <bruno@clisp.org> libtextstyle: Fix hyperlinks to table of contents in HTML doc. Reported by Akim Demaille <akim.demaille@gmail.com>. libtextstyle.html with references to libtextstyle_toc.html. 2019-02-14 Bruno Haible <bruno@clisp.org> libtextstyle: Document the link options more precisely. * libtextstyle/doc/libtextstyle.texi (Link options): Document the link dependencies. libtextstyle: Fix build failure on mingw. * gnulib-local/modules/html-styled-ostream (Depends-on): Add 'close'. libtextstyle: Add support for VPATH builds with OpenBSD 'make'. prefix the target file names with '$(srcdir)/'. 2019-02-13 Bruno Haible <bruno@clisp.org> libtextstyle: Put the .sym file in the source directory. directory. (config.h): Update rule. 2019-02-12 Bruno Haible <bruno@clisp.org> libtextstyle: Fix configuration of the example programs. Reported by Akim Demaille <akim.demaille@gmail.com>. 2019-02-12 Bruno Haible <bruno@clisp.org> libtextstyle: Bump version number. * libtextstyle/version.sh (VERSION): Set to 0.6. 2019-02-10 Bruno Haible <bruno@clisp.org> libtextstyle: New project. * libtextstyle/AUTHORS: New file, extracted from gettext/AUTHORS. * libtextstyle/COPYING: New file, copied from gettext/COPYING. * libtextstyle/DEPENDENCIES: New file, based on gettext/DEPENDENCIES. * libtextstyle/HACKING: New file, based on gettext/HACKING. * libtextstyle/INSTALL: New file, copied from gettext/INSTALL. * libtextstyle/autogen.sh: New file, based on libunistring/autogen.sh. * libtextstyle/configure.ac: New file, based on libunistring/configure.ac. * libtextstyle/build-aux/texi2html: New file, copied from libunistring/build-aux/texi2html. * libtextstyle/doc/fdl.texi: New file, copied from gnulib/doc/fdl.texi. * libtextstyle/doc/gpl.texi: New file, copied from gnulib/doc/gpl-3.0.texi. * libtextstyle/doc/libtextstyle.texi: New file, partially based on gettext/gettext-tools/doc/gettext.texi. * libtextstyle/examples/color-filter/INSTALL: New file, based on gettext/gettext-tools/examples/hello-c/INSTALL. * libtextstyle/examples/color-filter/autoclean.sh: New file, based on gettext/gettext-tools/examples/hello-c/autoclean.sh. * libtextstyle/examples/color-filter/autogen.sh: New file, based on gettext/gettext-tools/examples/hello-c/autogen.sh. * libtextstyle/examples/color-filter/configure.ac: New file. * libtextstyle/examples/color-filter/filter.c: New file. * libtextstyle/examples/color-filter/filter-default.css: New file. * libtextstyle/examples/color-hello/INSTALL: New file, based on gettext/gettext-tools/examples/hello-c/INSTALL. * libtextstyle/examples/color-hello/autoclean.sh: New file, based on gettext/gettext-tools/examples/hello-c/autoclean.sh. * libtextstyle/examples/color-hello/autogen.sh: New file, based on gettext/gettext-tools/examples/hello-c/autogen.sh. * libtextstyle/examples/color-hello/configure.ac: New file. * libtextstyle/examples/color-hello/hello.c: New file. * libtextstyle/examples/color-hello/hello-default.css: New file. * libtextstyle/examples/color-hello/names.c: New file. * libtextstyle/lib/misc.h: New file. * libtextstyle/lib/misc.c: New file. * libtextstyle/lib/notinline.h: New file, based on libunistring/lib/unistring-notinline.h. * libtextstyle/lib/stdbool.mini.h: New file, based on libunistring/lib/stdbool.mini.h. * libtextstyle/lib/textstyle.h: New file, based on gnulib-local/lib/*ostream.oo.h. * libtextstyle/lib/textstyle/version.in.h: New file, based on libunistring/lib/unistring/version.in.h. * libtextstyle/lib/textstyle/woe32dll.in.h: New file, based on libunistring/lib/unistring/woe32dll.in.h. * libtextstyle/lib/version.c: New file, based on libunistring/lib/version.c. * libtextstyle/m4/init-package-version.m4: New file, copied from libunistring/m4/init-package-version.m4. * libtextstyle/version.sh: New file, based on libunistring/version.sh. * libtextstyle/woe32dll/c++fd-styled-ostream.cc: New file. * libtextstyle/woe32dll/c++html-styled-ostream.cc: New file. * libtextstyle/woe32dll/c++term-styled-ostream.cc: New file. * gnulib-local/lib/glib/gstring.c (g_string_append_c): In libtextstyle, honor a macro definition. * gnulib-local/lib/libxml/elfgcchack.h: In libtextstyle, make this entire file a no-op. * gnulib-local/lib/libxml/globals.in.h (docbDefaultSAXHandler, htmlDefaultSAXHandler, oldXMLWDcompatibility, xmlBufferAllocScheme, xmlDefaultBufferSize, xmlDefaultSAXHandler, xmlDefaultSAXLocator, xmlDoValidityCheckingDefaultValue, xmlFree, xmlGenericError, xmlStructuredError, xmlGenericErrorContext, xmlStructuredErrorContext, xmlGetWarningsDefaultValue, xmlIndentTreeOutput, xmlTreeIndentString, xmlKeepBlanksDefaultValue, xmlLineNumbersDefaultValue, xmlLoadExtDtdDefaultValue, xmlMalloc, xmlMallocAtomic, xmlMemStrdup, xmlParserDebugEntities, xmlParserVersion, xmlPedanticParserDefaultValue, xmlRealloc, xmlSaveNoEmptyTags, xmlSubstituteEntitiesDefaultValue, xmlRegisterNodeDefaultValue, xmlDeregisterNodeDefaultValue, xmlLastError, xmlParserInputBufferCreateFilenameValue, xmlOutputBufferCreateFilenameValue): In libtextstyle, honor a macro definition. * gnulib-local/lib/libxml/globals.c (xmlFree, xmlMalloc, xmlMallocAtomic, xmlMemStrdup, xmlRealloc, docbDefaultSAXHandler, htmlDefaultSAXHandler, oldXMLWDcompatibility, xmlBufferAllocScheme, xmlDefaultBufferSize, xmlDefaultSAXHandler, xmlDefaultSAXLocator, xmlDoValidityCheckingDefaultValue, xmlGenericError, xmlStructuredError, xmlGenericErrorContext, xmlStructuredErrorContext, xmlGetWarningsDefaultValue, xmlIndentTreeOutput, xmlTreeIndentString, xmlKeepBlanksDefaultValue, xmlLineNumbersDefaultValue, xmlLoadExtDtdDefaultValue, xmlParserDebugEntities, xmlParserVersion, xmlPedanticParserDefaultValue, xmlSaveNoEmptyTags, xmlSubstituteEntitiesDefaultValue, xmlRegisterNodeDefaultValue, xmlDeregisterNodeDefaultValue, xmlLastError, xmlParserInputBufferCreateFilenameValue, xmlOutputBufferCreateFilenameValue): Likewise. * gnulib-local/lib/libxml/xmlmemory.c (xmlMalloc): Likewise. gnulib-local: New module 'fd-styled-ostream'. * gnulib-local/lib/fd-styled-ostream.oo.h: New file. * gnulib-local/lib/fd-styled-ostream.oo.c: New file. * gnulib-local/modules/fd-styled-ostream: New file. term-ostream: Remove the need for an exit handler. * gnulib-local/lib/term-ostream.oo.c (output_buffer): Delay the error() call until the default state has been restored. term-ostream: Prepare for robustness through signal handling. * gnulib-local/lib/term-ostream.oo.h (ttyctl_t): New type. (term_ostream_create): Add tty_control argument. * gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Likewise. * gnulib-local/lib/term-styled-ostream.oo.h: Include term-ostream.h. (term_styled_ostream_create): Add tty_control argument. * gnulib-local/lib/term-styled-ostream.oo.c (term_styled_ostream_create): Likewise. libasprintf: Tweak documentation formatting. way. 2019-02-09 Bruno Haible <bruno@clisp.org> Update copyright years. Remove automatically generated files from version control. html-styled-ostream: Fix memory leak. * gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::free): Free the stream. html-ostream: Fix memory leak. * gnulib-local/lib/html-ostream.oo.c: Include minmax.h. (verify_invariants, shrink_class_stack): New functions. (emit_pending_spans): Use them. (html_ostream::write_mem): Shrink class stack during newline processing. (html_ostream::free, html_ostream::begin_span): Verify invariants. (html_ostream::end_span): Likewise. Shrink class stack. * gnulib-local/modules/html-ostream (Depends-on): Add 'minmax'. 2019-02-08 Bruno Haible <bruno@clisp.org> examples: Fix build failure when building from git (regression from 2018-10-23). color: Make color.c package-neutral. (style_file_lookup): Add stylesdir_after_install argument. (style_file_prepare): Add arguments. (GETTEXTSTYLESDIR): New macro. (msgdomain_list_print): Update style_file_prepare calls. term-ostream: Accommodate a shell that is not in /bin/sh. accordingly. libglib: Fix list of files to clean. * gnulib-local/modules/libglib (MOSTLYCLEANFILES): Add glib.h-t, glibconfig.h-t. * autogen.sh: Make it clear that 'touch config.h.in' is tied to autoheader. 2019-02-05 Bruno Haible <bruno@clisp.org> Remove left-over empty directories in 'make distclean'. 2019-02-04 Bruno Haible <bruno@clisp.org> Fix copyright years. 2019-01-25 Bruno Haible <bruno@clisp.org> Reported by Nathaniel M. Beaver <nathanielmbeaver@gmail.com> in <https://savannah.gnu.org/bugs/?55573>. --style options are applicable to many programs. 2019-01-21 Bruno Haible <bruno@clisp.org> msginit: Update for current shape of Translation Project. Reported by Karl Ove Hufthammer <karl@huftis.org> in <https://lists.gnu.org/archive/html/bug-gettext/2019-01/msg00014.html>. structure of teams page. 2019-01-06 Bruno Haible <bruno@clisp.org> Make cldr-plurals program more robust. (main): Arrange to invoke close_stdout at program exit. Assume setlocale function. Likewise. exists. Update after gnulib changed. Update to newest gnulib. 2018-12-17 Bruno Haible <bruno@clisp.org> Fix compilation error on HP-UX with gcc. * gnulib-local/lib/libxml/trionan.c: Include <float.h>. 2018-12-16 Bruno Haible <bruno@clisp.org> Add comment regarding HP-UX cc in C99 mode. * gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment. 2018-11-25 Bruno Haible <bruno@clisp.org> intl: Really uninstall the intl/ subdir sources. Fix compilation error (regression from today). * autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'unistd'. PACKAGE_IS_GETTEXT_TOOLS, PRELOADABLE_LIBINTL): New conditionals. (distclean): Simplify accordingly. * autogen.sh: Copy wchar_t.m4 and wint_t.m4 for libasprintf. (OBJECTS): Use plural.lo always. ($(srcdir)/plural.c): New rule. (.y.c, pluralx.c, pluralx.lo): Remove rules. (mostlyclean): Delete the temporary file of the plural.c rule. (maintainer-clean): Delete plural.c. Automake .y.c rule. (po-gram-gen.h, cldr-plural.h): Remove separate target. (po-gram-gen2.h): Generate in the source directory. maint: Add write-up of how to do code coverage. 2018-11-25 Bruno Haible <bruno@clisp.org> libasprintf: On mingw, really use our vasprintf function, not mingw_vasprintf. mingw now has a definition of 'vasprintf' in <stdio.h> that redirects to mingw_vasprintf, which does not support argument reordering (i.e. HAVE_POSIX_PRINTF is not defined). Make sure to avoid this function and use the one defined in our lib-asprintf.c instead. redirecting to libasprintf_asprintf. (vasprintf): Define as macro redirecting to libasprintf_vasprintf. and libasprintf_vasprintf. 2018-11-25 Bruno Haible <bruno@clisp.org> msginit: On native Windows, produce same PO header as on Unix. envsubst: On native Windows, produce output suitable for the shell. * autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC): Add 'binary-io'. binary mode. output. convention in the output. (GETTEXTDATADIR): On mingw, use native Windows syntax. wabs_top_srcdir instead of abs_top_srcdir. of gl_locale_name_environ to XPG syntax. Update to newest gnulib. 2018-11-25 Bruno Haible <bruno@clisp.org> This creates a bootstrapping issue, but it can be mitigated: If a user wants to build GNU gettext on a platform which does not have the GNU gettext programs installed, they first need to build and install a tarball of GNU gettext; then only they can build GNU gettext from the git repository. 2018-11-25 Bruno Haible <bruno@clisp.org> Amend 'Stop installing the intl/ subdir sources.' commit from 2018-11-11. $prefix/share/gettext/intl directory. Fix compilation error on mingw (regression from 2018-11-04). literalstring_parser initializer. 2018-11-21 Pavel Raiskup <praiskup@redhat.com> msgfmt: fix C&P issue Use 'end' for buffer size computation, instead of NULL 'ellipsis'. format-kde-kuit: really use fallback markup methods when FORMAT_KDE_KUIT_USE_FALLBACK_MARKUP is defined. Also free buffer if there's no support for XML. 2018-11-18 Bruno Haible <bruno@clisp.org> msgmerge must produce output that is stable under msgcat. Reported by Ludovic Courtès <ludo@gnu.org> in <https://savannah.gnu.org/bugs/?51027>. and '*-format' flags. 2018-11-18 Bruno Haible <bruno@clisp.org> gettextize: Give more advice. AM_GNU_GETTEXT_INTL_SUBDIR invocations. Simplify Autoconf macros. argument. Use libtool always. Remove variables that existed only for backward compatibility. * autogen.sh: Ignore gettext.m4 and intl.m4 from gnulib. (libintl.a, libgnuintl.a): Remove rule. (.o): Remove suffix rule. (install-exec, installdirs, uninstall, distclean, dist, distdir): PACKAGE cannot be anything else than gettext-runtime and gettext-tools any more. 2018-11-17 Bruno Haible <bruno@clisp.org> Make 'make distcheck' work in a VPATH build. source dir, not in the build dir. build dir, not in the source dir. (SMALLPOFILES_FOR_lang): Prefix file names with $(srcdir). (hello-*/po/*.po): Likewise. Execute mmsmallpo.sh in $(srcdir). 2018-11-11 Bruno Haible <bruno@clisp.org> gettextize: Install also host-cpu-c-abi.m4 (needed since 2018-03-24). * PACKAGING: Mention host-cpu-c-abi.m4. Update to newest gnulib. Update packaging instructions. * PACKAGING: Update file list. gettextize: Require automake >= 1.9. automake >= 1.9 is not found. Stop installing intldir.m4, intl.m4 and its dependencies. to have automake >= 1.9. extern-inline.m4, fcntl-o.m4, glibc2.m4, glibc21.m4, intdiv0.m4, intl.m4, intl-thread-locale.m4, intldir.m4, intmax.m4, inttypes_h.m4, inttypes-pri.m4, lcmessage.m4, lock.m4, longlong.m4, printf-posix.m4, size_max.m4, stdint_h.m4, threadlib.m4, uintmax_t.m4, visibility.m4, wchar_t.m4, wint_t.m4, xsize.m4. * PACKAGING: Remove the *.m4 files that are no longer installed. Stop installing the intl/ subdir sources. (DISTFILES.obsolete): Remove variable. (install-data): Don't install nor remove anything. (installdirs): Don't create $(gettextsrcdir). archive. * PACKAGING: Remove mention of $prefix/share/gettext/intl/ directory. gettextize: Remove --intl option. Signal an error if the --intl option is specified. Simplify main code accordingly. directory. (configure.ac): Suggest to use AM_GNU_GETTEXT([external]) always. Remove mention of intl/ directory. (config.guess): Suggest them always. (aclocal): Shrink the list of .m4 files. (acconfig): Remove subsection. (config.h.in): Remove mention of intl/ directory. (AM_GNU_GETTEXT): First argument must be 'external'. Remove third argument. (AM_GNU_GETTEXT_INTL_SUBDIR): Remove subsection. (Language Implementors): Remove mention of intl/ directory. Mention that Solaris 11 gettext works like GNU gettext. (Maintainers for other Languages): Remove mention of intl/ directory. 2018-11-09 Bruno Haible <bruno@clisp.org> 2018-11-08 Bruno Haible <bruno@clisp.org> 2018-11-05 Bruno Haible <bruno@clisp.org> xgettext: C: Treat invalid escape sequences like GCC does. produce c, not a backslash. xgettext: Simplify calling convention of arglist_parser_remember. 'msgid_comment_is_utf8' field. (arglist_parser_remember): Add comment_is_utf8 argument. arglist_parser_clone): Update. (arglist_parser_remember): Add comment_is_utf8 argument. (arglist_parser_done): Pass comment_is_utf8 value down to remember_a_message. xgettext_current_source_encoding around arglist_parser_remember calls. xgettext: Delay calls to from_current_source_encoding, part 2. (struct partial_call): Change type of fields msgctxt, msgid, msgid_plural to 'mixed_string_ty *'. (arglist_parser_remember, arglist_parser_remember_msgctxt): Take a 'mixed_string_ty *' argument instead of a 'char *' argument. accordingly. (arglist_parser_remember, arglist_parser_remember_msgctxt): Take a 'mixed_string_ty *' argument. (arglist_parser_done): Convert the mixed_string to UTF-8 encoded 'char *' here. This is where from_current_source_encoding gets invoked now: immediately before invoking remember_a_message, that is, only when we really need to know the --from-source encoding. arglist_parser_remember. Don't set xgettext_current_source_encoding around arglist_parser_done calls. (read_object): Convert the string to a mixed_string_ty before passing it to arglist_parser_remember. (extract_parenthesized): Convert the string to a mixed_string_ty before passing it to arglist_parser_remember. (extract_balanced): Convert the string to a mixed_string_ty before passing it to arglist_parser_remember. (extract_balanced): Convert the string to a mixed_string_ty before passing it to arglist_parser_remember. (read_command): Convert the string to a mixed_string_ty before passing it to arglist_parser_remember. (read_command): Convert the string to a mixed_string_ty before passing it to arglist_parser_remember. mixed_string_ty before passing it to arglist_parser_remember. Don't set xgettext_current_source_encoding around arglist_parser_done calls. xgettext: Simplify calling convention of remember_a_message. remember_a_message_plural): Add is_utf8, comment_is_utf8 arguments. remember_a_message_plural): Likewise. extract_balanced): Likewise. xgettext: Delay calls to from_current_source_encoding, part 1. * xg-mixed-string.h (enum segment_type, struct mixed_string_segment, struct mixed_string, mixed_string_ty): New types. (mixed_string_alloc_simple, mixed_string_alloc_utf8, mixed_string_clone, mixed_string_contents, mixed_string_free, mixed_string_contents_free1, mixed_string_concat, mixed_string_concat_free1): New declarations. (struct mixed_string_buffer): Change internal representation to use segments. (mixed_string_buffer_result): Change return type to 'mixed_string_ty *'. * xg-mixed-string.c: Include flexmember.h, msgl-ascii.h, po-charset.h. (segment_alloc, segment_clone, mixed_string_alloc_simple, mixed_string_alloc_utf8, mixed_string_clone, mixed_string_contents, mixed_string_free, mixed_string_contents_free1, mixed_string_concat, mixed_string_concat_free1): New functions. (mixed_string_buffer_init, mixed_string_buffer_is_empty): Change to match new internal representation. (mixed_string_buffer_grow_curr_buffer): New function. (mixed_string_buffer_grow_utf8_buffer): Remove function. (mixed_string_buffer_append_to_utf8_buffer): Update accordingly. (mixed_string_buffer_flush_curr_buffer): Remove function. (mixed_string_buffer_add_segment, mixed_string_buffer_flush_curr): New functions. (mixed_string_buffer_append_char, mixed_string_buffer_append_unicode, mixed_string_buffer_destroy, mixed_string_buffer_result): Change to match new internal representation. * x-c.c (struct token_ty): New field 'mixed_string'. (free_token): Update accordingly. (phase5_get, phase6_get, phase8a_get): For tokens of type token_type_string_literal, use a mixed_string. (phase8_get): Use mixed_string_concat_free1. (struct xgettext_token_ty): New field 'mixed_string'. (x_c_lex, extract_parenthesized): For tokens of type xgettext_token_type_string_literal, use a mixed_string. * x-csharp.c (comment_line_end): Update. (struct token_ty): New field 'mixed_string'. (free_token): Update accordingly. (phase6_get): For tokens of type token_type_string_literal, use a mixed_string. (phase7_get): Use mixed_string_concat_free1. (extract_parenthesized): For tokens of type token_type_string_literal, use a mixed_string. * x-java.c (comment_line_end): Update. (struct token_ty): New field 'mixed_string'. (free_token): Update accordingly. (phase5_get): For tokens of type token_type_string_literal, use a mixed_string. (phase6_get): Use mixed_string_concat_free1. (extract_parenthesized): For tokens of type token_type_string_literal, use a mixed_string. * x-javascript.c (comment_line_end): Update. (struct token_ty): New field 'mixed_string'. (free_token): Update accordingly. (phase5_get): For tokens of type token_type_string, use a mixed_string. (x_javascript_lex): Use mixed_string_concat_free1. (extract_balanced): For tokens of type token_type_string, use a mixed_string. * x-python.c (comment_line_end): Update. (struct token_ty): New field 'mixed_string'. (free_token): Update accordingly. (phase5_get): For tokens of type token_type_string, use a mixed_string. (x_python_lex): Use mixed_string_concat_free1. (extract_balanced): For tokens of type token_type_string, use a mixed_string. * x-rst.c (extract_rsj): Update. * x-vala.c (struct token_ty): New field 'mixed_string'. (free_token): Update accordingly. (phase3_get): For tokens of type token_type_string_literal, use a mixed_string. For tokens of type token_type_string_template, fix a memory leak. (x_vala_lex): Use mixed_string_concat_free1. (extract_balanced): For tokens of type token_type_string_literal, use a mixed_string. xgettext: JavaScript: Make more use of mixed_string_buffer. (init_unicode_string_buffer, unicode_string_buffer_append_unicode_grow, unicode_string_buffer_append_unicode, unicode_string_buffer_result, free_unicode_string_buffer): Remove functions. (comment_buffer, comment_start, comment_at_start, comment_add, comment_line_end): Use mixed_string_buffer API. xgettext: Python: Make more use of mixed_string_buffer. (init_unicode_string_buffer, unicode_string_buffer_append_unicode_grow, unicode_string_buffer_append_unicode, unicode_string_buffer_result, free_unicode_string_buffer): Remove functions. (comment_buffer, comment_start, comment_at_start, comment_add, comment_line_end): Use mixed_string_buffer API. xgettext: Change the C# extractor to make use of mixed_string_buffer. (init_string_buffer, string_buffer_append_unicode_grow, string_buffer_append_unicode, string_buffer_result, free_string_buffer): Remove functions. (comment_buffer, comment_start, comment_at_start, comment_add, comment_line_end): Use mixed_string_buffer API. (phase6_get): Likewise. xgettext: Optimize away a memory allocation. stack, not on the heap. mixed_string_buffer statically, not on the heap. mixed_string_buffer_done): Remove declarations. mixed_string_buffer_done): Remove functions. xgettext: Change the Java extractor to make use of mixed_string_buffer. (mixed_string_buffer_init, mixed_string_buffer_is_empty, mixed_string_buffer_destroy, mixed_string_buffer_result): New declarations. (mixed_string_buffer_init): New function. (mixed_string_buffer_alloc): Invoke it. (mixed_string_buffer_is_empty): New function, based on comment_at_start in x-java.c. (mixed_string_buffer_append_lone_surrogate): New function, based on string_buffer_append_lone_surrogate in x-java.c. (mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_append_unicode): Use it. (mixed_string_buffer_destroy, mixed_string_buffer_result): New functions. (mixed_string_buffer_done): Invoke mixed_string_buffer_result. (struct string_buffer): Remove type. (init_string_buffer, string_buffer_append_byte, string_buffer_append_unicode_grow, string_buffer_append_unicode, string_buffer_append_lone_surrogate, string_buffer_flush_utf16_surr, string_buffer_flush_curr_buffer): Remove functions. (mixed_string_buffer_append): Renamed from string_buffer_append. Use mixed_string_buffer. (string_buffer_result, free_string_buffer): Remove functions. (comment_buffer, comment_start, comment_at_start, comment_add, comment_line_end): Use mixed_string_buffer API. (accumulate_escaped, phase5_get): Likewise. xgettext: Share some more code among extractors. (xgettext_SOURCES): Add xg-pos.c. (real_file_name, logical_file_name, line_number): Remove variables. xgettext: Split source code into smaller files. gettext-tools/src/xgettext.h. gettext-tools/src/xgettext.c. and xg-*.h. (add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix, default_syntax_check, current_formatstring_parser1, current_formatstring_parser2, current_formatstring_parser3): New declarations. (xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment, recognize_qt_formatstrings): New declarations. (substring_match): Remove obsolete declaration. Include <iconv.h>, rc-str-list.h, xg-encoding.h, xg-arglist-context.h, xg-message.h. Don't include xsize.h, po-xerror.h, unistr.h. (add_all_comments, comment_tag, msgstr_prefix, msgstr_suffix, default_syntax_check): Make global. (split_keywordspec, insert_keyword_callshape): Moved to xg-arglist-callshape.c. (null_context, passthrough_context, inherited_context, null_context_list_iterator, passthrough_context_circular_list, passthrough_context_list_iterator, flag_context_list_iterator, flag_context_list_iterator_advance, flag_context_list_table_lookup): Move to xg-arglist-context.c. (flag_context_list_table_insert): Move bulk of body to new function flag_context_list_table_add in xg-arglist-context.c. (xgettext_comment, xgettext_comment_reset, savable_comment_to_xgettext_comment): Make global. (current_formatstring_parser1, current_formatstring_parser2, current_formatstring_parser3): Make global. (non_ascii_error_message, from_current_source_encoding): Move to xg-encoding.c. (CONVERT_STRING, set_format_flags_from_context, warn_format_string, remember_a_message, remember_a_message_plural): Move to xg-message.c. (arglist_parser_alloc, arglist_parser_clone, arglist_parser_remember, arglist_parser_remember_msgctxt, arglist_parser_decidedp, arglist_parser_done): Move to xg-arglist-parser.c. (mixed_string_buffer_alloc, mixed_string_buffer_append_to_curr_buffer, mixed_string_buffer_grow_utf8_buffer, mixed_string_buffer_append_to_utf8_buffer, mixed_string_buffer_flush_utf16_surr, mixed_string_buffer_flush_curr_buffer, mixed_string_buffer_append_char, mixed_string_buffer_append_unicode, mixed_string_buffer_done): Move to xg-mixed-string.c. (recognize_qt_formatstrings): New function. (xgettext_SOURCES): Add the new .c files. xgettext: Fix crash when parsing invalid \Uxxxxxxxx escape sequence. xgettext: Add support for C++11 raw string literals. xgettext: Add support for C11 string literals. xgettext: Vala: Improve parsing of escape sequences. Do recognize \$. 2018-11-05 Bruno Haible <bruno@clisp.org> xgettext: Fix result for concatenation of strings with escape sequences. Reported by Morten Welinder <mwelinder@gmail.com> in <https://lists.gnu.org/archive/html/bug-gettext/2015-12/msg00017.html> and <https://savannah.gnu.org/bugs/?46756>. Revert commits from 2014-05-07 xgettext: Provide a way to interpret string literals lazily 2014-05-07 c: Interpret string literals lazily 2014-05-09 vala: Interpret string literals lazily 2014-12-02 c: Support C++11 string literals and subsequent fixes of these. declaration. (enum literalstring_escape_type, struct literalstring_parser): Remove types. (struct partial_call): Update. (arglist_parser_remember_literal): Remove declaration. 'literalstring_parser' field. (savable_comment_convert_encoding): Remove function. (current_literalstring_parser): Remove variable. (extract_from_file, arglist_parser_alloc, arglist_parser_clone): Update. (arglist_parser_remember_literal): Remove function. (arglist_parser_remember_msgctxt): Simplify accordingly. literalstring_parser. (phase7_getc, phase7_ungetc): Reinstantiate functions. (phase5_get): Simplify. Use phase7_getc. literalstring_parser. (phase7_getc, phase7_ungetc): Reinstantiate functions. (phase3_get): Simplify. Use phase7_getc. (extract_balanced): Simplify. 2018-11-05 Bruno Haible <bruno@clisp.org> (EXTRA_DIST): Add xg-c-24.c, xg-vala-2.vala. expected result for backslash-NUL. 2018-11-04 Bruno Haible <bruno@clisp.org> Reported by Morten Welinder <mwelinder@gmail.com> in <https://lists.gnu.org/archive/html/bug-gettext/2015-12/msg00017.html> and <https://savannah.gnu.org/bugs/?46756>. 2018-11-04 Bruno Haible <bruno@clisp.org> xgettext: JavaScript: Fix a memory leak. token_type_keyword. 2018-10-28 Bruno Haible <bruno@clisp.org> Verify the exit code of the xgettext invocation. 2018-10-25 Bruno Haible <bruno@clisp.org> po, examples: Change .po -> .gmo rules to consider the newest changes to the POT file. Reported by Claude Paroz <claude@2xlibre.net> in <https://savannah.gnu.org/bugs/?50910>. first in $PATH. (MSGMERGE_FOR_MSGFMT_OPTION): New variable. (.po.gmo): Depend on the POT file. Use msgmerge on the fly, to take into account the most recent POT file changes. update-properties, update-classes targets. (MSGMERGE_FOR_MSGFMT_OPTION): New variable. ($(STRINGSFILES)): Depend on the POT file. Use msgmerge on the fly, to take into account the most recent POT file changes. 2018-10-25 Bruno Haible <bruno@clisp.org> msgmerge: New option --for-msgfmt. (long_options): Add option --for-msgfmt. (main): Handle option --for-msgfmt. (usage): Document option --for-msgfmt. (match_domain): When --for-msgfmt is given, omit untranslated and fuzzy messages from the result. (merge): When --for-msgfmt is given, don't add obsolete messages to the result. Add ability to write PO files without translator comment lines. (message_print_style_comment): New function. (message_print_comment): Output nothing if print_comment is false. 2018-10-24 Bruno Haible <bruno@clisp.org> Improve reliability of 'make dist'. 2018-10-24 Bruno Haible <bruno@clisp.org> po, examples: Put stamp-po in the source directory. Talk about "version control system", not CVS. stamp-po file does not exist in the build dir, except when using the older 2018-10-24 Bruno Haible <bruno@clisp.org> po: Make "make maintainer-clean" erase the .pot file. Rationale: <https://www.gnu.org/prep/standards/html_node/Standard-Targets.html> <https://www.gnu.org/software/automake/manual/html_node/Clean.html> the .pot file. func_check_maintainerclean_vpath): Verify the .pot file is removed after infrastructure. 2018-10-24 Bruno Haible <bruno@clisp.org> po, examples: Use case-insensitive search for "GNU <PACKAGE_NAME>". Reported by Akim Demaille <akim@lrde.epita.fr> in <https://lists.gnu.org/archive/html/bug-gettext/2018-10/msg00020.html>. case-insensitive search for "GNU <PACKAGE_NAME>". Likewise. ($(DOMAIN).pot-update): Likewise. 2018-10-24 Bruno Haible <bruno@clisp.org> (.SUFFIXES): Remove .mo. (.po.mo): Remove rule. (distclean): Don't remove *.mo files. (.po.mo): Remove rule. (DISTCLEANFILES): Remove *.mo. Remove .mo. 2018-10-24 Bruno Haible <bruno@clisp.org> Remove outdated DJGPP build infrastructure. Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>. * djgpp: Remove directory. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Add support for msgmerge --previous. option --previous when the msgmerge program supports it. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Support reading header comments from file. from today. Replace header entry with the content of $(DOMAIN).pot-header, if exists. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Make it possible to pass custom options to msginit. This mirrors the Makevars change from 2014-10-08. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Add an option to claim the package as GNU/non-GNU. Reported by David Shea at <https://savannah.gnu.org/bugs/?40520>. ($(DOMAIN).pot-update): Don't search for "GNU packagename" if $(PACKAGE_GNU) is set. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Upgrade to newest Makevars. PO_DEPENDS_ON_POT, DIST_DEPENDS_ON_UPDATE_PO): New variables. version 0.19.8. files. func_check_maintainerclean_vpath): Allow left-over .po~ files. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Avoid grepping through monster files. Reported by Jim Meyering <jim@meyering.net>. GNU find is available, avoid grepping through monster files. 2018-10-24 Bruno Haible <bruno@clisp.org> examples: Don't create unnecessary installation directories. Reported by Serge Pavlovsky <pal666@gmail.com>. installdirs-local-yes): Remove unnecessary MKDIR_P invocations. 2018-10-24 Bruno Haible <bruno@clisp.org> po: Make the insertion of the .pot-header file more robust. This improves on the 2015-09-01 patch. command fails. 2018-10-24 Bruno Haible <bruno@clisp.org> po: When doing msgmerge --version, use the correct msgmerge program. This reverts the patch from <https://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00000.html>. Rationale: <https://lists.gnu.org/archive/html/bug-gettext/2018-10/msg00000.html>. not $(MSGMERGE). 2018-10-24 Bruno Haible <bruno@clisp.org> po: Make $(POFILES) target more robust. It was introduced on 2014-05-01. PO file does not yet exist. Fail if creation of the POT file fails. 2018-10-23 Bruno Haible <bruno@clisp.org> Update list of files to check with gnulib. intl: Improve support for per-thread locales on Solaris 11.4. Handle HAVE_SOLARIS114_LOCALES through Solaris specific code. localename-table.h. gettext-runtime/m4/intlsolaris.m4. (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES. HAVE_NAMELESS_LOCALES. (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set HAVE_NAMELESS_LOCALES here. intlsolaris.m4. intlsolaris.m4. intlsolaris.m4. intlsolaris.m4. * PACKAGING: List intl-thread-locale.m4, not intlsolaris.m4. Update to newest gnulib. intl: Fix support for per-thread locales on Solaris 11.4. gettext-runtime/intl/localename-table.h. localename-table.h. (localename-table.h): New target. (localename.$lo, localename-table.$lo): Update dependencies. (mostlyclean): Remove localename-table.h. 2018-10-23 Daiki Ueno <ueno@gnu.org> xgettext: Fix compiler warning implicit argument. Reported in: <https://savannah.gnu.org/bugs/?48404>. 2018-10-23 Bruno Haible <bruno@clisp.org> Update after gnulib changed. * configure.ac: Require Autoconf >= 2.63. Update from gnulib: Assume Autoconf >= 2.63. AC_USE_SYSTEM_EXTENSIONS exists. Autoconf < 2.61. Update from gnulib: Assume Automake >= 1.11. Eliminate uses of 'eval'. Update from gnulib: Make better use of Autoconf. 2018-10-23 Bruno Haible <bruno@clisp.org> intl: Add support for per-thread locales on Solaris 11.4. Relies on the recent changes to the 'localename' module in gnulib. overriding declarations. (SOURCES): Add localename-table.c. (OBJECTS): Add localename-table.$lo. (localename-table.lo): New target. (libgnuintl.h, libintl.h): Substitute also HAVE_NAMELESS_LOCALES. Instead, invoke gt_INTL_SOLARIS. Set HAVE_NAMELESS_LOCALES. gnulib. * PACKAGING: Add intlsolaris.m4 to the list of installed files. 2018-10-23 Bruno Haible <bruno@clisp.org> Update to newest gnulib. examples: Fix another build failure. hello.rsj. 2018-10-21 Bruno Haible <bruno@clisp.org> system's <libintl.h>. system's <libintl.h>. the system's <libintl.h> and setenv instead of xsetenv, and no fake setlocale. $LOCALE_FR and $LOCALE_FR_UTF8. and fa_IR.UTF-8. Update comments. Don't limit to fixed set of platforms. Don't limit to fixed set of platforms. Update PACKAGING documentation. * PACKAGING: Remove mention of charset.alias (dropped on 2018-05-19). Mention that libintl does not get installed on Solaris 11. not the gettext-runtime/src source dir, to PATH. 2018-10-20 Bruno Haible <bruno@clisp.org> Fix 'make dist' (recent regression). hello-pascal/hello.rst. 2018-10-19 Bruno Haible <bruno@clisp.org> examples: Modernize configure.ac. AM_INIT_AUTOMAKE syntax. Require automake >= 1.11. examples: Add a script for checking against mistakes. * Admin/release-steps: Mention check-examples. examples: hello-pascal: Fix 'make distcheck'. hello.rsj into $(srcdir) only if the new contents differs from the old contents. examples: hello-java*: Fix 'make distcheck'. the new .properties files in the build dir and move them to $(srcdir) only if the new contents differs from the old contents. (update-classes): Likewise, also for .class files. 2018-10-18 Bruno Haible <bruno@clisp.org> examples: hello-csharp*: Improve 'make maintainer-clean'. Don't list the $(RESOURCESDLLFILES) here. (maintainer-clean-local): Instead, remove them and their parent directories here. examples: hello-php: Fix runtime error. the return value of the printf function. examples: hello-tcl*: Fix runtime error. absolute file name without variable references. examples: hello-clisp: Fix runtime error with clisp versions >= 2.34. PROCESS-ID, not PROGRAM-ID. examples: Fix 'make dist' failures in VPATH builds. 'stamp-po' after having done target 'update-po'. examples: hello-pascal: Fix 'make dist' failure in VPATH builds. in $(srcdir), not in the build dir. examples: hello-pascal: Fix 'make dist'. file. examples: hello-java*: Fix "make dist". and CLASSFILES to contain files in $(srcdir), not in $(top_srcdir). from the po/ directory. Add the .properties and the .class files. (EXTRA_DIST): Add the .properties files. (update-properties, update-classes): Generate the .properties and .class files in the po/ directory, not in the top-level directory. the po/ directory, not in the top-level directory. examples: Fix 'make dist'. that are brought in by 'autopoint'. examples: Fix 'make' failures in VPATH builds. MAINTAINERCLEANFILES): Remove variables. (hello.jar): Use two jar commands, to combine .class files from the build dir with .properties files from the source dir. update-classes): Reference the .pot file in the source dir, not in the build dir. (echo-catalogs): Include the fallback catalog. prefix. (hello$(EXEEXT)): Use -o option to specify where the object file and the executable file shall be created. 2018-10-17 Bruno Haible <bruno@clisp.org> examples: hello-csharp-forms: Fix 'make clean'. hello.net.exe.mdb. examples: hello-csharp: Fix 'make clean'. hello.net.exe.mdb. examples: hello-objc-gnustep: Fix 'make distclean'. Remove the *.lproj directories. Remove remove-potcdate.sed. examples: hello-pascal: Fix 'make maintainer-clean'. variable. examples: hello-java: Fix 'make' failure. examples: hello-pascal: Update. ppc386 is not found. (SUBDIRS): Proceed in current directory before recursing into po/. replaces hello.rst. examples: Correctly clean up left-over files. correctly. 2018-10-15 Bruno Haible <bruno@clisp.org> examples: Remove left-over files. examples: Clean up autoconf left-over. directory. examples: hello-c++-widgets: Update build infrastructure. files. examples: Fix "make dist" error. before, not after, 'aclocal'. examples: Update developer documentation. examples: Improve developer documentation. examples: Improve developer documentation. * HACKING: Mention dependency needed for examples. Fix list of dependencies. * DEPENDENCIES: Add libacl. 2018-10-15 Bruno Haible <bruno@clisp.org> gettextize: Don't redirect stderr. Reported by ShellCheck via Pavel Raiskup <praiskup@redhat.com>. 2018-10-15 Bruno Haible <bruno@clisp.org> autopoint: Don't redirect stderr. Reported by ShellCheck via Pavel Raiskup <praiskup@redhat.com>. 2018-10-15 Bruno Haible <bruno@clisp.org> Fix "make dist" error (regression from 2018-10-09). hello-csharp-forms/BUGS. 2018-10-09 Bruno Haible <bruno@clisp.org> C# support: Remove pnet choice. * DEPENDENCIES: Don't mention pnet. * PACKAGING: Likewise. Update to newest gnulib. 2018-10-06 Bruno Haible <bruno@clisp.org> Fix a build failure on mingw with -O0. Reported at <https://savannah.gnu.org/bugs/?36443>. Fix suggested by Evgeny Grin <k2k@narod.ru> in <https://savannah.gnu.org/bugs/?36443#comment4>. * gnulib-local/build-aux/moopp (func_emit_source_h): Wrap the function declarations in extern "C" {}. 2018-10-05 Bruno Haible <bruno@clisp.org> msgfmt: Remove outdated warning. (struct msgfmt_catalog_reader_ty): Remove field 'has_nonfuzzy_header_entry'. (msgfmt_constructor, msgfmt_frob_new_message): Update. 2018-10-05 Bruno Haible <bruno@clisp.org> Fix conflict between different uses of GETTEXTLIBDIR. Rationale: The programs installed in $(prefix)/lib/gettext/ are at different locations before installation: some are in the source tree, some are in the build tree. GETTEXTLIBDIR_SRCDIR, not GETTEXTLIBDIR. GETTEXTLIBDIR_BUILDDIR. 2018-10-05 Bruno Haible <bruno@clisp.org> Fix conflict between different uses of GETTEXTDATADIR. GETTEXTDATADIR. directory with just one POT file. cldr-plurals: Improve error handling. Don't assume that the error was an out-of-memory. Remove unnecessary trailing comma in struct initializers. initializer. 2018-10-05 Bruno Haible <bruno@clisp.org> Explain how to concatenate POT files. Reported by Hadi Farah in <https://lists.gnu.org/archive/html/bug-gettext/2018-09/msg00026.html>. 2018-10-05 Bruno Haible <bruno@clisp.org> Include gnulib module 'mkdir', needed for older mingw versions. Reported by Maarten Bosmans at <https://savannah.gnu.org/bugs/?33379>. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add 'mkdir'. 2018-10-05 Bruno Haible <bruno@clisp.org> Fix link error when building with --enable-shared on mingw. * autogen.sh (GNULIB_MODULES_LIBGETTEXTPO_OTHER): Add 'realloc-posix'. in argv[0]. Update after gnulib changed. Update to newest gnulib. 2018-09-19 Bruno Haible <bruno@clisp.org> In this situation, argv[0] is absolute, even though the program was invoked as a file name without slashes (and thus found in $PATH). 2018-09-18 Bruno Haible <bruno@clisp.org> Fix link error when building with --disable-shared on 64-bit Cygwin. * gnulib-local/lib/execute.c.diff: Remove file. * gnulib-local/lib/spawn-pipe.c.diff: Remove file. Fix link error when building with --disable-shared on Cygwin and mingw. included libxml and building with --disable-shared. * gnulib-local/lib/libxml/libxml.h (LIBXML_STATIC): Define to 1, not empty. 2018-09-17 Bruno Haible <bruno@clisp.org> autogen.sh: Fix use of undefined function. * autogen.sh: Rewrite error message code. 2018-09-17 Bruno Haible <bruno@clisp.org> Fix link error on Cygwin. Patch partially by Michael Haubenwallner at https://gitlab.gnome.org/GNOME/libxml2/commit/c65c9e8ee07e2dab0647392c2bd1795a5bc99829 * gnulib-local/lib/libxml/xmlexports.in.h: Don't assume that _WIN32 is defined on Cygwin. (XMLPUBVAR): Define as 'extern', not as empty. 2018-09-17 Bruno Haible <bruno@clisp.org> Fix "Unescaped left brace in regex is deprecated here" warnings from Perl 5.26. Reported and patch by Jehan <jehan@girinstud.io> <jehan@zemarmot.net> at <https://savannah.gnu.org/bugs/?54088>. 2018-09-17 Bruno Haible <bruno@clisp.org> Update after gnulib changed. * gnulib-local/modules/fnmatch.diff: Update. (charset.alias): Remove target. (install-exec): Don't install charset.alias. (install-data): Don't chmod config.charset. (installdirs): Don't create $(libdir). (uninstall): Don't uninstall charset.alias. (mostlyclean): Don't remove charset.alias. ref-del.sin. Update to newest gnulib. not the gettext-runtime/src source dir, to PATH. 2018-09-16 Bruno Haible <bruno@clisp.org> libintl: Improve locale handling on macOS 10.12 or newer. logic also work in locales such as "zh-Hans-DE". (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE and LC_MESSAGES. 2018-09-16 Bruno Haible <bruno@clisp.org> Don't assume that 'sed' supports alternation in regular expressions. See https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Usual-Tools.html 2018-09-16 Bruno Haible <bruno@clisp.org> Update list of locale names with scripts on macOS. tables to match Mac OS X 10.13 and recent glibc. Fix link error in "make check" when building with --disable-shared on macOS. @INTL_MACOSX_LIBS@. Use newer macOS APIs when possible. CFLocaleCopyPreferredLanguages. CFLocaleCopyPreferredLanguages when it exists. Revisit macOS specific code. duplication. Fix comments about Mac OS X versions. 2018-09-16 Bruno Haible <bruno@clisp.org> libintl: Fix language preferences on macOS 10.12 or newer. Reported by Kristian Rietveld <kris@loopnest.org> at <https://savannah.gnu.org/bugs/?49560>. preferences elements of the form "ll-CC" in a reasonable way. 2018-09-16 Bruno Haible <bruno@clisp.org> setlocale: Improve support for locales not supported by libc. Reported by Dapeng Gao <peter@dpgao.cc> at <https://savannah.gnu.org/bugs/?54479>. (libintl_setlocale): Use a more error-tolerant strategy when the locale to be set is not supported by libc: Emit warnings instead of failing. 2018-09-16 Bruno Haible <bruno@clisp.org> Fix link error when linking with libintl.a on macOS. macOS. Reduce "make dist" time by 7 minutes. * configure.ac (AM_INIT_AUTOMAKE): Remove dist-xz and dist-lzip options. * Admin/release-steps: Mention how to create the tarballs with higher compression after "make dist". 2018-09-15 Bruno Haible <bruno@clisp.org> Add support for translation lookup with context in shell scripts. Reported by Markus Gothe <nietzsche@lysator.liu.se> in <https://savannah.gnu.org/bugs/?49899>. (main): Handle option -c/--context. (usage): Document option -c/--context. Split usage message. (main): Handle option -c/--context. (usage): Document option -c/--context. Split usage message. functions. field. (arglist_parser_remember_msgctxt): New declaration. Update accordingly. (arglist_parser_remember_msgctxt): New function. eval_npgettext. (init_flag_table_sh): Set flags for eval_pgettext, eval_npgettext. (substring_of_word): New function. (read_command): Recognize and handle -c/--context argument of 'gettext' and 'ngettext'. Mention the new shell functions. (eval_pgettext Invocation, eval_npgettext Invocation): New subsubsections. eval_npgettext. 2018-08-12 Bruno Haible <bruno@clisp.org> gettext-runtime/intl/setlocale.c: Add fixes from gnulib. 2018-08-11 Bruno Haible <bruno@clisp.org> setlocale: Trivial simplification. * lib/setlocale.c (setlocale_unixlike): Remove redundant #if. 2017-04-21 Bruno Haible <bruno@clisp.org> * setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for "C". 2016-03-22 Geert Janssens <janssens-geert@telenet.be> setlocale: add "sv" to Windows language table * setlocale.c (language_table) [W32]: Add "sv". Reported in <https://savannah.gnu.org/bugs/?44588>. 2012-01-04 Bruno Haible <bruno@clisp.org> Talk about "native Windows API", not "Win32". * setlocale.c: Update comments to mention native Windows. 2018-07-25 Bruno Haible <bruno@clisp.org> Upgrade to newer help2man. Reported by Bernhard M. Wiedemann in <https://savannah.gnu.org/bugs/?54367>. $source ||= "$program $version"; replaced by $source ||= "$package $version"; 2018-07-25 Bruno Haible <bruno@clisp.org> Make it possible to copy&paste strings from the HTML-formatted man pages. (gt_man2html): Use it. (gt_man2html): Use it. 2018-07-03 Bruno Haible <bruno@clisp.org> Enable the format_arg attribute also on clang on Mac OS X. Reported by Tom Tromey <tom@tromey.com> in <https://lists.gnu.org/archive/html/bug-gettext/2018-07/msg00000.html>. use attribute __format_arg__ if the compiler is based on clang >= 3.0. 2018-07-03 Bruno Haible <bruno@clisp.org> Make the format_arg attribute effective also in the case _INTL_REDIRECT_INLINE. Reported by Tom Tromey <tom@tromey.com> in <https://lists.gnu.org/archive/html/bug-gettext/2018-07/msg00000.html>. ngettext, dngettext, dcngettext): Add attribute __format_arg__ also to the 'static inline' functions. 2018-05-14 Bruno Haible <bruno@clisp.org> Update .gitignore. 2018-05-14 Bruno Haible <bruno@clisp.org> xgettext: Improve support for specialized vector syntax in Scheme. Reported by Florent Angly <Florent.Angly@cslbehring.com>. uninitialized token. Support recent syntax for homogeneous vector types (SRFI-4) and byte vectors as well. 2018-05-12 Bruno Haible <bruno@clisp.org> libintl: Ensure the *printf function overrides are POSIX compatible. Reported by Eli Zaretskii <eliz@gnu.org>. (libintl_vfprintf, libintl_vsprintf, libintl_vsnprintf, libintl_vfwprintf, libintl_vswprintf): Use it. 2018-05-05 Bruno Haible <bruno@clisp.org> all: Replace more http and ftp URLs by https URLs. * autogen.sh: Use https: URLs. all: Use https: URLs in --version output. * gnulib-local/build-aux/moopp: Likewise. all: Replace http URLs by https URLs in copyright notices. Simplify code. Drop support for Borland C++ on Windows. 'defined _WIN32 || defined __WIN32__' to just 'defined _WIN32'. * gnulib-local/lib/basename.c: Likewise. Update after gnulib changed. * gnulib-local/lib/execute.c.diff: Update. Update to newest gnulib. 2018-03-24 Bruno Haible <bruno@clisp.org> Add support for recent Java versions. Reported by Emmanuel Bourg <ebourg@apache.org> at <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892733> via Santiago Vila. source-version 1.5 and target-version 1.6 (such as Java 6 or newer, or GCJ 4.3 or newer). source-version 1.5 (such as Java 5 or newer, or GCJ 4.3 or newer). 2018-03-24 Bruno Haible <bruno@clisp.org> Comment. * .dir-locals.el: Add comment. Update after gnulib changed. * gnulib-local/lib/unistd.in.h.diff: Update. * gnulib-local/lib/regexec.c.diff: Remove file. Update to newest gnulib 2018-03-15 Bruno Haible <bruno@clisp.org> Reported by Amit Chaudhuri <amit.k.chaudhuri@gmail.com>. * HACKING: Required minimum Bison version is now 3.0, for cldr-plural.y. 2018-01-27 Bruno Haible <bruno@clisp.org> Rename some files. xgettext: Support '_' in number tokens in C++. 2018-01-07 Bruno Haible <bruno@clisp.org> xgettext: Support 'p'/'P' exponent markers in number tokens also in C. in C. 2018-01-07 Bruno Haible <bruno@clisp.org> It's a bug in gawk 4.2.0, reported at https://lists.gnu.org/archive/html/bug-gawk/2018-01/msg00026.html . 2018-01-06 Bruno Haible <bruno@clisp.org> Add support for new C++ preprocessing number tokens. Reported by Moritz Bunkus <moritz@bunkus.org> at <https://savannah.gnu.org/bugs/?50117>. preprocessing number tokens. 2018-01-06 Bruno Haible <bruno@clisp.org> Comment fix. (Internationalizable Data): Moved here from chapter "Programming Languages". xgettext: Add support for .properties files in UTF-8 encoding. * autogen.sh (GNULIB_MODULES_TOOLS_FOR_SRC): Add read-file, unistr/u8-check. about its encoding, then start parsing it. 2018-01-05 Bruno Haible <bruno@clisp.org> Add support for .rsj files. (extract_rsj): New declaration. 2018-01-05 Bruno Haible <bruno@clisp.org> Fix failure of lang-javascript on Ubuntu 16.04. pkg-config almost never works. It is best to never use it. the installed gjs is appropriate. 2018-01-04 Bruno Haible <bruno@clisp.org> Use locales with the customary names. On glibc systems, nowadays, the German and French locales are named 'de_DE.UTF-8' and 'fr_FR.UTF-8', respectively. This change avoids the need to install similar locales with different names. 2018-01-04 Bruno Haible <bruno@clisp.org> lua-gettext package. subsection 'Ubuntu packages' for each. 2018-01-03 Bruno Haible <bruno@clisp.org> Fix msgunfmt-3 failure (regression from 2017-09-24). Update dependencies list. * HACKING: Add Lzip (needed for "make dist" since 2014-12-24). 2018-01-03 Bruno Haible <bruno@clisp.org> Fix "make dist" of modified git checkouts. This fixes error messages such as tar: gettext-0.19.8.1.74-72e49-dirty/gettext-runtime/intl-csharp/doc/GNU_Gettext_GettextResourceManager.html: file name is too long (max 99); not dumped * configure.ac: Pass option 'tar-ustar' to AM_INIT_AUTOMAKE. (am__tar): Use 'tar' option --format=ustar. 2018-01-02 Bruno Haible <bruno@clisp.org> Clarify required bison version. Reported by Roger Mc Murtrie <rogermc@grapevine.com.au> at <https://savannah.gnu.org/bugs/?47484>. * HACKING: Mention minimum version of bison. 2018-01-02 Bruno Haible <bruno@clisp.org> Avoid build failures caused by parallel make. Reported by Andrew Stormont <andyjstormont@gmail.com> at <https://savannah.gnu.org/bugs/?48412>. 2018-01-02 Bruno Haible <bruno@clisp.org> Fix 'ar' invocation when cross-compiling and in 64-bit mode on AIX. Reported by Benedikt Morbach <bmorbach@redhat.com> at <https://savannah.gnu.org/bugs/?43037>. available. Otherwise, use AC_PROG_RANLIB and set AR and ARFLAGS. autoconf. (ARFLAGS): New variable. (libintl.a, libgnuintl.a): Use it. 2018-01-02 Bruno Haible <bruno@clisp.org> Don't use -lc explicitly when linking with libtool. libtool has logic that determines whether it should add -lc, and this logic works fine on all modern platforms. Reported by Michael Forney <mforney@mforney.org> at <https://savannah.gnu.org/bugs/?40192>. LTLIBC. 2017-10-15 Bruno Haible <bruno@clisp.org> Clarify copyright and license of some files. Reported by Joël Krähemann at <https://savannah.gnu.org/bugs/?52227>. 2017-09-30 Bruno Haible <bruno@clisp.org> Fix an out-of-bounds memory read. Reported by Jakub Wilk <jwilk@jwilk.net>. * gnulib-local/lib/term-ostream.oo.c (term_ostream_create): Pass the correct length to memcmp(). 2017-09-24 Daiki Ueno <ueno@gnu.org> 2017-09-24 Bruno Haible <bruno@clisp.org> Verify that system dependent strings in .mo files are NUL terminated. Reported by Jakub Wilk <jwilk@jwilk.net> in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876498>. system-dependent strings has a last static segment that is not NUL terminated. 2017-09-24 Bruno Haible <bruno@clisp.org> libintl: Fix pointer use after free. deallocation outside libc as in libc (patch from 2013-09-06). 2017-08-29 Bruno Haible <bruno@clisp.org> AppData: Update documentation. Mention support for file extension .metainfo.xml. 2017-08-29 Matthias Klumpp <matthias@tenstral.net> Extend the AppData "language" to also support AppStream metainfo files. Fixes <https://savannah.gnu.org/bugs/?50414>, reported by Piotr Drąg <piotrdrag@gmail.com>. Recognize also suffix ".metainfo.xml". 2017-08-29 Bruno Haible <bruno@clisp.org> AppData: Simplify code. supported extensions are now defined in the *.loc files. 2017-08-29 Matthias Klumpp <matthias@tenstral.net> Translate <developer_name> elements in AppData files. Fixes <https://savannah.gnu.org/bugs/?50408>, reported by Piotr Drąg <piotrdrag@gmail.com>. 2017-08-22 Bruno Haible <bruno@clisp.org> <xlocale.h>. 2017-08-22 Bruno Haible <bruno@clisp.org> Avoid extraneous NUL bytes in .mo files. Reported by Jakub Wilk <jwilk@jwilk.net> via Santiago Vila <sanvila@unex.es> in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872869>. message_list_delete_header_field): Adjust msgstr_len when modifying msgstr. 2017-07-15 Bruno Haible <bruno@clisp.org> Get rid of autom4te.cache directories, as far as possible. * autogen.sh: Remove autom4te.cache directories after running autoconf, autoheader, automake. 2017-07-15 Bruno Haible <bruno@clisp.org> Fix bug: gettextize does not add intlmacosx.m4 file. Reported by Eli Zaretskii via Gavin Smith in <http://lists.gnu.org/archive/html/bug-texinfo/2017-07/msg00026.html>. when --intl option is not given. 2017-06-15 Bruno Haible <bruno@clisp.org> gettext.h: Update theoretical condition for use of variable size arrays. Reported by Paul Eggert. * gnulib-local/lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment to include the theoretical condition for availability of variable size arrays, if we could trust the value of __STDC_VERSION__. 2017-05-22 Bruno Haible <bruno@clisp.org> Fix hyperlink to CLHS. 2017-05-19 Bruno Haible <bruno@clisp.org> Fix memory leaks. Found by Coverity. before returning in out-of-memory case. (read_alias_file): Invoke relocate2 instead of relocate. Free the allocated memory. 2017-05-19 Bruno Haible <bruno@clisp.org> Fix missing unlock. Found by Coverity. free allocated memory before returning. 2017-05-19 Bruno Haible <bruno@clisp.org> Update gettext-runtime files from gnulib. * localcharset.c (relocate2): Define fallback. (get_charset_aliases): Invoke relocate2 instead of relocate. Free the allocated memory. * localcharset.c (WINDOWS_NATIVE): Don't define on Cygwin. * localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the return value from setlocale if it would lead to a buffer overrun. * localename.c [__CYGWIN__]: Include <langinfo.h>, since this is where NL_LOCALE_NAME is defined. * localename.c (WINDOWS_NATIVE): Don't define on Cygwin. * localename.c (gl_locale_name_thread_unsafe): Add clause for Cygwin. * localename.c (struct hash_node): Use FLEXIBLE_ARRAY_MEMBER. * lock.c: On glibc systems without PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback implementation of rwlocks. * lock.c [USE_POSIX_THREADS] (glthread_rwlock_init_for_glibc): New function. [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update comment. [USE_PTH_THREADS]: New implementation of rwlocks. [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over readers. * lock.h (pthread_rwlockattr_setkind_np): Don't declare weak on non-glibc platforms. * lock.h: On glibc systems without PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback implementation of rwlocks. * lock.h [USE_POSIX_THREADS_WEAK]: Declare also pthread_rwlockattr_init, pthread_rwlockattr_setkind_np, pthread_rwlockattr_destroy weak. HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation of rwlock initialization on glibc systems without HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation of rwlocks altogether on non-glibc systems without HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether. * relocatable.c (relocate2): New function. * relocatable.c (relocate): Assume pathname is non-NULL. Use ISSLASH macro consistently. Avoid dangerous string concatenation idiom. * relocatable.h (relocate2): New declaration/macro. * vasnprintf.c (FALLTHROUGH): New macro. Use it whenever one switch case falls through into the next. * vasnprintf.c (USE_MSVC__SNPRINTF): New macro. Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead of !HAVE_SNPRINTF_RETVAL_C99. * vasnprintf.c (VASNPRINTF): Move comment down past two cpp directives, so that it takes effect once again. This is clearly not a proper change, and I will revert it once this bug is fixed: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817 * vasnprintf.c (IF_LINT): Treat GCC_LINT like lint. * verify.h (verify) [!__GNUC__]: Use shorter albeit meaningless string to bypass silly compiler limits. * verify.h (assume): Treat GCC_LINT like lint. PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer. Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>. semaphores. (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros. (atomic_int_semaphore): New macro. exist. (struct atomic_int, init_atomic_int, get_atomic_int_value, set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore. Suggested by Torvald Riegel <triegel@redhat.com>. 2017-05-18 Bruno Haible <bruno@clisp.org> Update after gnulib changed. * gnulib-local/lib/fnmatch_loop.c.diff: Update. Update gnulib 2017-05-16 Bruno Haible <bruno@clisp.org> Update after gnulib changed. * gnulib-local/lib/getopt-core.h.diff: New file. * gnulib-local/lib/getopt.in.h.diff: Remove file. * gnulib-local/lib/unistd.in.h.diff: Update. * gnulib-local/modules/fnmatch.diff: Update. lib/getopt.in.h.diff. depend on 'hash' (because we use a different 'hash' module). * .gitignore: Update. 2017-05-15 Bruno Haible <bruno@clisp.org> Update gnulib 2017-05-15 Bruno Haible <bruno@clisp.org> Reported by Domingo Bernardo <domingopbernardo@gmail.com>. Bulgarian. 2017-05-15 Bruno Haible <bruno@clisp.org> Respect the configure option --localedir. Reported by Markus Gothe at https://savannah.gnu.org/bugs/index.php?49862 . The AC_SUBSTed variable @localedir@ is supported since Autoconf 2.60. by Markus Gothe <nietzsche@lysator.liu.se>. 2017-05-04 Bruno Haible <bruno@clisp.org> Remove the ability to compile the Java programs to native executables. This ability relied on GCJ, and GCJ was removed from GCC in version 7.1. * gnulib-local/modules/gcj: Remove file. * gnulib-local/m4/gcj.m4: Remove file. * gnulib-local/m4/java.m4 (gt_JAVA_CHOICE): Map value 'bytecode' to 'yes'. * autogen.sh (GNULIB_MODULES_TOOLS_OTHER): Remove 'gcj'. (GCJ, GCJFLAGS): Remove variables. (USEJAVA, USEJEXE): Assume BUILDJAVAEXE is false. (all-java-*, install-data-java-*, installdirs-java-*, uninstall-java-*): Remove targets that assume BUILDJAVAEXE = true. Rename remaining targets. (install-exec-java-*): Remove targets. * PACKAGING (Java support): Drop text about native executables. gcj.m4. AC_PROG_RANLIB. Remove option --enable-java-exe. Don't set BUILDJAVAEXE. Don't set USEJEXE. Remove variables. [USEJEXE]: Remove section. 2017-04-22 Bruno Haible <bruno@clisp.org> Avoid -Wundef warning in gettext.h. 2017-04-19 Bruno Haible <bruno@clisp.org> PO mode: Fix recognition of C and C++ modes. The variable 'mode-name' can contain a suffix, see https://www.gnu.org/software/emacs/manual/html_node/ccmode/Minor-Modes.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Electric-C.html Therefore use 'major-mode' instead of 'mode-name'. not mode-name. (po-mode-version-string): Bump to 2.25. Reported at <https://savannah.gnu.org/bugs/index.php?50830> by Peter Hull <peterhull90@gmail.com>. 2017-03-20 Bruno Haible <bruno@clisp.org> Fix compilation error in <libintl.h> on Cygwin. Reported by Michael Haubenwallner at https://savannah.gnu.org/bugs/?50595 . locale_t type is not visible on Cygwin. 2017-02-16 Bruno Haible <bruno@clisp.org> Support for Automake targets install-{dvi,ps,pdf,html}. Reported by Eric Blake at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25690 via Assaf Gordon. install-html): New empty targets. 2017-01-10 Bruno Haible <bruno@clisp.org> * DEPENDENCIES: Likewise. Point to OpenJDK instead of gcj. Point to Mono instead of pnet. 2017-01-02 Bruno Haible <bruno@clisp.org> (struct atomic_int): New type. (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New functions. (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define as 'struct atomic_int'. Reported by Eric Blake in https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html and by Pádraig Brady in http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html. 2016-12-15 John Darrington <john@darrington.wattle.id.au> msgfmt: Remove POT-Creation-Date field from the header in the output. This helps reproducible builds. Reported at <https://savannah.gnu.org/bugs/?49654>. declaration. msgdomain_list_set_header_field. (message_list_delete_header_field): New function. (msgdomain_write_mo): Delete the POT-Creation-Date field. (msgdomain_write_java): Delete the POT-Creation-Date field. (msgdomain_write_csharp): Delete the POT-Creation-Date field. (msgdomain_write_csharp_resources): Delete the POT-Creation-Date field. (msgdomain_write_tcl): Delete the POT-Creation-Date field. (msgdomain_write_qt): Delete the POT-Creation-Date field. (msgdomain_write_desktop): Delete the POT-Creation-Date field. (msgdomain_write_xml): Delete the POT-Creation-Date field. 2016-12-12 Bruno Haible <bruno@clisp.org> Fix error handling in autogen.sh. * autogen.sh: Don't invoke automake if aclocal, autoconf, or autoheader failed. 2016-12-11 Bruno Haible <bruno@clisp.org> Simplify .gitignore. Remove files deleted by "make maintainer-clean" from version control. Merge all .gitignore files into a single .gitignore file. Update and organize the .gitignore files. 2016-12-10 Bruno Haible <bruno@clisp.org> Update to newest gnulib. 2016-12-09 Bruno Haible <bruno@clisp.org> Fix crash of xgettext with --its option. was initialized. Fixes bug introduced on 2016-05-16. 2016-12-05 KO Myung-Hun <komh78-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> intl: Fix that /@unixroot prefix is not working on OS/2 kLIBC OS/2 kLIBC has a feature to rewrite some path components. For example, '/@unixroot' is replaced with a value of $UNIXROOT if it is. So prepending a drive letter to the path starting with '/' makes the path starting with '/@unixroot' to 'x:/@unixroot' which is unexpected. This will breaks the behavior of some programs depending on /@unixroot prefix. dirname if it is started with '/@unixroot'. if it is started with '/@unixroot'. 2016-12-05 Bruno Haible <bruno@clisp.org> Fix the last commit. * autogen.sh: Enable the code of the last commit. Force an update of build-aux/ylwrap. 2016-12-04 Bruno Haible <bruno@clisp.org> Always use the newest released copies of files brought in from Automake. * autogen.sh: Make sure to get new versions of files brought in by automake. the scope of a single xgettext invocation. when we want to check for an error message in English. Fix an error message when gettextize if run with option -n. location where it is installed, not in $srcdir. Tweak installation instructions for Windows. 2016-11-25 Guido Flohr <guido.flohr@cantanea.com> Perl supports pgettext() and similar functions 2016-11-24 Guido Flohr <guido.flohr@cantanea.com> xgettext-perl: detect question mark as operator After an explicit function call like "somefunc()" a question mark or slash cannot be regex delimiters. 2016-11-23 Bruno Haible <bruno@clisp.org> Update installation instructions for Windows. builds. Add instructions for the MS Visual C/C++ tool chain. Revamp instructions for Cygwin. Drop the nickname "woe32". 2016-11-14 Daiki Ueno <ueno@gnu.org> intl: Fix compilation on a system without alloca -> 'resolved_dirname'. Reported by Egor Pugin in: http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00008.html 2016-11-02 Daiki Ueno <ueno@gnu.org> * autogen.sh: Require automake >= 1.13. * HACKING: Require automake >= 1.13, wget, and xz. Reported by Karl-P. Richter and Bruno Haible in: https://savannah.gnu.org/bugs/?49497 2016-10-25 Bruno Haible <bruno@clisp.org> Update iconv.m4 from Gnulib. Add comments about the implementation of 'autosprintf::operator='. comments. Rename parameter. 2016-09-15 Daiki Ueno <ueno@gnu.org> xgettext: Fix crash with *.po file input When xgettext was given two *.po files with the same msgid_plural, it crashed with double-free. Problem reported by Davlet Panech in: http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html calling do_callback_message, assuming that it takes ownership. msgid_plural after calling message_alloc. 2016-08-27 Akinori MUSHA <knu@idaemons.org> Add autoload magic comments Fix elisp package headers 2016-08-09 Daiki Ueno <ueno@gnu.org> gettextize: Don't add config.rpath to EXTRA_DIST The file is automatically included in the distribution by Automake, because of an AC_REQUIRE_AUX_FILE invocation. Reported in: http://savannah.gnu.org/bugs/?48729 added_extradist. 2016-08-03 Daiki Ueno <ueno@gnu.org> po-mode: Fix po-send-mail behaviour on Emacs 25 region markers. Reported by Göran Uddeborg in: http://lists.gnu.org/archive/html/bug-gettext/2016-07/msg00027.html 2016-07-12 Daiki Ueno <ueno@gnu.org> Update after gnulib changed Update gnulib 2016-07-12 Michele Locati <michele@locati.it> Better description of GETTEXTCLDRDIR for msginit Let's explain better where the GETTEXTCLDRDIR should point to and where the CLDR data could be retrieved. 2016-07-09 Stanislav Brabec <sbrabec@suse.com> Add support for msgmerge --previous msgmerge --previous is a very useful feature that makes adjusting of translation much easier when small changes in the source code are done. msgmerge supports it for 10 years, but it is not used by most projects, Use msgmerge --previous as default on all systems with gettext >= 0.16. 2016-06-28 Daiki Ueno <ueno@gnu.org> gnulib-local: Fix the last change gnulib-local: Add more files to distribution Problem reported by Xen. 2016-06-11 Daiki Ueno <ueno@gnu.org> LTV_REVISION.
2020-01-26 18:38:59 -07:00
set(GETTEXT_URL https://ftp.gnu.org/pub/gnu/gettext/gettext-0.20.1.tar.gz)
set(GETTEXT_SHA256 66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47f5c)
set(LIBICONV_URL https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz)
set(LIBICONV_SHA256 ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178)
set(TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/v0.20.5.tar.gz)
set(TREESITTER_C_SHA256 694a5408246ee45d535df9df025febecdb50bee764df64a94346b9805a5f349b )
set(TREESITTER_LUA_URL https://github.com/MunifTanjim/tree-sitter-lua/archive/v0.0.18.tar.gz)
set(TREESITTER_LUA_SHA256 659beef871a7fa1d9a02c23f5ebf55019aa3adce6d7f5441947781e128845256)
set(TREESITTER_VIM_URL https://github.com/neovim/tree-sitter-vim/archive/v0.3.0.tar.gz)
set(TREESITTER_VIM_SHA256 403acec3efb7cdb18ff3d68640fc823502a4ffcdfbb71cec3f98aa786c21cbe2)
set(TREESITTER_VIMDOC_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v2.0.0.tar.gz)
set(TREESITTER_VIMDOC_SHA256 1ff8f4afd3a9599dd4c3ce87c155660b078c1229704d1a254433e33794b8f274)
set(TREESITTER_QUERY_URL https://github.com/nvim-treesitter/tree-sitter-query/archive/v0.1.0.tar.gz)
set(TREESITTER_QUERY_SHA256 e2b806f80e8bf1c4f4e5a96248393fe6622fc1fc6189d6896d269658f67f914c)
set(TREESITTER_URL https://github.com/tree-sitter/tree-sitter/archive/v0.20.8.tar.gz)
set(TREESITTER_SHA256 6181ede0b7470bfca37e293e7d5dc1d16469b9485d13f13a605baec4a8b1f791)
if(USE_EXISTING_SRC_DIR)
get_cmake_property(VARS VARIABLES)
foreach (VAR ${VARS})
if(VAR MATCHES "^.*URL$")
unset(${VAR})
endif()
endforeach()
endif()
if(USE_BUNDLED_UNIBILIUM)
include(BuildUnibilium)
endif()
if(USE_BUNDLED_LIBTERMKEY)
include(BuildLibtermkey)
if(USE_BUNDLED_UNIBILIUM)
add_dependencies(libtermkey unibilium)
endif()
endif()
if(USE_BUNDLED_LIBVTERM)
include(BuildLibvterm)
endif()
if(USE_BUNDLED_LIBUV)
include(BuildLibuv)
endif()
if(USE_BUNDLED_MSGPACK)
include(BuildMsgpack)
endif()
if(USE_BUNDLED_LUAJIT)
include(BuildLuajit)
endif()
if(USE_BUNDLED_LUA)
include(BuildLua)
endif()
if(USE_BUNDLED_LUAROCKS)
include(BuildLuarocks)
endif()
if(USE_BUNDLED_LUV)
include(BuildLuv)
endif()
if(USE_BUNDLED_GETTEXT)
include(BuildGettext)
endif()
if(USE_BUNDLED_LIBICONV)
include(BuildLibiconv)
endif()
if(USE_BUNDLED_TS_PARSERS)
include(BuildTreesitterParsers)
endif()
if(USE_BUNDLED_TS)
include(BuildTreesitter)
endif()
if(WIN32)
include(GetBinaryDeps)
GetExecutable(TARGET cat)
GetExecutable(TARGET diff)
GetExecutable(TARGET tee)
GetExecutable(TARGET xxd)
if(USE_BUNDLED_NVIMQT)
GetBinaryDep(TARGET wingui
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory bin ${DEPS_BIN_DIR}
2018-05-20 09:50:07 -07:00
COMMAND ${CMAKE_COMMAND} -E copy_directory share ${DEPS_INSTALL_DIR}/share)
endif()
2017-02-15 10:13:49 -07:00
GetBinaryDep(TARGET win32yank_X86_64
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy win32yank.exe ${DEPS_BIN_DIR})
endif()