https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91853
--- Comment #7 from lhyatt at gcc dot gnu.org --- Author: lhyatt Date: Wed Dec 11 14:52:31 2019 New Revision: 279226 URL: https://gcc.gnu.org/viewcvs?rev=279226&root=gcc&view=rev Log: Adds multibyte awareness to pretty-print.c 2019-12-11 Lewis Hyatt <lhy...@gmail.com> PR 91853 * pretty-print.c (pp_quoted_string): Avoid hex-escaping valid multibyte input. Fix off-by-one-bug printing the last byte before a hex-escaped output. (pp_character): Don't apply line wrapping in the middle of multibyte characters. (test_utf8): New test. (pretty_print_c_tests): Call the new test. Modified: trunk/gcc/ChangeLog trunk/gcc/pretty-print.c