diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-04-03 15:24:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-03 15:24:45 -0700 |
| commit | dc9afb66cf013dd8f80dfeffb595de1f27ef7a89 (patch) | |
| tree | 6207a41a61ca2a502bdb8f5423e2b59a45ddac2b /t/t3902-quoted.sh | |
| parent | ac340a635dc8f338ee4ad6a6f74c974cdcda7217 (diff) | |
| parent | d48c5d5a4c801dfe9acd5dc4a3c1b94430883f52 (diff) | |
| download | git-dc9afb66cf013dd8f80dfeffb595de1f27ef7a89.tar.xz | |
Merge branch 'ps/dash-buggy-0.5.13-workaround'
The way dash 0.5.13 handles non-ASCII contents in here-doc
is buggy and breaks our existing tests, which unfortunately
have been rewritten to avoid triggering the bug.
* ps/dash-buggy-0.5.13-workaround:
t9300: work around partial read bug in Dash v0.5.13
t: work around multibyte bug in quoted heredocs with Dash v0.5.13
Diffstat (limited to 't/t3902-quoted.sh')
| -rwxr-xr-x | t/t3902-quoted.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/t/t3902-quoted.sh b/t/t3902-quoted.sh index f528008c36..8660ec5cb0 100755 --- a/t/t3902-quoted.sh +++ b/t/t3902-quoted.sh @@ -60,16 +60,18 @@ With SP in it "\346\277\261\351\207\216\347\264\224" EOF -cat >expect.raw <<\EOF +# NOTE: do not quote this heredoc, Dash 0.5.13 has a bug with heredocs +# that contain multibyte chars. +cat >expect.raw <<EOF Name -"Name and a\nLF" -"Name and an\tHT" -"Name\"" +"Name and a\\nLF" +"Name and an\\tHT" +"Name\\"" With SP in it -"濱野\t純" -"濱野\n純" +"濱野\\t純" +"濱野\\n純" 濱野 純 -"濱野\"純" +"濱野\\"純" 濱野/file 濱野純 EOF |
