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
Updated by Toshi MARUYAMA over 13 years ago
- Category set to SCM
- Status changed from New to 7
- Assignee set to Toshi MARUYAMA
Updated by Toshi MARUYAMA over 13 years ago
- Subject changed from Redmine considers some not-ascii text files as binary to Redmine considers some not-ascii text files as binary in SCM
Updated by Toshi MARUYAMA over 13 years ago
- Status changed from 7 to Closed
- Target version set to 1.2.0
- Resolution set to Fixed
I finished implementing until r5211.
Updated by Toshi MARUYAMA over 13 years ago
- Subject changed from Redmine considers some not-ascii text files as binary in SCM to Redmine considers some not-ascii and UTF-16 text files as binary in SCM
Updated by Toshi MARUYAMA over 13 years ago
- Subject changed from Redmine considers some not-ascii and UTF-16 text files as binary in SCM to Redmine considers non ASCII and UTF-16 text files as binary in SCM
Actions