Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#1763 closed defect (fixed)

UCS-2 Little Endian - file preview error

Reported by: oliver@… Owned by: Jonas Borgström
Priority: normal Milestone: 0.9
Component: version control/browser Version: 0.8.4
Severity: normal Keywords: UCS-2 Little Endian preview error mime type
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I have got files with "UCS-2 Little Endian" encoding. After I have added these files into my SVN repository I have seen that Trac is not able to make a preview of this file in the browser. After I have changed encoding to ANSI or UTF-8 everything was fine.

Attachments (1)

mimetest.txt (92 bytes ) - added by oliver@… 19 years ago.
UCS-2 Little Endian test file

Download all attachments as: .zip

Change History (3)

by oliver@…, 19 years ago

Attachment: mimetest.txt added

UCS-2 Little Endian test file

comment:1 by oliver@…, 19 years ago

additional: I have added a test file as attachment. The file content in trac ("ÿþT") is not the "real" content of the file.

comment:2 by Jonas Borgström, 19 years ago

Resolution: fixed
Status: newclosed

As of [1934] the is_binary-check is less strict. As long as the files have proper mime-types they will preview properly

  $ svn propset svn:mime-type 'text/plain;charset=UTF-16' mimetest.txt

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.