##// END OF EJS Templates
scm: git: unit adapter latin-1 path encoding test passes on Japanese Windows (#5251)....
Toshi MARUYAMA -
r4951:74f44a5b6a0b
parent child
Show More
@@ -14,6 +14,12 begin
14 14 FELIX_HEX = "Felix Sch\xC3\xA4fer"
15 15 CHAR_1_HEX = "\xc3\x9c"
16 16
17 ## Ruby uses ANSI api to fork a process on Windows.
18 ## Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem
19 ## and these are incompatible with ASCII.
20 # WINDOWS_PASS = Redmine::Platform.mswin?
21 WINDOWS_PASS = false
22
17 23 if File.directory?(REPOSITORY_PATH)
18 24 def setup
19 25 @adapter = Redmine::Scm::Adapters::GitAdapter.new(
@@ -138,8 +144,8 begin
138 144 end
139 145
140 146 def test_latin_1_path
141 if Redmine::Platform.mswin?
142 # TODO
147 if WINDOWS_PASS
148 #
143 149 else
144 150 p2 = "latin-1-dir/test-#{@char_1}-2.txt"
145 151 ['4fc55c43bf3d3dc2efb66145365ddc17639ce81e', '4fc55c43bf3'].each do |r1|
@@ -196,10 +202,11 begin
196 202 end
197 203
198 204 def test_entries_latin_1_dir
199 if Redmine::Platform.mswin?
200 # TODO
205 if WINDOWS_PASS
206 #
201 207 else
202 entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed')
208 entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir",
209 '1ca7f5ed')
203 210 assert entries1
204 211 assert_equal 3, entries1.size
205 212 f1 = entries1[1]
General Comments 0
You need to be logged in to leave comments. Login now