scm: bazaar: do not call super initialize method at adapter (#11834)

On Bazaar 2.0.5, in case of using non ASCII *repository* path,
following trace raise on all operation.

<pre>
Traceback (most recent call last):
  File "/usr/bin/bzr", line 142, in <module>
    exit_val = bzrlib.commands.main()
  File "/usr/lib/python2.6/site-packages/bzrlib/commands.py", line 1102, in main
    argv = osutils.get_unicode_argv()
  File "/usr/lib/python2.6/site-packages/bzrlib/osutils.py", line 90, in get_unicode_argv
    "encoding." % a))
bzrlib.errors.BzrError:
 Parameter ''/somewhere/\xe3\x83\x90\xe3\x82\xb6\xe3\x83\xbc/non_ascii/''
 is unsupported by the current encoding.
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10422 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-09-18 10:10:29 +00:00
parent 1fcd3d956f
commit 1f58b94bd8
1 changed files with 3 additions and 1 deletions

View File

@ -58,8 +58,10 @@ module Redmine
end
def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil)
@url = url
@root_url = url
@path_encoding = 'UTF-8'
super
# do not call *super* for non ASCII repository path
end
def bzr_path_encodig=(encoding)