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

Make the default encoding provided on Windows #37810

Closed
suzukihisao mannequin opened this issue Jan 21, 2003 · 5 comments
Closed

Make the default encoding provided on Windows #37810

suzukihisao mannequin opened this issue Jan 21, 2003 · 5 comments
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@suzukihisao
Copy link
Mannequin

suzukihisao mannequin commented Jan 21, 2003

BPO 671666
Nosy @tim-one, @loewis
Files
  • site.py.diff
  • 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/loewis'
    closed_at = <Date 2003-03-03.09:45:23.000>
    created_at = <Date 2003-01-21.08:36:30.000>
    labels = ['library']
    title = 'Make the default encoding provided on Windows'
    updated_at = <Date 2003-03-03.09:45:23.000>
    user = 'https://bugs.python.org/suzukihisao'

    bugs.python.org fields:

    activity = <Date 2003-03-03.09:45:23.000>
    actor = 'loewis'
    assignee = 'loewis'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2003-01-21.08:36:30.000>
    creator = 'suzuki_hisao'
    dependencies = []
    files = ['4950']
    hgrepos = []
    issue_num = 671666
    keywords = ['patch']
    message_count = 5.0
    messages = ['42509', '42510', '42511', '42512', '42513']
    nosy_count = 3.0
    nosy_names = ['tim.peters', 'loewis', 'suzuki_hisao']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue671666'
    versions = ['Python 2.3']

    @suzukihisao
    Copy link
    Mannequin Author

    suzukihisao mannequin commented Jan 21, 2003

    On Windows, some default encodings are not
    provided by Python (e.g. "cp932" in Japanese
    locale), while they are always available as "mbcs"
    in each locale. This patch ensures them usable in
    a very efficient way by aliasing them to "mbcs" in
    such a case.

    Note that IDLE does not start up on Windows unless
    the default encoding is provided. The patch makes
    IDLE operable all over the (Windows) world ;-).

    @suzukihisao suzukihisao mannequin closed this as completed Jan 21, 2003
    @suzukihisao suzukihisao mannequin assigned loewis Jan 21, 2003
    @suzukihisao suzukihisao mannequin added the stdlib Python modules in the Lib dir label Jan 21, 2003
    @suzukihisao suzukihisao mannequin closed this as completed Jan 21, 2003
    @suzukihisao suzukihisao mannequin assigned loewis Jan 21, 2003
    @suzukihisao suzukihisao mannequin added the stdlib Python modules in the Lib dir label Jan 21, 2003
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Jan 21, 2003

    Logged In: YES
    user_id=21627

    I'm rejecting this patch. The factory system default
    encoding of Python is ASCII, on all platforms (atleast, it
    should be this way; MacOS currently deviates).

    I cannot reproduce the IDLE problem; IDLE starts without
    that patch just fine.

    @suzukihisao
    Copy link
    Mannequin Author

    suzukihisao mannequin commented Jan 28, 2003

    Logged In: YES
    user_id=495142

    I can reproduce the IDLE problem on my Windows
    2000 in Japanese locale. I hope you will confirm it
    by asking your friends in Japan or other countries.

    I am afraid you missed the point. The patch does NOT change
    the default encoding of Python itself.
    It is ASCII still. It only makes the encoding of
    locale.getdefaultlocale()[1] be PROVIDED.

    Please read that short patch.

    @tim-one
    Copy link
    Member

    tim-one commented Feb 21, 2003

    Logged In: YES
    user_id=31435

    Assigning to Martin, in the hopes they can work out their
    differences.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Mar 3, 2003

    Logged In: YES
    user_id=21627

    I missed the point of this patch, indeed. Applied as site.py
    1.48.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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