[New-bugs-announce] [issue30672] PEP 538: Unexpected locale behaviour on Mac OS X

Nick Coghlan report at bugs.python.org
Thu Jun 15 05:23:53 EDT 2017


New submission from Nick Coghlan:

To get the new PEP 538 tests passing on Mac OS X (see [1,2]), I ended up having to skip the following test scenarios:

    LANG=UTF-8 (behaves like LANG=C, *not* LC_CTYPE=UTF-8)
    LANG=POSIX (behaves like a distinct locale is set, not LANG=C)
    LC_CTYPE=POSIX (behaves like a distinct locale is set, not LANG=C)
    LC_ALL=POSIX (behaves like a distinct locale is set, not LANG=C)

However, I'm not sure whether that should be diagnosed as a pure testing problem, where we change the test's expectations to match the current behaviour, or a bug in the PEP 538 implementation, where we should be updating it to produce the behaviour that the tests were originally expecting.


[1] https://github.com/python/cpython/commit/4563099d28e832aed22b85ce7e2a92236df03847
[2] https://github.com/python/cpython/commit/7926516ff95ed9c8345ed4c4c4910f44ffbd5949 )

----------
components: Tests
messages: 296076
nosy: haypo, ncoghlan, ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: test needed
status: open
title: PEP 538: Unexpected locale behaviour on Mac OS X
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30672>
_______________________________________


More information about the New-bugs-announce mailing list