[LLVMbugs] [Bug 8341] New: lit.site.cfg doesn't specify character encoding. python complains on unicode paths.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 8 14:04:25 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8341

           Summary: lit.site.cfg doesn't specify character encoding.
                    python complains on unicode paths.
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bigcheesegs at gmail.com
                CC: llvmbugs at cs.uiuc.edu


SyntaxError: Non-ASCI character '\xc3' in file
<BLAH>/llvm-2.8/tools/clang/test/lit.site.cfg on line 3, but no encoding
declared; see http://www.python.org/peps/pep-0263.html for details.

Where <BLAH> was some unicode path.

The fix in this case was to add:

# -*- coding: utf-8 -*-

But I'm not sure this is correct in the general case. People use other
encodings than utf-8.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list