From 0123c1dcb42d0ad9cd773ba50b05f8dffd50cb3a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 24 Apr 2016 15:14:39 +0000 Subject: [PATCH] Merged r15357 (#22583). git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15358 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/import.rb b/app/models/import.rb index 127f7be88..22b90b6ac 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -51,7 +51,7 @@ class Import < ActiveRecord::Base separator = lu(user, :general_csv_separator) if file_exists? begin - content = File.read(filepath, 256, "rb") + content = File.read(filepath, 256) separator = [',', ';'].sort_by {|sep| content.count(sep) }.last rescue Exception => e end -- 2.39.5