diff options
author | Jim Meyering <meyering@fb.com> | 2014-09-04 20:52:12 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-09-06 09:21:05 -0700 |
commit | 643f692bc7b02086e91c2afd12bf9ac8b40b6fe4 (patch) | |
tree | 5f47bfeef407e51a8d8d6ca0100f2616b09ec174 /testsuite/y-zero.sed | |
parent | e146d2a52d4a527a11a79d9b46551fbd9fdca62b (diff) | |
download | sed-643f692bc7b02086e91c2afd12bf9ac8b40b6fe4.tar.gz |
fix "y" to work with NUL in the RHS
* sed/execute.c (do_list) [case 'y']: Handle NUL bytes
in the RHS of a y/LHS/RHS/ transliteration.
* testsuite/y-zero.good: New test-related files.
* testsuite/y-zero.inp:
* testsuite/y-zero.sed:
* testsuite/Makefile.am (SEDTESTS): Add y-zero here.
* testsuite/Makefile.tests: And here.
* NEWS (Bug fixes): Describe it.
The bug was reported by table@inventati.org,
with the execute.c change mostly by Paolo Bonzini.
Diffstat (limited to 'testsuite/y-zero.sed')
-rw-r--r-- | testsuite/y-zero.sed | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/y-zero.sed b/testsuite/y-zero.sed new file mode 100644 index 0000000..6b0af7b --- /dev/null +++ b/testsuite/y-zero.sed @@ -0,0 +1 @@ +y/b/\x00/ |