can't pass unicode name to external diff program
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Breezy |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
While trying to run kdiff3 (external difference program) via an bzr alias to external diff extension. Probably the ë in the directory name is causing the pain...
Command window and logging follows:
L:\eLibrary\
=== modified file 'W/De Wit/Natuur en Menschen in Indi+½/
bzr: ERROR: exceptions.
ange(128)
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\diff.pyo", line 426, in show_diff_trees
File "bzrlib\diff.pyo", line 831, in show_diff
File "bzrlib\diff.pyo", line 891, in _show_diff
File "bzrlib\diff.pyo", line 914, in diff
File "bzrlib\diff.pyo", line 492, in _diff_many
File "bzrlib\diff.pyo", line 747, in diff
File "bzrlib\diff.pyo", line 688, in _execute
File "subprocess.pyo", line 594, in __init__
File "subprocess.pyo", line 816, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 51: ordinal not in range(128)
bzr 1.10 on python 2.5.2 (win32)
arguments: ['bzr', 'kdiff', 'NatuurMenschen
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools F:\Programs\
launchpad F:\Programs\
qbzr C:\Documents and Settings\
svn F:\Programs\
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
L:\eLibrary\
====
From .bzr.log
====
Thu 2009-03-05 00:01:33 +0100
0.532 bzr arguments: [u'commit', u'.']
0.532 looking for plugins in C:/Documents and Settings/
0.578 looking for plugins in F:/Programs/
0.610 Plugin name qbzr already loaded
1.375 bzr-svn: using Subversion 1.5.4 ()
1.672 encoding stdout as sys.stdout encoding 'cp437'
2.500 opening SVN RA connection to 'file:/
2.532 Unable to open <bzrlib.
2.532 opening SVN RA connection to 'file:/
2.532 Unable to open <bzrlib.
2.532 opening SVN RA connection to 'file:/
2.547 Unable to open <bzrlib.
2.625 opening working tree 'L:/eLibrary/Books'
2.766 preparing to commit
[ 652] 2009-03-05 00:01:38.108 INFO: Committing to: L:/eLibrary/Books/
4.157 Selecting files for commit with filter [u'W/De Wit/Natuur en Menschen in Indi\xeb']
[ 652] 2009-03-05 00:01:38.921 INFO: modified W/De Wit/Natuur en Menschen in Indië/NatuurMen
8.032 check paths: [u'W/De Wit/Natuur en Menschen in Indi\xeb']
[ 652] 2009-03-05 00:02:01.562 INFO: Committed revision 1029.
28.078 return code 0
Thu 2009-03-05 20:34:50 +0100
0.328 bzr arguments: [u'kdiff', u'NatuurMensche
0.344 looking for plugins in C:/Documents and Settings/
0.375 looking for plugins in F:/Programs/
0.406 Plugin name qbzr already loaded
1.187 bzr-svn: using Subversion 1.5.4 ()
2.265 opening SVN RA connection to 'file:/
2.281 Unable to open <bzrlib.
2.297 opening SVN RA connection to 'file:/
2.297 Unable to open <bzrlib.
2.297 opening SVN RA connection to 'file:/
2.297 Unable to open <bzrlib.
2.312 opening SVN RA connection to 'file:/
2.312 Unable to open <bzrlib.
2.406 opening working tree 'L:/eLibrary/Books'
4.297 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\diff.pyo", line 426, in show_diff_trees
File "bzrlib\diff.pyo", line 831, in show_diff
File "bzrlib\diff.pyo", line 891, in _show_diff
File "bzrlib\diff.pyo", line 914, in diff
File "bzrlib\diff.pyo", line 492, in _diff_many
File "bzrlib\diff.pyo", line 747, in diff
File "bzrlib\diff.pyo", line 688, in _execute
File "subprocess.pyo", line 594, in __init__
File "subprocess.pyo", line 816, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' in position 51: ordinal not in range(128)
4.297 return code 4
tags: | added: encoding |
summary: |
- UnicodeEncodeError: 'ascii' codec can't encode character u'\xeb' + can't pass unicode name to external diff program |
tags: | added: diff unicode |
Changed in bzr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Jelmer Vernooij (jelmer) |
milestone: | none → 3.0.0 |
tags: | removed: check-for-breezy |
This was fixed as a side-effect of the python3 porting work :)