Skip to content

Commit ec1550c

Browse files
committed
[validation] Fix line-directive validation test
This was disabled due to: ``` Unable to decode the command from the command line: UnicodeEncodeError: 'utf-8' codec can't encode characters in position 13-20: surrogates not allowed ``` Note that this error isn't in `line-directive`, but in Python decoding surrogates from the command line. Not sure why that's not allowed, but printing from within a script works so change to that. We already set `PYTHONIOENCODING=UTF8` in the environment in `test/lit.cfg`, which makes sure stdout is UTF8 as opposed to ASCII. Resolves rdar://92613094.
1 parent afd3f17 commit ec1550c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
// REQUIRES: rdar92613094
1+
// RUN: %empty-directory(%t)
2+
// RUN: split-file %s %t
23

34
// RUN: %{python} %utils/line-directive
4-
// RUN: %{python} %utils/line-directive -- %{python} -c "print('你好')"
5+
// RUN: %{python} %utils/line-directive -- %{python} %t/unicode.py
6+
7+
//--- unicode.py
8+
print('你好')

0 commit comments

Comments
 (0)