Vote #67988
完了Redmine considers non ASCII and UTF-16 text files as binary in SCM
0%
説明
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:
message#14739
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I finished implementing until r5211.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,6416,When viewing utf-8 text file in repository, it is downloaded
relates,Closed,4477,Use mime types in downloading from repository
relates,New,2209,MIME type support for repository Entries
relates,New,3770,text/html documents force currently firefox to open download dialog
relates,Closed,6374,File raw view mode
duplicates,Closed,7134,is_binary_data uses wrong heuristic to decide if a string is binary