https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91843
--- Comment #1 from Lewis Hyatt <lhyatt at gmail dot com> --- Created attachment 46905 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46905&action=edit Patch to implement the 3rd option The last option from my previous message seems, at least, unlikely to break anything. Attached patch resolves this issue. It also fixes a small unrelated bug that prevents the first byte prior to any hex-escaped byte from being output, which was revealed by new self-test cases that I have added.