From: Toshi MARUYAMA Date: Wed, 4 May 2011 05:02:01 +0000 (+0000) Subject: scm: filesystem: fix loss non ASCII paths if path_encoding is '' (#2274). X-Git-Tag: 1.2.0~260 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6a483684bea9b1a381f34289524a6e74f68f67d;p=redmine.git scm: filesystem: fix loss non ASCII paths if path_encoding is '' (#2274). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5629 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb index 77977d885..1575f105f 100644 --- a/lib/redmine/scm/adapters/filesystem_adapter.rb +++ b/lib/redmine/scm/adapters/filesystem_adapter.rb @@ -35,7 +35,7 @@ module Redmine def initialize(url, root_url=nil, login=nil, password=nil, path_encoding=nil) @url = with_trailling_slash(url) - @path_encoding = path_encoding || 'UTF-8' + @path_encoding = path_encoding.blank? ? 'UTF-8' : path_encoding end def format_path_ends(path, leading=true, trailling=true)