プロジェクト

全般

プロフィール

Vote #67988

完了

Redmine considers non ASCII and UTF-16 text files as binary in SCM

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2010/08/31
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
27
issue_org_id:
6256
author_id:
19737
assigned_to_id:
11192
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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

Admin Redmine さんがほぼ4年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン1.2.0_27 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0