Modify ↓
Opened 14 years ago
Closed 11 years ago
#8305 closed defect (fixed)
[Patch] Unicode paste data length is incorrectly calculated
Reported by: | Adam Piper | Owned by: | Michael Renzmann |
---|---|---|---|
Priority: | normal | Component: | TracPastePlugin |
Severity: | normal | Keywords: | unicode UTF-8 length |
Cc: | Trac Release: | 0.11 |
Description
The length calculation occurs before utf-8 encoding, thus the value used in the Content-Length is lower than it ought to be when multibyte characters are present.
I'll (hopefully!) attach a patch for this after submission.
Attachments (1)
Change History (5)
Changed 14 years ago by
Attachment: | tracpaste_content_length.diff added |
---|
comment:1 Changed 14 years ago by
The patch also adds "content=UTF-8" to the mimetype where applicable.
comment:2 Changed 14 years ago by
Summary: | Unicode paste data length is incorrectly calculated → [Patch] Unicode paste data length is incorrectly calculated |
---|
comment:3 Changed 14 years ago by
Keywords: | UTF-8 added; utf-8 removed |
---|
Note: See
TracTickets for help on using
tickets.
fixes Content-Length calculation and adds charset=UTF-8 to mimetype where applicable