[issue28764] test_mailbox fails when run as a non-root user on Android API 24

2020-11-29 Thread Florian Klink


Change by Florian Klink :


--
nosy: +flokli
nosy_count: 3.0 -> 4.0
pull_requests: +22433
pull_request: https://github.com/python/cpython/pull/23553

___
Python tracker 
<https://bugs.python.org/issue28764>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42433] mailbox.mbox fails on non ASCII characters

2020-11-29 Thread Florian Klink


Florian Klink  added the comment:

I opened https://github.com/python/cpython/pull/23553 - PTAL.

I made this an enhancement for 3.10 - but it could probably also be backported 
to older versions

--
keywords: +patch
message_count: 4.0 -> 5.0
pull_requests: +22434
stage:  -> patch review
type:  -> enhancement
versions:  -Python 3.8, Python 3.9
pull_request: https://github.com/python/cpython/pull/23553

___
Python tracker 
<https://bugs.python.org/issue42433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42433] mailbox.mbox fails on non ASCII characters

2020-12-05 Thread Florian Klink


Florian Klink  added the comment:

Based on https://bugs.python.org/issue42433#msg382169 I added back the versions 
that bug is present.

The PR is up to and appropriately linked (I think?) - let me know if there's 
anything left to be done from my side.

--
versions: +Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue42433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42433] mailbox.mbox fails on non ASCII characters

2020-11-22 Thread Florian Klink


New submission from Florian Klink :

I'm importing some mbox archives into my maildirs, and use `mailbox.mbox` to 
parse archives created by pipermail.

Some of these archives seem to contain non-ascii characters, and python just 
throws a `UnicodeDecodeError` and refuses to process the archive.

Reproducer: (successful on 3.7.9, 3.8.5, 3.9.0)

```
curl https://lists.freedesktop.org/archives/systemd-devel/2016-January.txt.gz | 
zcat > mbox.txt
python3 -c "import mailbox; mb = mailbox.mbox('mbox.txt');mb.items()"
```

--
components: email
messages: 381607
nosy: barry, flokli, r.david.murray
priority: normal
severity: normal
status: open
title: mailbox.mbox fails on non ASCII characters
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue42433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42433] mailbox.mbox fails on non ASCII characters

2020-11-22 Thread Florian Klink


Florian Klink  added the comment:

Yeah, not questioning here this might be badly formatted, but given these files 
are out there, and the parser is somewhat forgiving in other cases, it should 
be tolerant there as well.

--

___
Python tracker 
<https://bugs.python.org/issue42433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com