<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Unintuitive column number when source file contains UTF-8 BOM"
   href="http://llvm.org/bugs/show_bug.cgi?id=21144">21144</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unintuitive column number when source file contains UTF-8 BOM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xda@cypress.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=13127" name="attach_13127" title="UTF-8 and Latin-1 source files">attachment 13127</a> <a href="attachment.cgi?id=13127&action=edit" title="UTF-8 and Latin-1 source files">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>