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

Compile error messages and PEP-263 #38983

Closed
atsuoishimoto mannequin opened this issue Jul 31, 2003 · 5 comments
Closed

Compile error messages and PEP-263 #38983

atsuoishimoto mannequin opened this issue Jul 31, 2003 · 5 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@atsuoishimoto
Copy link
Mannequin

atsuoishimoto mannequin commented Jul 31, 2003

BPO 780725
Nosy @birkenfeld, @atsuoishimoto
Superseder
  • bpo-1031213: Use correct encoding for printing SyntaxErrors
  • 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 2007-08-23.21:52:01.116>
    created_at = <Date 2003-07-31.09:11:29.000>
    labels = ['interpreter-core']
    title = 'Compile error messages and PEP-263'
    updated_at = <Date 2007-08-23.21:52:01.114>
    user = 'https://github.com/atsuoishimoto'

    bugs.python.org fields:

    activity = <Date 2007-08-23.21:52:01.114>
    actor = 'georg.brandl'
    assignee = 'nnorwitz'
    closed = True
    closed_date = <Date 2007-08-23.21:52:01.116>
    closer = 'georg.brandl'
    components = ['Interpreter Core']
    creation = <Date 2003-07-31.09:11:29.000>
    creator = 'ishimoto'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 780725
    keywords = []
    message_count = 5.0
    messages = ['17517', '17518', '17519', '17520', '55228']
    nosy_count = 3.0
    nosy_names = ['nnorwitz', 'georg.brandl', 'ishimoto']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '1031213'
    type = None
    url = 'https://bugs.python.org/issue780725'
    versions = ['Python 2.3']

    @atsuoishimoto
    Copy link
    Mannequin Author

    atsuoishimoto mannequin commented Jul 31, 2003

    If a source file contains encoding definition and it has
    syntax errors,
    Python prints line of source file in utf-8.
    Here's simple example.

    # -- coding: Shift_JIS --
    print "XXXXX" abcdefg # "XXXXX" is Japanese ShiftJIS
    string.

    With this source file, Python prints a second line as a
    part of error
    message in utf-8 encoding. Lines printed here should be
    reconverted into
    original encoding. Also, error column that '^' character
    marks is wrong.

    @atsuoishimoto atsuoishimoto mannequin assigned nnorwitz Jul 31, 2003
    @atsuoishimoto atsuoishimoto mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jul 31, 2003
    @atsuoishimoto atsuoishimoto mannequin assigned nnorwitz Jul 31, 2003
    @atsuoishimoto atsuoishimoto mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jul 31, 2003
    @atsuoishimoto
    Copy link
    Mannequin Author

    atsuoishimoto mannequin commented Oct 1, 2004

    Logged In: YES
    user_id=463672

    I filed a patch for this bug.
    http://sourceforge.net/tracker/?
    func=detail&aid=1031213&group_id=5470&atid=305470

    Any chance this bug to be fixed in Python 2.4?

    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Oct 2, 2005

    Logged In: YES
    user_id=33168

    I'm hoping that someone more familiar with unicode could
    take a look at this. The patch looks ok to me, but I don't
    know how to test that it works. I'm inclined to accept it,
    unless I hear otherwise.

    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Oct 2, 2005

    Logged In: YES
    user_id=33168

    By "it" I meant the patch which is where I intended to make
    the previous comment.

    @birkenfeld
    Copy link
    Member

    bpo-1031213 contains a patch, marking as superseder.

    @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
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant