UnicodeEncodeError for unrecognized files with unicode filenames in pbuilder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-distutils-extra (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
[Test case]
Install version 2.34.1
1. have an unrecognized file with UTF-8 characters in it's filename using p3-d-e
For example: $ touch "Ein Stück Lebensgeschichte und andere Erzählungen.txt"
2. run pdebuild
-> crash
One more, building the word prediction branch of Onboard in pbuilder fails:
make[1]: Entering directory `/tmp/buildd/
python3 setup.py clean -a
running clean
'build/
'build/
'build/scripts-3.2' does not exist -- can't clean it
WARNING: the following files are not recognized by DistUtilsExtra.
HACKING
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
Onboard/
corpora/
Traceback (most recent call last):
File "setup.py", line 221, in <module>
cmdclass = {'test': TestCommand},
File "/usr/lib/
print (' ' + f)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 19-20: ordinal not in range(128)
The file it fails to print is "corpora/de/Ein Stück Lebensgeschichte und andere Erzählungen.txt"
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: python3-
ProcVersionSign
Uname: Linux 3.5.0-4-generic x86_64
ApportVersion: 2.3-0ubuntu4
Architecture: amd64
Date: Sun Jul 15 22:01:43 2012
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, username)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: python-
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-distutils-extra (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → Medium |
Btw., is there a way to turn the listing of unrecognized files off? Also, shouldn't files from C extensions not be recognized files?