diff options
author | Daiki Ueno <ueno@gnu.org> | 2015-01-28 16:50:20 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2015-01-29 12:31:50 +0900 |
commit | 96dde0b8bdf6e4930f22556412d1680721929cd1 (patch) | |
tree | bcb636a22b8c7080a7945d9f649f75f4ff274689 /gettext-tools/tests/Makefile.am | |
parent | 2d36f1e1de7521090272b88f161711f95228c19d (diff) | |
download | external_gettext-96dde0b8bdf6e4930f22556412d1680721929cd1.zip external_gettext-96dde0b8bdf6e4930f22556412d1680721929cd1.tar.gz external_gettext-96dde0b8bdf6e4930f22556412d1680721929cd1.tar.bz2 |
msgfilter: Add --newline option
The filter program was supposed to handle translation without a
newline character at the end of line. This was causing
portability problems with standard text processing programs on
some platforms (BSD sed, for instance) and not friendly towards
POSIX, where a "text file" is required to have an ending newline.
The new --newline option controls the behavior. If it is given,
both filter input and output are assumed to end with a newline
character.
* gettext-tools/src/msgfilter.c (newline): New variable.
(long_options): Add --newline option.
(main): Handle --newline option.
(usage): Document --newline option.
(process_string_with_newline): New function which wraps
process_string.
(process_message): Use process_string_with_newline instead of
process_string if --newline is specified.
* gettext-tools/tests/msgfilter-8: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new test.
* gettext-tools/doc/msgfilter.texi: Document --newline option.
Diffstat (limited to 'gettext-tools/tests/Makefile.am')
-rw-r--r-- | gettext-tools/tests/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-tools/tests/Makefile.am b/gettext-tools/tests/Makefile.am index 5a0d3c0..c098a6f 100644 --- a/gettext-tools/tests/Makefile.am +++ b/gettext-tools/tests/Makefile.am @@ -42,7 +42,7 @@ TESTS = gettext-1 gettext-2 gettext-3 gettext-4 gettext-5 gettext-6 gettext-7 \ msgen-1 msgen-2 msgen-3 msgen-4 \ msgexec-1 msgexec-2 msgexec-3 msgexec-4 msgexec-5 \ msgfilter-1 msgfilter-2 msgfilter-3 msgfilter-4 msgfilter-5 \ - msgfilter-6 msgfilter-7 \ + msgfilter-6 msgfilter-7 msgfilter-8 \ msgfilter-sr-latin-1 msgfilter-quote-1 \ msgfmt-1 msgfmt-2 msgfmt-3 msgfmt-4 msgfmt-5 msgfmt-6 msgfmt-7 \ msgfmt-8 msgfmt-9 msgfmt-10 msgfmt-11 msgfmt-12 msgfmt-13 msgfmt-14 \ |