On 05/02/2018 08:15 PM, Ryan Finnie wrote:
> Hmm, I can't reproduce this.  What did the locale look like in the build
> environment?  That test specifically checks for UTF-8 in $LANG and is
> skipped if not present.
> 
>     @unittest.skipUnless(
>         (
>             os.environ.get('LANG') and
>             ('UTF-8' in os.environ.get('LANG'))
>         ), 'UTF-8 environment required'
>     )
>     def test_notice_utf8(self):
>         self.run_listener_client(['--notice=UTF-8 \u2603'])
> 
> I've tried this with both normal locale for me (en_US.UTF-8), and LANG=C.

Ah, I was able to reproduce with LANG=invalid.UTF-8.  I'll change the
test to look for locale.getlocale()[1] == 'UTF-8' (which normalizes an
invalid locale to None), but the rebuild environment should have a valid
locale setup.  (Though it would be interesting to have another rebuild
test which specifically tested for invalid locale -> valid locale ->
LANG=C.)

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to