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