]> granicus.if.org Git - llvm/commitdiff
[lit] llvm-lit.in: specify file encoding to UTF-8
authorGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 14 Jan 2019 20:02:11 +0000 (20:02 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Mon, 14 Jan 2019 20:02:11 +0000 (20:02 +0000)
This is needed because otherwise if source dir is at location whose path
contains non-ASCII character then python will complain about
SyntaxError.

SyntaxError: Non-ASCII character '\xc4' in file
/home/D?vis/libc++/src/build/bin/llvm-lit on line 16, but no encoding
declared; see http://python.org/dev/peps/pep-0263/ for details

Patch by davispuh

Differential Revision: https://reviews.llvm.org/D50201

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351113 91177308-0d34-0410-b5e6-96231b3b80d8

utils/llvm-lit/llvm-lit.in

index de67b18e52c1d0d98440fabc17a9a8c9670c2fde..8700d15677d9b5001d59ca85e840089cbcea9732 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 import os
 import sys