Actions
Defect #6256
closedRedmine considers non ASCII and UTF-16 text files as binary in SCM
Start date:
2010-08-31
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
If source file contains less than 30% of ascii symbols - redmine threats it as binary.
It's affected when browsing repository:
/projects/PROJECT/repository/entry/FILE
(redmine just starts downloading, not showing source file).
The problem is that redmine relies on string method http://apidock.com/ruby/String/is_binary_data%3F
I understand this is ruby problem, but redmine could do some more checks - at least check for BOM marks.
more information here:
Related issues
Actions