﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
734	Tahoe CLI with unicode patches applied fails when stdout is redirected	francois	francois	"Andrej Falout reported this bug on the mailing-list.

http://allmydata.org/pipermail/tahoe-dev/2009-June/001969.html

{{{
andrej@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@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@polar:/usr/src/tahoe/darcs/09-06-11_19-00/tahoe>
}}}"	defect	closed	major	1.7.0	code-frontend-cli	1.4.1	invalid	i18n unicode		
