Stop unescaping strings with commandline -b

The fix for #2075 inadvertently started unescaping the strings emitted
from `commandline -b`. Only strings emitted with the `-o` flag are
supposed to be unescaped.

Fixes #2210.
This commit is contained in:
Kevin Ballard
2016-01-10 17:13:08 -08:00
parent 43728fe7a0
commit 1dac0041d5
5 changed files with 40 additions and 3 deletions

View File

@@ -234,9 +234,7 @@ static void write_part(const wchar_t *begin,
}
// debug( 0, L"woot2 %ls -> %ls", buff, esc );
wcstring tmp = wcstring(begin, end - begin);
unescape_string_in_place(&tmp, UNESCAPE_INCOMPLETE);
streams.out.append(tmp);
streams.out.append(begin, end - begin);
streams.out.append(L"\n");
}