test_argv_to_unicode is red on my Mac OS 10.4 #1214

Closed
opened 2010-09-29 06:22:35 +00:00 by zooko · 5 comments
HACK Wonwin-McBrootles-Computer:~/playground/tahoe-lafs/trunk$ cmd.sh PYTHONPATH=support/lib/python2.5/site-packages/ trial --until-failure allmydata.test.test_encodingutil.EncodingUtilErrors.test_argv_to_unicode
Test Pass 1
allmydata.test.test_encodingutil
  [EncodingUtilErrors](wiki/EncodingUtilErrors)
    test_argv_to_unicode ...                                             FAIL

===============================================================================
FAIL: allmydata.test.test_encodingutil.EncodingUtilErrors.test_argv_to_unicode

Traceback (most recent call last):
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/src/allmydata/test/test_encodingutil.py", line 125, in test_argv_to_unicode
    lumiere_nfc.encode('latin1'))
twisted.trial.unittest.FailTest: [UsageError](wiki/UsageError) not raised (u'lumi\xcbre' returned)
-------------------------------------------------------------------------------
Ran 1 tests in 0.148s

FAILED (failures=1)

real    0m14.255s
user    0m0.837s
sys     0m1.060s
HACK Wonwin-McBrootles-Computer:~/playground/tahoe-lafs/trunk$ PYTHONPATH=support/lib/python2.5/site-packages/ ./support/bin/tahoe --version
allmydata-tahoe: 1.8.0-r4745, foolscap: 0.5.1, pycryptopp: 0.5.25, zfec: 1.4.5, Twisted: 10.0.0, Nevow: 0.10.0, zope.interface: 3.1.0c1, python: 2.5.4, platform: Darwin-8.11.1-i386-32bit, sqlite: 3.1.3, simplejson: 2.1.1, argparse: 0.8.0, pycrypto: 2.0.1, pyOpenSSL: 0.9, pyutil: 1.7.6, zbase32: 1.1.0, setuptools: 0.6c16dev2, pyasn1: 0.0.11a, pysqlite: 2.3.2
HACK Wonwin-McBrootles-Computer:~/playground/tahoe-lafs/trunk$ cmd.sh python misc/build_helpers/show-tool-versions.py

Got exception invoking 'cl'. Exception follows.
Traceback (most recent call last):
> File "misc/build_helpers/show-tool-versions.py", line 41, in print_stdout
    stdout=subprocess.PIPE).communicate()[0]
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 594, in *init*
    errread, errwrite)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1097, in _execute_child
    raise child_exception
OSError: [2]Errno No such file or directory

Got exception invoking 'cryptest'. Exception follows.
Traceback (most recent call last):
> File "misc/build_helpers/show-tool-versions.py", line 41, in print_stdout
    stdout=subprocess.PIPE).communicate()[0]
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 594, in *init*
    errread, errwrite)
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1097, in _execute_child
    raise child_exception
OSError: [2]Errno No such file or directory

pkg_resources reported no setuptools_trial package installed. Exception follows.
Traceback (most recent call last):
> File "misc/build_helpers/show-tool-versions.py", line 98, in print_py_pkg_ver
    out = str(pkg_resources.require(pkgname))
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 565, in resolve
    raise [DistributionNotFound](wiki/DistributionNotFound)(req)  # XXX put more info here
[DistributionNotFound](wiki/DistributionNotFound): setuptools-trial

pkg_resources reported no setuptools_darcs package installed. Exception follows.
Traceback (most recent call last):
> File "misc/build_helpers/show-tool-versions.py", line 98, in print_py_pkg_ver
    out = str(pkg_resources.require(pkgname))
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 565, in resolve
    raise [DistributionNotFound](wiki/DistributionNotFound)(req)  # XXX put more info here
[DistributionNotFound](wiki/DistributionNotFound): setuptools-darcs

pkg_resources reported no darcsver package installed. Exception follows.
Traceback (most recent call last):
> File "misc/build_helpers/show-tool-versions.py", line 98, in print_py_pkg_ver
    out = str(pkg_resources.require(pkgname))
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
> File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 565, in resolve
    raise [DistributionNotFound](wiki/DistributionNotFound)(req)  # XXX put more info here
