[tahoe-dev] [allmydata.org "Tahoe"] #534: "tahoe cp" command encoding issue
allmydata.org Tahoe
trac at allmydata.org
Sat Nov 15 16:11:22 PST 2008
#534: "tahoe cp" command encoding issue
-----------------------------------+----------------------------------------
Reporter: francois | Owner:
Type: defect | Status: reopened
Priority: minor | Milestone: undecided
Component: code-frontend-cli | Version: 1.2.0
Resolution: | Keywords: cp encoding
Launchpad_bug: |
-----------------------------------+----------------------------------------
Comment(by francois):
Replying to [comment:8 warner]:
> What do you think about the idea of using escaped binary strings instead
of native UTF-8 in those filenames, i.e. removing the "coding=utf-8" line
from the beginning of the file and using {{{"\xc3\x84rtonwall"}}} instead
of embedding the A-with-umlaut in the string? I'm wondering if it might
make our intentions clearer. At the moment we have a unicode name
expressed as a non-unicode type (without the leading {{{u"}}}, that string
is just a bytestring), and the casual observer might not realize that we
intended to get the binary strings into the stuff on disk.
Yes, this would have been a good idea but the encoding specification looks
mandatory for both "\xc3\x84rtonwall" and "Ärtonwall".
{{{
exceptions.SyntaxError: Non-ASCII character '\xc3' in file
/home/francois/dev/tahoe/src/allmydata/test/test_cli.py on line 567, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for
details (test_cli.py, line 567)
}}}
Replying to [comment:9 warner]:
> But, the buildbot is still indicating test failures: see
http://allmydata.org/buildbot/waterfall . This time they're on dapper and
feisty. That's really weird, I don't know what would cause those to fail
but not the others.
Unfortunately, I'm not able to reproduce those failures on my dapper and
feisty virtual machines. Can you please try running the attached test
script (test-unicode.py) on your machines ?
--
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/534#comment:10>
allmydata.org "Tahoe" <http://allmydata.org/>
allmydata.org "Tahoe"
More information about the tahoe-dev
mailing list