[LLVMbugs] [Bug 21144] New: Unintuitive column number when source file contains UTF-8 BOM
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Thu Oct  2 15:18:49 PDT 2014
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=21144
            Bug ID: 21144
           Summary: Unintuitive column number when source file contains
                    UTF-8 BOM
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xda at cypress.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified
Created attachment 13127
  --> http://llvm.org/bugs/attachment.cgi?id=13127&action=edit
UTF-8 and Latin-1 source files
When there is a diagnostic on the first line of a file with a UTF-8 BOM, the
column number is 3 characters greater than expected:
C:\Program Files (x86)\LLVM\bin>clang -W -fsyntax-only
C:\Users\xda\Desktop\utf8.c
C:\Users\xda\Desktop\utf8.c:1:5: error: "whoops!"
<U+FEFF>#error "whoops!"
         ^
1 error generated.
C:\Program Files (x86)\LLVM\bin>clang -W -fsyntax-only
C:\Users\xda\Desktop\lat1.c
C:\Users\xda\Desktop\lat1.c:1:2: error: "whoops!"
#error "whoops!"
 ^
1 error generated.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141002/6cedeee6/attachment.html>
    
    
More information about the llvm-bugs
mailing list