[DistributionNotFound](wiki/DistributionNotFound): darcsver

platform: Darwin-8.11.1-i386-32bit

python: 2.5.4 (release25-maint:72153M, Apr 30 2009, 12:28:20)  [4.0.1 (Apple Computer, Inc. build 5367)]GCC
maxunicode: 65535

locale: LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL="en_US.UTF-8" 

sys.stdout.encoding: None 

sys.stderr.encoding: None 

filesystem.encoding: utf-8
locale.getpreferredencoding: mac-roman
os.path.supports_unicode_filenames: False
locale.defaultlocale: (None, 'mac-roman')
locale.locale: (None, None)

buildbot: Buildbot version: 0.7.10p1 Twisted version: 10.0.0 


gcc: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is 
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

g++: i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is 
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  


darcs: 2.4.4 (unknown) 

darcs-exact-version: darcs compiled on Jul 18 2010, at 14:28:54 context not available Compiled with:  HTTP-4000.0.8 array-0.2.0.0 base-3.0.3.1 bytestring-0.9.1.4 containers-0.2.0.1 directory-1.0.0.3 ext
ensible-exceptions-0.1.1.0 filepath-1.1.0.2 hashed-storage-0.5 haskeline-0.6.2.2 html-1.0.1.2 mmap-0.5.6 mtl-1.1.0.2 network-2.2.1.5 old-time-1.0.0.2 parsec-2.1.0.1 process-1.0.1.1 random-1.0.0.1 regex-
compat-0.92 tar-0.3.1.0 terminfo-0.3.1.1 text-0.7.0.1 unix-2.3.2.0 zlib-0.5.2.0 

7za:  7-Zip (A) 9.04 beta  Copyright (c) 1999-2009 Igor Pavlov  2009-05-30 p7zip Version 9.04 (locale=utf8,Utf16=on,HugeFiles=on,2 CPUs)  Usage: 7za <command> [<switches>...] <archive_name> [<file_names
>...]        [<@listfiles...>]  <Commands>   a: Add files to archive   b: Benchmark   d: Delete files from archive   e: Extract files from archive (without using directory names)   l: List contents of a
rchive   t: Test integrity of archive   u: Update files to archive   x: eXtract files with full paths <Switches>   -air[-|0]{@listfile|!wildcard}: Include archives   -axr[-|0]{@listfile|!wildcard}: 
eXclude archives   -bd: Disable percentage indicator   -ir[-|0]{@listfile|!wildcard}: Include filenames   -m{Parameters}: set compression Method (see the manual)   -l: don't store symlinks; store the 
files/directories they point to   CAUTION : the scanning stage can never end because of symlinks like '..'             (ex:  ln -s .. ldir)   -o{Directory}: set Output directory   -p{Password}: set Pass
word   -r[-|0]: Recurse subdirectories   (CAUTION: this flag does not do what you think, avoid using it)   -sfx[{name}]: Create SFX archive   -si[{name}]: read data from stdin   -slt: show technical inf
ormation for l (List) command   -so: write data to stdout (eg: 7z a dummy -tgzip -so Doc.txt > archive.gz)   -ssc[-]: set sensitive case mode   -t{Type}: Set type of archive   -u[-]p#q#r#x#y#[
z#][!newArchiveName]: Update options   -v{Size}b|k|m|g: Create volumes   -w[{path}]: assign Work directory. Empty path means a temporary directory   -xr[-|0]]{@listfile|!wildcard}: eXclude filenames
   -y: assume Yes on all queries 

flappclient: Foolscap version: 0.5.1 Twisted version: 10.0.0 

as:  Apple Computer, Inc. version cctools-622.5.obj~13, GNU assembler version 1.38 

setuptools: [0.6c15dev (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c15dev.egg)]setuptools

coverage: [3.3.2a1 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/coverage-3.3.2a1-py2.5-macosx-10.3-i386.egg)]coverage

