[Ironpython-users] IronPython, Daily Digest 4/16/2012

no_reply at codeplex.com no_reply at codeplex.com
Tue Apr 17 09:53:50 CEST 2012


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] Reading UTF-8 file with codecs in IronPython
2. [New comment] Reading UTF-8 file with codecs in IronPython
3. [New comment] Implement winsound module
4. [New comment] Implement _bisect module

----------------------------------------------

ISSUES

1. [New issue] Reading UTF-8 file with codecs in IronPython
http://ironpython.codeplex.com/workitem/32585
User play_me_too has proposed the issue:

"I have a .csv file encoded in UTF-8, which contains both latin and cyrillic symbols (in attachments).

I'm trying to execute following script in IronPython 2.7.1:
import codecs

f = codecs.open(r"file.csv", "rb", "utf-8")
f.next()

During the execution of f.next() an exception occurs:
Traceback (most recent call last):
  File "c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\1.1\visualstudio_py_repl.py", line 492, in run_file_as_main
    code.Execute(self.exec_mod)
  File "<string>", line 4, in <module>
  File "C:\Program Files\IronPython 2.7.1\Lib\codecs.py", line 684, in next
    return self.reader.next()
  File "C:\Program Files\IronPython 2.7.1\Lib\codecs.py", line 615, in next
    line = self.readline()
  File "C:\Program Files\IronPython 2.7.1\Lib\codecs.py", line 530, in readline
    data = self.read(readsize, firstline=True)
  File "C:\Program Files\IronPython 2.7.1\Lib\codecs.py", line 477, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeEncodeError: ('unknown', '\x00', 0, 1, '')

At the same time in CPython 2.7 the script works correctly. Also in the IronPython 2.7.1 following script works fine:

import codecs

f = codecs.open(r"file.csv", "rb", "utf-8")
f.readlines()

Does anybody know what may cause such strange behavior?"-----------------

2. [New comment] Reading UTF-8 file with codecs in IronPython
http://ironpython.codeplex.com/workitem/32585
User play_me_too has commented on the issue:

"This is a repost of my question http://stackoverflow.com/questions/10123296/reading-utf-8-file-with-codecs-in-ironpython which I made because that seems to be a bug in codecs module
"-----------------

3. [New comment] Implement winsound module
http://ironpython.codeplex.com/workitem/21405
User slide_o_mix has commented on the issue:

"Fixed in 4c06d92"-----------------

4. [New comment] Implement _bisect module
http://ironpython.codeplex.com/workitem/21392
User slide_o_mix has commented on the issue:

"Fixed in 4c06d92"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120417/4e505727/attachment.html>


More information about the Ironpython-users mailing list