[cfe-commits] Skip UTF-8 BOM

Chris Lattner clattner at apple.com
Fri Mar 18 13:22:28 PDT 2011


On Mar 17, 2011, at 11:06 AM, Anton Korobeynikov wrote:

>> I also had some files which had UTF-16 BOM at start, does it make sense to
>> handle that also?
> As soon as someone else will implement UTF-16 in clang - yes. Right
> now clang supports utf-8 only, so skipping utf-8 BOM is perfectly ok.

This looks great to me Anton, thanks for implementing this.  Please commit it, *with* a testcase :)

-Chris



More information about the cfe-commits mailing list