filename 2-byte, using external-diff tool

Bug #542400 reported by ikunaga5534
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

Run command: bzr diff --using ""C:\Program Files\WinMerge\WinMergeU.exe"" -rrevid:(my name)-20100320035721-pyvohkp4rye45d79 "新しいテ...
=== modified file '譁ー縺励>繝�く繧ケ繝�繝峨く繝・繝。繝ウ繝�txt'
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters in position 71-77: ordinal not in range(128)

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\commands.py", line 788, in run
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\subprocess.py", line 786, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\commands.pyo", line 1070, in ignore_pipe
  File "bzrlib\builtins.pyo", line 1955, in run
  File "bzrlib\diff.pyo", line 444, in show_diff_trees
  File "bzrlib\diff.pyo", line 889, in show_diff
  File "bzrlib\diff.pyo", line 949, in _show_diff
  File "bzrlib\diff.pyo", line 975, in _diff
  File "bzrlib\diff.pyo", line 506, in _diff_many
  File "bzrlib\diff.pyo", line 782, in diff
  File "bzrlib\diff.pyo", line 708, in _execute
  File "subprocess.pyo", line 594, in __init__
  File "subprocess.pyo", line 822, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode characters in position 71-77: ordinal not in range(128)

bzr 2.1.0 on python 2.5.4 (Windows-Vista-6.1.7600)
arguments: ['C:\\Program Files (x86)\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l4:diff7:--using41:"C:\\Program Files\\WinMerge\\WinMergeU.exe"61:-rrevid:<email address hidden>:\x90V\x82\xb5\x82\xa2\x83e\x83L\x83X\x83g \x83h\x83L\x83\x85\x83\x81\x83\x93\x83g.txte']
encoding: 'cp932', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [2.1.0]
  explorer C:\Program Files (x86)\Bazaar\plugins\explorer [1.0.1]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [2.1.0]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [2.1.0]
  news_merge C:\Program Files (x86)\Bazaar\plugins\news_merge [2.1.0]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.18.3]
  rebase C:\Program Files (x86)\Bazaar\plugins\rebase [0.5.5]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [1.0.2]
  upload C:\Program Files (x86)\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files (x86)\Bazaar\plugins\xmloutput [0.8.6]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Vincent Ladeuil (vila) wrote :

I'm pretty sure this a dupe of another bug. May be even one for which NAOKI worked on and proposed a patch.

Are there any reason to keep this bug private ? (It isn't a security vulnerability so I'm going to unmark it as such).
If you could make it public, other can comment on it and may help find a solution more quickly.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
security vulnerability: yes → no
Revision history for this message
Vincent Ladeuil (vila) wrote :

About the public nature of the bug, what I meant is that I don't know if the filename involved can be a privacy concern,
but if it's not, please just make the bug public.

Revision history for this message
ikunaga5534 (ikunaga5534) wrote :

thanks and I agree this bug as public.

Revision history for this message
ikunaga5534 (ikunaga5534) wrote :

>NAOKI worked on and proposed a patch.
Please tell me where the patch is. I searched on Internet but I can't find it.

Revision history for this message
Martin Pool (mbp) wrote :

I think this is a dupe of bug 523746 and the fix, not yet merged, is https://code.edge.launchpad.net/~songofacandy/bzr/fix-523746-dev/+merge/20537

visibility: private → public
Jelmer Vernooij (jelmer)
tags: added: diff
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.