[issue1685] linecache .updatecache fails on utf8 encoded files

2009-06-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This was probably fixed by issue4016 (r70587) -- nosy: +amaury.forgeotdarc resolution: -> out of date status: open -> closed ___ Python tracker _

[issue1685] linecache .updatecache fails on utf8 encoded files

2009-06-17 Thread Pablo Torres Navarrete
Pablo Torres Navarrete added the comment: Cannot reproduce on Ubuntu 9.04 with py3k at revision 73267: $ ./python Python 3.1rc1+ (py3k:73267, Jun 7 2009, 14:45:03) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pdb [49404 refs] >>> d =

[issue1685] linecache .updatecache fails on utf8 encoded files

2009-04-25 Thread Daniel Diniz
Daniel Diniz added the comment: Cannot confirm with py3k on Linux, attaching the file I tested against. I'll try to come up with a rough test_linecache to help fixing a couple of issues :) -- nosy: +ajaksu2 Added file: http://bugs.python.org/file13766/line.py _

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-11-11 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-08-06 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: After a look at the patch and at linecache.py, some comments: - 'rbU' is strange, the 'U' flag has no effect for binary files, so it should just be 'rb' instead - I'm surprised we don't have a test_linecache.py in Lib/test - The following line

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-07-30 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: re now handles bytes, so what's next? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-05-11 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This should be fixed differently (directly applying the RE to bytes objects), but it needs a re that handles bytes first. -- assignee: -> georg.brandl nosy: +georg.brandl priority: high -> critical __ T

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-01-30 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +easy, patch priority: -> high type: -> behavior __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-l

[issue1685] linecache .updatecache fails on utf8 encoded files

2008-01-29 Thread Georgij Kondratjev
Changes by Georgij Kondratjev: -- nosy: +orivej __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1685] linecache .updatecache fails on utf8 encoded files

2007-12-28 Thread PyScripter
PyScripter added the comment: Patch file attached Added file: http://bugs.python.org/file9034/linecache.py.patch __ Tracker <[EMAIL PROTECTED]> __ linecache.py.patch Description: Binary data

[issue1685] linecache .updatecache fails on utf8 encoded files

2007-12-28 Thread PyScripter
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

[issue1685] linecache .updatecache fails on utf8 encoded files

2007-12-21 Thread PyScripter
New submission from PyScripter: linecache.updatecache works as follows after it finds a module name: fp = open(fullname, 'rU') lines = fp.readlines() fp.close() It then tries to detect a file encoding comment... The problem is that readlines fails with a UnicodeDecodeError if the file is utf8