[cfe-dev] Russian characters lead to wrong SourceLocation start/end!

Anton Smirnov dev at antonsmirnov.name
Mon Jan 6 23:29:42 PST 2014


I've just found that if UnsavedFile has russian characters in it's content,
SourceLocation's start/end is calculated wrong - each symbol length is
calculated to be 2 bytes instead of 1. This leads to wrong end and all
other tokens locatoin while clang_tokenize().

I've check it on 3.3 on mac and linux (android via JNI) since i can't see
3.4 release (though it was scheduled to be released in december) notes and

Any confirmation/suggestions?

PS. I've also posted bug report but i can't see it yet.

Regards, Anton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140107/7f6cf8d6/attachment.html>

More information about the cfe-dev mailing list