trialcoverage: [0.3.11 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/trialcoverage-0.3.11-py2.5.egg), setuptools 0.6c15dev (/Library/Frameworks/Python.fram
ework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c15dev.egg), pyutil 1.7.6 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyutil-1.7.6-py2.5.egg), coverage 3.
3.2a1 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/coverage-3.3.2a1-py2.5-macosx-10.3-i386.egg), simplejson 2.1.1 (/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/site-packages/simplejson-2.1.1-py2.5-macosx-10.3-i386.egg), zbase32 1.1.0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/zbase32-1.1.0-py2.5.egg), argparse 0.8
.0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/argparse-0.8.0-py2.5.egg)]trialcoverage


pyflakes: [0.3.0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyflakes-0.3.0-py2.5.egg)]pyflakes

zope.interface: [3.1.0c1 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages)]zope.interface


``` HACK Wonwin-McBrootles-Computer:~/playground/tahoe-lafs/trunk$ cmd.sh PYTHONPATH=support/lib/python2.5/site-packages/ trial --until-failure allmydata.test.test_encodingutil.EncodingUtilErrors.test_argv_to_unicode Test Pass 1 allmydata.test.test_encodingutil [EncodingUtilErrors](wiki/EncodingUtilErrors) test_argv_to_unicode ... FAIL =============================================================================== FAIL: allmydata.test.test_encodingutil.EncodingUtilErrors.test_argv_to_unicode Traceback (most recent call last): > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/src/allmydata/test/test_encodingutil.py", line 125, in test_argv_to_unicode lumiere_nfc.encode('latin1')) twisted.trial.unittest.FailTest: [UsageError](wiki/UsageError) not raised (u'lumi\xcbre' returned) ------------------------------------------------------------------------------- Ran 1 tests in 0.148s FAILED (failures=1) real 0m14.255s user 0m0.837s sys 0m1.060s HACK Wonwin-McBrootles-Computer:~/playground/tahoe-lafs/trunk$ PYTHONPATH=support/lib/python2.5/site-packages/ ./support/bin/tahoe --version allmydata-tahoe: 1.8.0-r4745, foolscap: 0.5.1, pycryptopp: 0.5.25, zfec: 1.4.5, Twisted: 10.0.0, Nevow: 0.10.0, zope.interface: 3.1.0c1, python: 2.5.4, platform: Darwin-8.11.1-i386-32bit, sqlite: 3.1.3, simplejson: 2.1.1, argparse: 0.8.0, pycrypto: 2.0.1, pyOpenSSL: 0.9, pyutil: 1.7.6, zbase32: 1.1.0, setuptools: 0.6c16dev2, pyasn1: 0.0.11a, pysqlite: 2.3.2 HACK Wonwin-McBrootles-Computer:~/playground/tahoe-lafs/trunk$ cmd.sh python misc/build_helpers/show-tool-versions.py Got exception invoking 'cl'. Exception follows. Traceback (most recent call last): > File "misc/build_helpers/show-tool-versions.py", line 41, in print_stdout stdout=subprocess.PIPE).communicate()[0] > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 594, in *init* errread, errwrite) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1097, in _execute_child raise child_exception OSError: [2]Errno No such file or directory Got exception invoking 'cryptest'. Exception follows. Traceback (most recent call last): > File "misc/build_helpers/show-tool-versions.py", line 41, in print_stdout stdout=subprocess.PIPE).communicate()[0] > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 594, in *init* errread, errwrite) > File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/subprocess.py", line 1097, in _execute_child raise child_exception OSError: [2]Errno No such file or directory pkg_resources reported no setuptools_trial package installed. Exception follows. Traceback (most recent call last): > File "misc/build_helpers/show-tool-versions.py", line 98, in print_py_pkg_ver out = str(pkg_resources.require(pkgname)) > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 565, in resolve raise [DistributionNotFound](wiki/DistributionNotFound)(req) # XXX put more info here [DistributionNotFound](wiki/DistributionNotFound): setuptools-trial pkg_resources reported no setuptools_darcs package installed. Exception follows. Traceback (most recent call last): > File "misc/build_helpers/show-tool-versions.py", line 98, in print_py_pkg_ver out = str(pkg_resources.require(pkgname)) > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 565, in resolve raise [DistributionNotFound](wiki/DistributionNotFound)(req) # XXX put more info here [DistributionNotFound](wiki/DistributionNotFound): setuptools-darcs pkg_resources reported no darcsver package installed. Exception follows. Traceback (most recent call last): > File "misc/build_helpers/show-tool-versions.py", line 98, in print_py_pkg_ver out = str(pkg_resources.require(pkgname)) > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) > File "/Users/wonwinmcbrootles/playground/tahoe-lafs/trunk/pristine/setuptools-0.6c15dev.egg/pkg_resources.py", line 565, in resolve raise [DistributionNotFound](wiki/DistributionNotFound)(req) # XXX put more info here [DistributionNotFound](wiki/DistributionNotFound): darcsver platform: Darwin-8.11.1-i386-32bit python: 2.5.4 (release25-maint:72153M, Apr 30 2009, 12:28:20) [4.0.1 (Apple Computer, Inc. build 5367)]GCC maxunicode: 65535 locale: LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL="en_US.UTF-8" sys.stdout.encoding: None sys.stderr.encoding: None filesystem.encoding: utf-8 locale.getpreferredencoding: mac-roman os.path.supports_unicode_filenames: False locale.defaultlocale: (None, 'mac-roman') locale.locale: (None, None) buildbot: Buildbot version: 0.7.10p1 Twisted version: 10.0.0 gcc: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++: i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. darcs: 2.4.4 (unknown) darcs-exact-version: darcs compiled on Jul 18 2010, at 14:28:54 context not available Compiled with: HTTP-4000.0.8 array-0.2.0.0 base-3.0.3.1 bytestring-0.9.1.4 containers-0.2.0.1 directory-1.0.0.3 ext ensible-exceptions-0.1.1.0 filepath-1.1.0.2 hashed-storage-0.5 haskeline-0.6.2.2 html-1.0.1.2 mmap-0.5.6 mtl-1.1.0.2 network-2.2.1.5 old-time-1.0.0.2 parsec-2.1.0.1 process-1.0.1.1 random-1.0.0.1 regex- compat-0.92 tar-0.3.1.0 terminfo-0.3.1.1 text-0.7.0.1 unix-2.3.2.0 zlib-0.5.2.0 7za: 7-Zip (A) 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (locale=utf8,Utf16=on,HugeFiles=on,2 CPUs) Usage: 7za <command> [<switches>...] <archive_name> [<file_names >...] [<@listfiles...>] <Commands> a: Add files to archive b: Benchmark d: Delete files from archive e: Extract files from archive (without using directory names) l: List contents of a rchive t: Test integrity of archive u: Update files to archive x: eXtract files with full paths <Switches> -air[-|0]{@listfile|!wildcard}: Include archives -axr[-|0]{@listfile|!wildcard}: eXclude archives -bd: Disable percentage indicator -ir[-|0]{@listfile|!wildcard}: Include filenames -m{Parameters}: set compression Method (see the manual) -l: don't store symlinks; store the files/directories they point to CAUTION : the scanning stage can never end because of symlinks like '..' (ex: ln -s .. ldir) -o{Directory}: set Output directory -p{Password}: set Pass word -r[-|0]: Recurse subdirectories (CAUTION: this flag does not do what you think, avoid using it) -sfx[{name}]: Create SFX archive -si[{name}]: read data from stdin -slt: show technical inf ormation for l (List) command -so: write data to stdout (eg: 7z a dummy -tgzip -so Doc.txt > archive.gz) -ssc[-]: set sensitive case mode -t{Type}: Set type of archive -u[-]p#q#r#x#y#[ z#][!newArchiveName]: Update options -v{Size}b|k|m|g: Create volumes -w[{path}]: assign Work directory. Empty path means a temporary directory -xr[-|0]]{@listfile|!wildcard}: eXclude filenames -y: assume Yes on all queries flappclient: Foolscap version: 0.5.1 Twisted version: 10.0.0 as: Apple Computer, Inc. version cctools-622.5.obj~13, GNU assembler version 1.38 setuptools: [0.6c15dev (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c15dev.egg)]setuptools coverage: [3.3.2a1 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/coverage-3.3.2a1-py2.5-macosx-10.3-i386.egg)]coverage trialcoverage: [0.3.11 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/trialcoverage-0.3.11-py2.5.egg), setuptools 0.6c15dev (/Library/Frameworks/Python.fram ework/Versions/2.5/lib/python2.5/site-packages/setuptools-0.6c15dev.egg), pyutil 1.7.6 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyutil-1.7.6-py2.5.egg), coverage 3. 3.2a1 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/coverage-3.3.2a1-py2.5-macosx-10.3-i386.egg), simplejson 2.1.1 (/Library/Frameworks/Python.framework/Versions/2.5/lib /python2.5/site-packages/simplejson-2.1.1-py2.5-macosx-10.3-i386.egg), zbase32 1.1.0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/zbase32-1.1.0-py2.5.egg), argparse 0.8 .0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/argparse-0.8.0-py2.5.egg)]trialcoverage pyflakes: [0.3.0 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pyflakes-0.3.0-py2.5.egg)]pyflakes zope.interface: [3.1.0c1 (/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages)]zope.interface ```
zooko added the
code-frontend-cli
major
defect
1.8.0
labels 2010-09-29 06:22:35 +00:00
zooko added this to the eventually milestone 2010-09-29 06:22:35 +00:00
davidsarah commented 2010-10-23 04:21:43 +00:00
Owner

Attachment wrong-encoding-variable.darcs.patch (3993 bytes) added

test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable.

**Attachment** wrong-encoding-variable.darcs.patch (3993 bytes) added test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable.
tahoe-lafs modified the milestone from eventually to 1.8.1 2010-10-23 04:22:20 +00:00
zooko was assigned by tahoe-lafs 2010-10-23 04:22:20 +00:00
david-sarah@jacaranda.org commented 2010-10-26 01:31:34 +00:00
Owner

In changeset:daf2b8314aff8ef7:

test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable. fixes #1214
In changeset:daf2b8314aff8ef7: ``` test_encodingutil.py: test_argv_to_unicode modified the wrong encoding variable. fixes #1214 ```
tahoe-lafs added the
fixed
label 2010-10-26 01:31:34 +00:00
davidsarah commented 2010-10-26 01:44:35 +00:00
Owner

I committed this because it was a low-risk change to a test, but it still needs confirmation that it fixes the problem on zooko's machine.

I committed this because it was a low-risk change to a test, but it still needs confirmation that it fixes the problem on zooko's machine.
zooko removed the
fixed
label 2010-10-26 02:32:24 +00:00
zooko reopened this issue 2010-10-26 02:32:24 +00:00
davidsarah commented 2010-10-27 00:15:21 +00:00
Owner

Incidentally, the explanation for the test failing on this machine is that its locale encoding (and hence argv_encoding) is 'mac-roman'. The test intended to alter the argv_encoding to UTF-8 but failed to do so (it altered the output_encoding instead).

python -c "print repr(u'lumi\u00E8re'.encode('latin1').decode('mac-roman'))" gives the observed u'lumi\xcbre'.

Incidentally, the explanation for the test failing on this machine is that its locale encoding (and hence argv_encoding) is 'mac-roman'. The test intended to alter the argv_encoding to UTF-8 but failed to do so (it altered the output_encoding instead). `python -c "print repr(u'lumi\u00E8re'.encode('latin1').decode('mac-roman'))"` gives the observed `u'lumi\xcbre'`.
Author

Confirmed that this one patch fixed it on my Mac OS 10.4 system.

Confirmed that this one patch fixed it on my Mac OS 10.4 system.
zooko added the
fixed
label 2010-10-28 05:26:22 +00:00
zooko closed this issue 2010-10-28 05:26:22 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#1214
No description provided.