[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2375: make tests work under a non-ASCII path

Tahoe-LAFS trac at tahoe-lafs.org
Thu Feb 5 16:08:43 UTC 2015


#2375: make tests work under a non-ASCII path
--------------------------------+---------------------------
 Reporter:  daira               |          Owner:  daira
     Type:  defect              |         Status:  new
 Priority:  normal              |      Milestone:  undecided
Component:  code                |        Version:  1.10.0
 Keywords:  unicode tests i18n  |  Launchpad Bug:
--------------------------------+---------------------------
 Currently when I run tests for a checkout of Tahoe-LAFS (at
 [/9ac392802b6034aefd4c742ea9dd02813f4667d9/trunk]) on Linux under a
 directory with "€" in its name, there are many test failures:
 {{{
 FAILED (skips=5, expectedFailures=3, failures=2, errors=79,
 successes=1075)
 }}}
 After working around a shallow problem with `os.statvfs` not accepting a
 Unicode path, this becomes:
 {{{
 FAILED (skips=5, expectedFailures=3, failures=2, errors=71,
 successes=1083)
 }}}

 Most of the remaining errors have this traceback:
 {{{
   File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py",
 line 172, in _worker
     result = context.call(ctx, function, *args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
 118, in callWithContext
     return self.currentContext().callWithContext(ctx, func, *args, **kw)
   File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line
 81, in callWithContext
     return func(*args,**kw)
   File "/home/davidsarah/tahoe/git/€/tahoe-
 lafs/src/allmydata/scripts/runner.py", line 107, in runner
     config.parseOptions(argv)
   File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line
 252, in parseOptions
     self._dispatch[optMangled].dispatch(optMangled, arg)
   File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line
 56, in dispatch
     raise UsageError("Parameter type enforcement failed: %s" % (e,))
 twisted.python.usage.UsageError: Parameter type enforcement failed:
 'ascii' codec can't encode character u'\u20ac' in position 27: ordinal not
 in range(128)
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2375>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list