[llvm-bugs] [Bug 25366] New: Emacs clang-format.el doesn't work for non UTF8 encoding

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 31 11:50:40 PDT 2015


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

            Bug ID: 25366
           Summary: Emacs clang-format.el doesn't work for non UTF8
                    encoding
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: capak at inputwish.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

Reformated buffer region using defun clang-format-region is broken (cut words,
insert spaces, etc..).

clang-format binary do formatting source code correctly (class
Formatter::Encoding is correctly setup on encoding::Encoding_Unknown).

Maybe -output-replacement-xml switch produce wrong replacement offset and
length numbers or Emacs lisp script clang-format.el contains terrible bug
(clang-format--replace / clang-format-region ?).

My only emacs (25.0) coding setup:
(prefer-coding-system 'iso-latin-2-unix)
(set-terminal-coding-system 'iso-latin-2-unix)
(set-keyboard-coding-system 'iso-latin-2-unix)

Tried on emacs-24 with same results.

-- 
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/4cf17f31/attachment.html>


More information about the llvm-bugs mailing list