[llvm-bugs] [Bug 25364] New: clang-format for Emacs breaks with non-ASCII characters

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 31 07:03:17 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25364

            Bug ID: 25364
           Summary: clang-format for Emacs breaks with non-ASCII
                    characters
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: davidjsa at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

If a source file contains non-ASCII characters the Emacs integration of
clang-format breaks.

For example, for the file containing `// ☺` the command `clang-format-region`
fails with the error message "(clang-format failed with code 1: error: invalid
length 6, offset + length (6) is outside the file.)".

-- 
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/20151031/fb244e47/attachment.html>


More information about the llvm-bugs mailing list