Issue2295

classification
Title: Importation of modules with str names with non-ASCII characters fails
Type: Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, zyasoft
Priority: Keywords:

Created on 2015-03-19.12:48:40 by Arfrever, last changed 2015-03-19.12:50:39 by Arfrever.

Messages
msg9677 (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) Date: 2015-03-19.12:48:40
Importation of modules with non-ASCII characters works in CPython 2.7 when module name is specified as a str object (e.g. "ćśź"), but not unicode object (e.g. u"ćśź").

$ touch /tmp/ćśź.py
$ cat test.py
# coding: utf-8
import sys
sys.path.append("/tmp")
module = __import__("ćśź")
print(module)
$ python2.7 test.py
<module 'ćśź' from '/tmp/ćśź.py'>
$ jython2.7 test.py
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    module = __import__("ćśź")
ImportError: No module named ćśź
History
Date User Action Args
2015-03-19 12:50:39Arfreversettitle: Importation of modules with non-ASCII characters fails -> Importation of modules with str names with non-ASCII characters fails
2015-03-19 12:48:40Arfrevercreate