Defect #12641 » unified_diff.rb.2.diff
| lib/redmine/unified_diff.rb (working copy) | ||
|---|---|---|
| 35 | 35 |
# TODO: UTF-16 and Japanese CP932 which is imcompatible with ASCII |
| 36 | 36 |
# In Japan, diffrence between file path encoding |
| 37 | 37 |
# and file contents encoding is popular. |
| 38 |
line.force_encoding('ASCII-8BIT')
|
|
| 38 |
line.force_encoding('UTF-8')
|
|
| 39 | 39 |
end |
| 40 | 40 |
unless diff_table.add_line line |
| 41 | 41 |
line.force_encoding(line_encoding) if line_encoding |
- « Previous
- 1
- 2
- 3
- Next »