patch: fixit for characters with invalid source encoding

Eli Friedman eli.friedman at
Tue Aug 20 20:35:43 PDT 2013

On Tue, Aug 20, 2013 at 8:08 PM, Nick Lewycky <nlewycky at> wrote:

> The attached patch adds a fixit for invalid characters to replace them
> with the equivalent \xNN code. Please review!

You might want to put a warning on top of the test that this file isn't
valid UTF-8, despite appearing to be a text file.

Otherwise, looks good; nice idea!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the cfe-commits mailing list