[issue1685] linecache .updatecache fails on utf8 encoded files

PyScripter report at bugs.python.org
Sat Dec 29 05:14:09 CET 2007


PyScripter added the comment:

To reproduce the error:

a) Save the following file in utf-8 format as c:\temp\module1.py
# -*- coding: utf-8 -*-
print("ψ")

b) Run the following script:
import pdb
d = pdb.Pdb()
filename = r"c:\Temp\module1.py"
print(d.set_break(filename,1))

Expected result
None

Actual Result
Line c:\temp\module1.py:1 does not exist

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1685>
__________________________________


More information about the Python-bugs-list mailing list