mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
[lit] Make string encoding issues explicit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f34117d849
commit
05fb743a99
@ -135,7 +135,11 @@ class TerminalController:
|
||||
# For any modern terminal, we should be able to just ignore
|
||||
# these, so strip them out.
|
||||
import curses
|
||||
cap = curses.tigetstr(cap_name) or ''
|
||||
cap = curses.tigetstr(cap_name)
|
||||
if cap is None:
|
||||
cap = ''
|
||||
else:
|
||||
cap = cap.decode('ascii')
|
||||
return re.sub(r'\$<\d+>[/*]?', '', cap)
|
||||
|
||||
def render(self, template):
|
||||
|
@ -30,6 +30,7 @@ class GoogleTest(object):
|
||||
try:
|
||||
lines = lit.Util.capture([path, '--gtest_list_tests'],
|
||||
env=localConfig.environment)
|
||||
lines = lines.decode('ascii')
|
||||
if kIsWindows:
|
||||
lines = lines.replace('\r', '')
|
||||
lines = lines.split('\n')
|
||||
|
Loading…
Reference in New Issue
Block a user