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

IDLE - allow shell to support different locales #58534

Closed
serwy mannequin opened this issue Mar 15, 2012 · 3 comments
Closed

IDLE - allow shell to support different locales #58534

serwy mannequin opened this issue Mar 15, 2012 · 3 comments
Labels
topic-IDLE type-feature A feature request or enhancement

Comments

@serwy
Copy link
Mannequin

serwy mannequin commented Mar 15, 2012

BPO 14326
Nosy @terryjreedy, @ezio-melotti, @serwy, @asvetlov
Dependencies
  • bpo-15809: 2.7 IDLE console uses incorrect encoding.
  • 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 = <Date 2017-06-23.07:44:06.025>
    created_at = <Date 2012-03-15.19:15:20.647>
    labels = ['expert-IDLE', 'type-feature']
    title = 'IDLE - allow shell to support different locales'
    updated_at = <Date 2017-06-23.07:44:06.024>
    user = 'https://github.com/serwy'

    bugs.python.org fields:

    activity = <Date 2017-06-23.07:44:06.024>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-06-23.07:44:06.025>
    closer = 'terry.reedy'
    components = ['IDLE']
    creation = <Date 2012-03-15.19:15:20.647>
    creator = 'roger.serwy'
    dependencies = ['15809']
    files = []
    hgrepos = []
    issue_num = 14326
    keywords = []
    message_count = 3.0
    messages = ['155939', '223126', '228169']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'ezio.melotti', 'roger.serwy', 'asvetlov', 'BreamoreBoy']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue14326'
    versions = ['Python 3.5']

    @serwy
    Copy link
    Mannequin Author

    serwy mannequin commented Mar 15, 2012

    Per Martin's request, this issue has been separated from bpo-14200.

    The IDLE shell presently has an effective locale of "BMP UTF8" due to a limitation in Tkinter, described in bpo-12342.

    IDLE should support different output codecs, like "ascii" and "utf8". In order to work around Tkinter's limitations, unsupported characters would be replaced (this is related to bpo-14304).

    This amounts to adding some extra code to OutputWindow's write() to raise encoding errors if the string contains unsupported characters.

    @serwy serwy mannequin added topic-IDLE type-feature A feature request or enhancement labels Mar 15, 2012
    @BreamoreBoy
    Copy link
    Mannequin

    BreamoreBoy mannequin commented Jul 15, 2014

    @terry one that appears to have escaped your eagle eye :)

    @terryjreedy
    Copy link
    Member

    I do not understand this issue. Locales (the title) and codecs (the message) are different things. A Tk Text widget, with Idle's wrapper, is essentially a BMP terminal. That is one thing that makes Idle's Shell better than Window's command prompt. An ascii codec would add to tk's limitations, not work around them. bpo-14304 does what I think is needed.

    Pending some clarification of the proposal and benefits, I think this should be closed.

    @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
    topic-IDLE type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant