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

distutil's build_scripts doesn't read utf-8 in all locales #54096

Closed
hagen mannequin opened this issue Sep 17, 2010 · 4 comments
Closed

distutil's build_scripts doesn't read utf-8 in all locales #54096

hagen mannequin opened this issue Sep 17, 2010 · 4 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@hagen
Copy link
Mannequin

hagen mannequin commented Sep 17, 2010

BPO 9887
Nosy @tarekziade, @merwok
Superseder
  • bpo-9561: distutils: set encoding to utf-8 for input and output files
  • 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 = 'https://github.com/tarekziade'
    closed_at = <Date 2010-09-21.10:33:34.680>
    created_at = <Date 2010-09-17.13:19:51.593>
    labels = ['library']
    title = "distutil's build_scripts doesn't read utf-8 in all locales"
    updated_at = <Date 2010-09-21.10:33:34.661>
    user = 'https://bugs.python.org/hagen'

    bugs.python.org fields:

    activity = <Date 2010-09-21.10:33:34.661>
    actor = 'eric.araujo'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2010-09-21.10:33:34.680>
    closer = 'eric.araujo'
    components = ['Distutils', 'Distutils2']
    creation = <Date 2010-09-17.13:19:51.593>
    creator = 'hagen'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 9887
    keywords = []
    message_count = 4.0
    messages = ['116660', '116991', '117032', '117044']
    nosy_count = 3.0
    nosy_names = ['tarek', 'eric.araujo', 'hagen']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '9561'
    type = None
    url = 'https://bugs.python.org/issue9887'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    @hagen
    Copy link
    Mannequin Author

    hagen mannequin commented Sep 17, 2010

    "LANG=C python3 setup.py build_scripts" chokes on UTF-8 encoded scripts. The problem is that "copy_scripts" uses "open" without specifying an encoding. This issue may be related to bpo-9561.

    @hagen hagen mannequin assigned tarekziade Sep 17, 2010
    @hagen hagen mannequin added the stdlib Python modules in the Lib dir label Sep 17, 2010
    @merwok
    Copy link
    Member

    merwok commented Sep 20, 2010

    Does POSIX mandate an encoding when using the C locale?

    @hagen
    Copy link
    Mannequin Author

    hagen mannequin commented Sep 21, 2010

    Why does this matter? PEP-3120 specifies UTF-8 as the default source encoding.

    @merwok
    Copy link
    Member

    merwok commented Sep 21, 2010

    Okay. Then this bug is part of bpo-9561.

    @merwok merwok closed this as completed Sep 21, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant