Project

General

Profile

Defect #6256

Updated by Toshi MARUYAMA about 7 years ago

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 http://www.redmine.org/boards/2/topics/14739

Back