Issue1506

classification
Title: Jython applies pattern for determining source-code encoding even on simple evaluation of strings
Type: behaviour Severity: normal
Components: Core Versions: 2.5.1
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: r_walter
Priority: Keywords:

Created on 2009-11-20.15:31:09 by r_walter, last changed 2009-11-20.15:31:09 by r_walter.

Messages
msg5316 (view) Author: Roland Walter (r_walter) Date: 2009-11-20.15:31:08
Enter the command line interpreter and try to asign a string value that
contains the following: coding: 8bit. 

You get the error message that the encoding 8bit is unknown. This does
not happen in CPython.

This is it what you see on Jython:

Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_17
Type "help", "copyright", "credits" or license for more information.
>>> line = '"Content-Transfer-Encoding: 8bit"'
  File "<stdin>", line 1
SyntaxError: Unknown encoding: 8bit
History
Date User Action Args
2009-11-20 15:31:09r_waltercreate