Re: Fwd: g++ off-by-one bug in utf16 conversion

2014-11-28 Thread Joseph Myers
Thanks, I've added a testcase and committed this patch. Bootstrapped with no regressions on x86_64-unknown-linux-gnu. libcpp: 2014-11-29 John Schmerge PR preprocessor/41698 * charset.c (one_utf8_to_utf16): Do not produce surrogate pairs for 0x. gcc/testsuite: 2014

Fwd: g++ off-by-one bug in utf16 conversion

2014-10-26 Thread John Schmerge
I believe I sent this yesterday to the incorrect list... -- Forwarded message -- From: John Schmerge Date: Sun, Oct 26, 2014 at 1:58 AM Subject: g++ off-by-one bug in utf16 conversion To: gcc-b...@gcc.gnu.org Hey guys, I came across this bug earlier today in implementing some