[tahoe-dev] [tahoe-lafs] #734: Tahoe CLI with unicode patches applied fails when stdout is redirected
tahoe-lafs
trac at allmydata.org
Fri Jun 12 01:36:19 PDT 2009
#734: Tahoe CLI with unicode patches applied fails when stdout is redirected
-------------------------------+--------------------------------------------
Reporter: francois | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.5.0
Component: code-frontend-cli | Version: 1.4.1
Keywords: | Launchpad_bug:
-------------------------------+--------------------------------------------
Andrej Falout reported this bug on the mailing-list.
http://allmydata.org/pipermail/tahoe-dev/2009-June/001969.html
{{{
andrej at polar:/usr/src/tahoe/darcs/09-06-11_19-00/tahoe> tahoe ls
--node-directory='/home/andrej/.tahoe-allmydata.com/' tahoe:'/' >
/dev/null
Traceback (most recent call last):
File "/usr/src/tahoe/darcs/09-06-11_19-00/tahoe/support/bin/tahoe", line
8, in <module>
load_entry_point('allmydata-tahoe==1.4.1-r3926', 'console_scripts',
'tahoe')()
File
"/usr/src/tahoe/darcs/09-06-11_19-00/tahoe/src/allmydata/scripts/runner.py",
line 91, in run
rc = runner(sys.argv[1:])
File
"/usr/src/tahoe/darcs/09-06-11_19-00/tahoe/src/allmydata/scripts/runner.py",
line 78, in runner
rc = cli.dispatch[command](so)
File
"/usr/src/tahoe/darcs/09-06-11_19-00/tahoe/src/allmydata/scripts/cli.py",
line 385, in list
rc = tahoe_ls.list(options)
File
"/usr/src/tahoe/darcs/09-06-11_19-00/tahoe/src/allmydata/scripts/tahoe_ls.py",
line 125, in list
line.append(unicode_to_stdout(name) + classify)
File
"/usr/src/tahoe/darcs/09-06-11_19-00/tahoe/src/allmydata/util/stringutils.py",
line 70, in unicode_to_stdout
return s.encode(sys.stdout.encoding, 'replace')
TypeError: encode() argument 1 must be string, not None
}}}
{{{
andrej at polar:/usr/src/tahoe/darcs/09-06-11_19-00/tahoe> tahoe --version
allmydata-tahoe: 1.4.1-r3926, foolscap: 0.4.1, pycryptopp: 0.5.12, zfec:
1.4.4, Twisted: 8.2.0, Nevow: 0.9.32, zope.interface: 3.5.0, python:
2.6.0,
platform: Linux-SuSE_11.1-x86_64-64bit_ELF, sqlite: 3.6.4, simplejson:
2.0.7, argparse: 0.8.0, pyOpenSSL: 0.7, pyutil: 1.3.30, zbase32: 1.1.1,
setuptools: 0.6c12dev, pysqlite: 2.4.1
andrej at polar:/usr/src/tahoe/darcs/09-06-11_19-00/tahoe>
}}}
--
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/734>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid
More information about the tahoe-dev
mailing list