[pypy-dev] Help needed: are you running windows with a non-ascii interface?

Armin Rigo armin.rigo at gmail.com
Wed Feb 26 08:28:09 EST 2020


Hi Matti,

On Wed, 26 Feb 2020 at 11:59, Matti Picus <matti.picus at gmail.com> wrote:
> - check what pypy3 returns for time.tzname? There is no code to decode
> it, so it is probably a sting of bytes. What encoding is it in?

On a french Windows I get, in CPython 3.6, a tuple of two unicodes
that seem correct; and on PyPy3 I get instead a tuple of two unicodes
that are very incorrect.  CPython3.6 (first line) versus PyPy3.6:

('Europe de l\x92Ouest', 'Europe de l\x92Ouest (heure d\x92été)')
('Europe de l\Ufffff44fuest (heure d\Ufffff4e9t\u79c0', 'Europe de
l\Ufffff44fuest (heure d\Ufffff4e9t\x39')

In particular the first escaped character \Ufffff44f really should be
two characters, '\x92O', and there is similar mangling later.  Also
the first of the two unicodes is much shorter on CPython3.  Finally,
the very last character is rendered as '\x39' but I have no clue why
it is even rendered as '\x39' instead of just the ascii '9'.

So yes, we have more than one bug here.


Armin


More information about the pypy-dev mailing list