Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 597: mailcap uses locale encoding #87898

Closed
methane opened this issue Apr 5, 2021 · 2 comments
Closed

PEP 597: mailcap uses locale encoding #87898

methane opened this issue Apr 5, 2021 · 2 comments
Labels
3.10 only security fixes stdlib Python modules in the Lib dir

Comments

@methane
Copy link
Member

methane commented Apr 5, 2021

BPO 43732
Nosy @methane

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-04-05.12:35:59.869>
labels = ['library', '3.10']
title = 'PEP 597: mailcap uses locale encoding'
updated_at = <Date 2021-04-05.12:35:59.869>
user = 'https://github.com/methane'

bugs.python.org fields:

activity = <Date 2021-04-05.12:35:59.869>
actor = 'methane'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-04-05.12:35:59.869>
creator = 'methane'
dependencies = []
files = []
hgrepos = []
issue_num = 43732
keywords = []
message_count = 1.0
messages = ['390231']
nosy_count = 1.0
nosy_names = ['methane']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue43732'
versions = ['Python 3.10']

@methane
Copy link
Member Author

methane commented Apr 5, 2021

mailcap.getcaps() uses locale encoding.

fp = open(mailcap, 'r')

As my understanding, RFC 1524 uses only ASCII characters.
Can we change the encoding to ASCII or UTF-8?

@methane methane added 3.10 only security fixes stdlib Python modules in the Lib dir labels Apr 5, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@brettcannon
Copy link
Member

Closing as mailcap is slated for deprecation (#91217).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 only security fixes stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants