[tahoe-dev] [tahoe-lafs] #534: "tahoe cp" command encoding issue

Andrej Falout andrej at falout.org
Thu Feb 26 01:07:36 UTC 2009


OK, got it running: Is this expected behavior:

twisted.python.usage.UsageError: Filename 'Rotha�s Lament.mid' cannot be
decoded using the current encoding of your filesystem (UTF-8). Please rename
this file.

Thanks,
Andrej


On Wed, Feb 25, 2009 at 11:59 PM, Francois Deppierraz
<francois at ctrlaltdel.ch> wrote:

> Andrej Falout wrote:
>
> >   File "/usr/src/tahoe/tahoe/src/allmydata/scripts/tahoe_backup.py",
> > line 241, in verboseprint
> >     print >>self.options.stdout, unicode_to_stdout(msg)
> >   File "/usr/src/tahoe/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
>
> Ok, it looks like Python was not able to figure out the encoding used by
> your terminal. I thought that sys.stdout.encoding would return 'ascii'
> instead of None in that case.
>
> Can you try to apply the attached patch ? It's a standard patch this
> time, you should be able to apply it using "patch -p1 <
> override-none-encoding.patch".
>
> François
>
> _______________________________________________
> tahoe-dev mailing list
> tahoe-dev at allmydata.org
> http://allmydata.org/cgi-bin/mailman/listinfo/tahoe-dev
>
>


-- 
Andrej Falout
AU: +61 (410) 463 735 NZ: +64 (21) 0256 6825 US: +1 (360) 488 0970
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20090226/f9f1a4c7/attachment.html>


More information about the tahoe-dev mailing list