[Python-bugs-list] [ python-Bugs-543344 ] Interpreter crashes when recoding

noreply@sourceforge.net noreply@sourceforge.net
Sat, 13 Apr 2002 01:36:02 -0700


Bugs item #543344, was opened at 2002-04-13 04:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=543344&group_id=5470

Category: Unicode
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin v. Löwis (loewis)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Interpreter crashes when recoding

Initial Comment:
Python crashes when executing

import codecs
f = open("syllables", "w+")
f2 = codecs.EncodedFile(f, "unicode_internal", "utf-8")
f2.write(u"a")
f2.close()


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

>Comment By: Tim Peters (tim_one)
Date: 2002-04-13 04:36

Message:
Logged In: YES 
user_id=31435

Here's a clue from a debug-mode build:

>>> import codecs
[9477 refs]
>>> f = open("syllables", "w+")
[9483 refs]
>>> f2 = codecs.EncodedFile(f, "unicode_internal", "utf-8")
[9830 refs]
>>> f2.write(u"a")
C:\Code\python\Objects\tupleobject.c:147 negative ref 
count -1


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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=543344&group_id=5470