Files
swift-mirror/validation-test/Python/line-directive.swift
Ben Barham ec1550c92a [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.
2023-08-30 11:52:21 -07:00

9 lines
196 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
// RUN: %{python} %utils/line-directive
// RUN: %{python} %utils/line-directive -- %{python} %t/unicode.py
//--- unicode.py
print('')