[Python-bugs-list] [ python-Bugs-808719 ] IDLE and encodings

SourceForge.net noreply at sourceforge.net
Thu Sep 18 14:05:53 EDT 2003


Bugs item #808719, was opened at 2003-09-18 19:08
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=808719&group_id=5470

Category: IDLE
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Cowles (mdcowles)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE and encodings

Initial Comment:
A person from Belgium reported this problem in IDLE to 

python-help:



$ python  idle

Traceback (most recent call last):

  File "idle", line 10, in ?

    import PyShell

  File "PyShell.py", line 25, in ?

    from EditorWindow import EditorWindow, fixwordbreaks

  File "EditorWindow.py", line 39, in ?

    class EditorWindow:

  File "EditorWindow.py", line 43, in EditorWindow

    from IOBinding import IOBinding

  File "IOBinding.py", line 54, in ?

    codecs.lookup(encoding)

  File

"/ap/tools/storage/python/v2.2.2.224_ap/lib/python2.2/

encodings/__init__.py",



line 51, in search_function

    mod = __import__(modname,globals(),locals(),'*')

ValueError: Empty module name



It seems that checking for an encoding of "" as well as None 

in IOBinding.py fixes the problem. I'll attach his small patch.

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

>Comment By: Martin v. Löwis (loewis)
Date: 2003-09-18 20:05

Message:
Logged In: YES 
user_id=21627

Can you report what operating system this was on, and what

locale setting was in place?



What is the value of locale.getpreferredencoding on that system?

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

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



More information about the Python-bugs-list mailing list