Opened 19 years ago
Closed 19 years ago
#1763 closed defect (fixed)
UCS-2 Little Endian - file preview error
Reported by: | 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)
Change History (3)
by , 19 years ago
Attachment: | mimetest.txt added |
---|
comment:1 by , 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 , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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
UCS-2 Little Endian test file