@@ -14,6 +14,12 begin | |||||
14 | FELIX_HEX = "Felix Sch\xC3\xA4fer" |
|
14 | FELIX_HEX = "Felix Sch\xC3\xA4fer" | |
15 | CHAR_1_HEX = "\xc3\x9c" |
|
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 | if File.directory?(REPOSITORY_PATH) |
|
23 | if File.directory?(REPOSITORY_PATH) | |
18 | def setup |
|
24 | def setup | |
19 | @adapter = Redmine::Scm::Adapters::GitAdapter.new( |
|
25 | @adapter = Redmine::Scm::Adapters::GitAdapter.new( | |
@@ -138,8 +144,8 begin | |||||
138 | end |
|
144 | end | |
139 |
|
145 | |||
140 | def test_latin_1_path |
|
146 | def test_latin_1_path | |
141 | if Redmine::Platform.mswin? |
|
147 | if WINDOWS_PASS | |
142 |
# |
|
148 | # | |
143 | else |
|
149 | else | |
144 | p2 = "latin-1-dir/test-#{@char_1}-2.txt" |
|
150 | p2 = "latin-1-dir/test-#{@char_1}-2.txt" | |
145 | ['4fc55c43bf3d3dc2efb66145365ddc17639ce81e', '4fc55c43bf3'].each do |r1| |
|
151 | ['4fc55c43bf3d3dc2efb66145365ddc17639ce81e', '4fc55c43bf3'].each do |r1| | |
@@ -196,10 +202,11 begin | |||||
196 | end |
|
202 | end | |
197 |
|
203 | |||
198 | def test_entries_latin_1_dir |
|
204 | def test_entries_latin_1_dir | |
199 | if Redmine::Platform.mswin? |
|
205 | if WINDOWS_PASS | |
200 |
# |
|
206 | # | |
201 | else |
|
207 | else | |
202 |
entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", |
|
208 | entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", | |
|
209 | '1ca7f5ed') | |||
203 | assert entries1 |
|
210 | assert entries1 | |
204 | assert_equal 3, entries1.size |
|
211 | assert_equal 3, entries1.size | |
205 | f1 = entries1[1] |
|
212 | f1 = entries1[1] |
General Comments 0
You need to be logged in to leave comments.
Login now