[Python-bugs-list] [ python-Bugs-775985 ] Solaris error doing a print
SourceForge.net
noreply@sourceforge.net
Tue, 22 Jul 2003 17:26:56 -0700
Bugs item #775985, was opened at 2003-07-22 17:18
Message generated for change (Comment added) made by hobbs
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.
----------------------------------------------------------------------
Comment By: Jeffrey Hobbs (hobbs)
Date: 2003-07-22 17:26
Message:
Logged In: YES
user_id=72656
python 2.3rc1, build --enable-shared.
Solaris uname -a:
SunOS knife 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-
250
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=775985&group_id=5470