[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2807: Magic Folder: Unicode-related test failures
Tahoe-LAFS
trac at tahoe-lafs.org
Tue Sep 27 17:32:38 UTC 2016
#2807: Magic Folder: Unicode-related test failures
--------------------------------------------+------------------------------
Reporter: daira | Owner: warner
Type: defect | Status: closed
Priority: normal | Milestone: 1.12.0
Component: code-frontend-magic-folder | Version: 1.11.0
Resolution: fixed | Keywords: magic-folder
Launchpad Bug: | unicode
--------------------------------------------+------------------------------
Comment (by Brian Warner <warner@…>):
In [changeset:"e8c246f3465a97642d04fe74ec62dc706c99ec97/trunk"
e8c246f/trunk]:
{{{
#!CommitTicketReference repository="trunk"
revision="e8c246f3465a97642d04fe74ec62dc706c99ec97"
Merge daira/2807.magic-folder-unicode-test-fail.1
refs ticket:2807
This allows tests to pass under an odd environment: our OS-X buildslave.
That process is started as a LaunchDaemon that doesn't provide any
Environment dictionary in the .plist file, so it runs with an empty
environment. On OS-X, this causes filesystem.encoding to default to
"utf-8", but locale.getpreferredencoding() returns "US-ASCII". The tests
previously assumed that any platform which used unicode for the
filesystem pathnames would also use it for sys.argv .
To simulate this without involving launchd, use "unset LANG", and
double-check that locale.getpreferredencoding() has changed.
This fix tolerates such platforms.
}}}
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2807#comment:8>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list