You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE: It seems that the issue can be reproduced even on encoding-safe path, like /tmp/gitcola
Build Log
python setup.py build
running build
running build_mo
Traceback (most recent call last):
File "setup.py", line 78, in <module>
main()
File "setup.py", line 44, in main
data_files = cola_data_files())
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/中文路徑/gitcola/extras/build_mo.py", line 66, in run
if find_executable('msgfmt') is None:
File "/usr/lib/python2.7/distutils/spawn.py", line 220, in find_executable
f = os.path.join(p, executable)
File "/usr/lib/python2.7/posixpath.py", line 73, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 14: ordinal not in range(128)
Makefile:77: recipe for target 'build' failed
make: *** [build] Error 1
The text was updated successfully, but these errors were encountered:
Vdragon
changed the title
Build fail with UnicodeDecodeError: ordinal not in range(128) in extras/build_mo.py when source dir is under CJK path
Build fail with UnicodeDecodeError: ordinal not in range(128) in extras/build_mo.py <del>when source dir is under CJK path</del>
Feb 5, 2016
Python's stdlib is buggy as all hell and it does not properly handle
unicode. The *only* crazy thing that does work is to force the encoding
to utf-8 on python2 to fix their broken code.
Allow installing to/from utf-8 encoded paths by making python2 have the
same utf-8 default as python3.
Related-to: #551
Signed-off-by: David Aguilar <davvid@gmail.com>
Encountered this issue when testing PR #549
Steps to Reproduce Issue
Create folder named "中文路徑"Copy source folder under "中文路徑" foldermake
under the new source folderUPDATE: It seems that the issue can be reproduced even on encoding-safe path, like
/tmp/gitcola
Build Log
Reporter's Environment
Operating System
Ubuntu 15.10 AMD64
Locale
Git Cola
commit 3a5c09f
The text was updated successfully, but these errors were encountered: