New submission from gonegown <[email protected]>:
I have python 3.1.2 fetched from the main site.
imagine two source files:
a.py:
-------
# coding: cp1251
import b;
print('A');
-------
b.py:
-------
print('B');
-------
Both reside in the same directory containing at least one non-ascii character
(try 0xdb) in the _path_.
import will fail with an empty error!
#coding here works fine with utf-8 and fails using any other one
now tell me how the hell can file system encoding be related to file content
encoding?!
I've attached the source
----------
components: None
files: pybug-import-coding.zip
messages: 107731
nosy: gonegown
priority: normal
severity: normal
status: open
title: import + coding = failure (3.1.2/win32)
type: crash
versions: Python 3.1
Added file: http://bugs.python.org/file17655/pybug-import-coding.zip
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8988>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com