From: George Karpenkov Date: Mon, 14 Jan 2019 20:02:11 +0000 (+0000) Subject: [lit] llvm-lit.in: specify file encoding to UTF-8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b787d748299e03623273191691b7360710044a1;p=llvm [lit] llvm-lit.in: specify file encoding to UTF-8 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 --- diff --git a/utils/llvm-lit/llvm-lit.in b/utils/llvm-lit/llvm-lit.in index de67b18e52c..8700d15677d 100755 --- a/utils/llvm-lit/llvm-lit.in +++ b/utils/llvm-lit/llvm-lit.in @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- import os import sys