[PATCH] D50201: llvm-lit.in: specify file encoding to UTF-8

Dāvis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 14:27:55 PDT 2018


davispuh created this revision.
Herald added a subscriber: llvm-commits.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D50201

Files:
  utils/llvm-lit/llvm-lit.in


Index: utils/llvm-lit/llvm-lit.in
===================================================================
--- utils/llvm-lit/llvm-lit.in
+++ utils/llvm-lit/llvm-lit.in
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-42 -*-
 
 import os
 import sys


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50201.158837.patch
Type: text/x-patch
Size: 254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180802/ccae5f7b/attachment.bin>


More information about the llvm-commits mailing list