This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: unknown encoding -> MemoryError
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: anthonybaxter Nosy List: anthonybaxter, nnorwitz, quiver
Priority: normal Keywords:

Created on 2003-07-17 10:27 by quiver, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (2)
msg17095 - (view) Author: George Yoshida (quiver) (Python committer) Date: 2003-07-17 10:27
If you try to install a program and one of the files 
declares an unknown encoding(like 'UFT-8'),
byte-compiling the file fails and get the message, "Sorry: 
MemoryError: ()"

This message obscures the problem and makes it difficult 
to spot the problem.
In fact, it took me a while to find out that the unknown 
encoding declaration caused the trouble.

The error message needs to be more explicit.
msg17096 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-10-02 01:52
Logged In: YES 
user_id=33168

I fixed this problem in 2.5.  I am leaving it up to Anthony
whether to backport this to 2.4 or not.

Checked in as:
Misc/NEWS: 1.1383, 1.1193.2.117
Python/pythonrun.c: 2.217, 2.211.2.3
Lib/test/bad_coding.py: 1.1
Lib/test/test_coding.py: 1.1
Parser/parsetok.c: 2.37
Parser/pgenmain.c: 2.32
Parser/tokenizer.c: 2.79
History
Date User Action Args
2022-04-10 16:10:00adminsetgithub: 38866
2003-07-17 10:27:42quivercreate