• Stefan Behnel's avatar
    Using Py_UNICODE to store lone surrogates makes Py3 join surrogate pairs on... · 13eb4498
    Stefan Behnel authored
    Using Py_UNICODE to store lone surrogates makes Py3 join surrogate pairs on 16-bit Unicode platforms (Windows) when reading them back in, although we correctly processed them before.
    Instead, we now use the "unicode_escape" codec to store byte strings, because it can return surrogate characters (which the other codecs cannot).
    13eb4498
ExprNodes.py 536 KB