[Bug 11471] printf %q format not supported (yet)

bugzilla at busybox.net bugzilla at busybox.net
Fri Nov 2 13:32:25 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=11471

--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
(In reply to bbb30 from comment #0)
> I'm running busybox on android kitkat with a terminal emulator. Sometime files I try to parse contain characters that cause grief. For example, a typographical close quote (think 66-99 style quotes), when echo'd, printf'd %s or a line with it displayed via set -x in sh or bash, causes multiple duplicate lines of the same output, followed by a terminal hang.

This sounds like a bug in the terminal emulator - it cannot handle Unicode
character 0x201D, or byte sequence 0xe2,0x80,0x9d in UTF8 encoding. File a bug
with them.

print %q

$ printf '%q\n' '“teeth bone”'
“teeth\ bone”

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list