[gccgo] Fix range over string with invalid UTF-8 character

Ian Lance Taylor iant@google.com
Tue Dec 8 07:09:00 GMT 2009


In Go, a range over a string with an invalid UTF-8 character should
return the replacement character and advance the index by 1.  The
runtime library function was incorrectly skipping to the end of the
string.  This patch fixes it.  Committed to gccgo branch.

Ian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo1.patch
Type: text/x-diff
Size: 364 bytes
Desc: range
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091208/845ef8cf/attachment.bin>


More information about the Gcc-patches mailing list