scm: git: unit model latin-1 path encoding test passes on Japanese Windows (#5251).

Ruby uses ANSI api to fork a process on Windows.
Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem
and these are incompatible with ASCII.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5072 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-09 04:14:17 +00:00 committed by Eric Davis
parent af5fb55f7c
commit aebcad6e4d
1 changed files with 9 additions and 3 deletions

View File

@ -27,6 +27,12 @@ class RepositoryGitTest < ActiveSupport::TestCase
FELIX_HEX = "Felix Sch\xC3\xA4fer"
CHAR_1_HEX = "\xc3\x9c"
## Ruby uses ANSI api to fork a process on Windows.
## Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem
## and these are incompatible with ASCII.
# WINDOWS_PASS = Redmine::Platform.mswin?
WINDOWS_PASS = false
def setup
@project = Project.find(3)
@repository = Repository::Git.create(
@ -41,7 +47,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
end
end
if File.directory?(REPOSITORY_PATH)
if File.directory?(REPOSITORY_PATH)
def test_fetch_changesets_from_scratch
@repository.fetch_changesets
@repository.reload
@ -198,8 +204,8 @@ class RepositoryGitTest < ActiveSupport::TestCase
end
def test_latest_changesets_latin_1_dir
if Redmine::Platform.mswin?
# TODO
if WINDOWS_PASS
#
else
@repository.fetch_changesets
@repository.reload