[Python-bugs-list] [ python-Bugs-775985 ] Solaris error doing a print
SourceForge.net
noreply@sourceforge.net
Tue, 22 Jul 2003 17:18:06 -0700
Bugs item #775985, was opened at 2003-07-23 10:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775985&group_id=5470
Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 7
Submitted By: Mark Hammond (mhammond)
Assigned to: Nobody/Anonymous (nobody)
Summary: Solaris error doing a print
Initial Comment:
As seen on Jeff Hobb's box.
print "Registering '%s' (%s)" % (reg_contractid, fname)
File
"/usr/local/python-2.3/lib/python2.3/encodings/__init__.py",
line 84, in search_function
globals(), locals(), _import_tail)
ValueError: Empty module name
It seems that this shell has an empty "LANG" var setup
- deleting this var seems to solve the problem.
Looking in sysmodule.c, I see:
if(codeset && isatty(fileno(stdin))){
(and a similar one for stdout). Should this be:
if(codeset && *codeset && isatty(fileno(stdin))){
to prevent an empty name? Or better, should we check
the encoding is actually installed?
I will mail Jeff and ask him to attach comments on the
version or anything else.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775985&group_id=5470