[issue31677] email.header uses re.IGNORECASE without re.ASCII

2019-05-17 Thread Haw Loeung
Change by Haw Loeung : -- pull_requests: +13314 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-04 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 3, 2017, at 23:51, INADA Naoki wrote: >> It's better to keep the re.IGNORECASE since the RFC also says: >> >> Both 'encoding' and 'charset' names are case-independent. Thus the >> charset name "ISO-8859-1" is equivalent to "iso-8859-1", and the >>

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: New changeset bf477a99e0c85258e6573f4ee9eda68fa1f98a31 by INADA Naoki in branch 'master': bpo-31677: email: Remove re.IGNORECASE flag (GH-3868) https://github.com/python/cpython/commit/bf477a99e0c85258e6573f4ee9eda68fa1f98a31 -- ___

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread INADA Naoki
INADA Naoki added the comment: > It's better to keep the re.IGNORECASE since the RFC also says: > > Both 'encoding' and 'charset' names are case-independent. Thus the > charset name "ISO-8859-1" is equivalent to "iso-8859-1", and the > encoding named "Q" may be spelled either "Q" or "q".

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think using re.ASCII is a good addition since RFC 2047 says: Generally, an "encoded-word" is a sequence of printable ASCII characters that begins with "=?", ends with "?=", and has two "?"s in between. It specifies a character set and an encoding m

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Alternatively, re.IGNORECASE can be removed and [qb] replaced with [QqBb]. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +3848 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2017-10-03 Thread INADA Naoki
New submission from INADA Naoki : email.header has this pattern: https://github.com/python/cpython/blob/85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3/Lib/email/header.py#L34-L43 # Match encoded-word strings in the form =?charset?q?Hello_World?= ecre = re.compile(r'''