Opened 11 years ago
Closed 8 years ago
#386 closed defect (bug) (fixed)
Trac truncates data at 4-byte UTF-8 characters
Reported by: | SergeyBiryukov | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Trac | Keywords: | |
Cc: |
Description (last modified by )
See #wp18189.
I've noticed that ticket description was truncated. I have the full description in my email notification from 2011, so I've tried to restore it, but it got truncated again.
I guess it's a result of moving to MySQL in #253. According to #wp13590, MySQL supports 4-byte UTF-8 characters since version 5.5.
Test: 💩
Change History (10)
This ticket was mentioned in Slack in #core by sergeybiryukov. View the logs.
10 years ago
#4
@
9 years ago
- Resolution set to fixed
- Status changed from new to closed
I've fixed this for core.trac by converting most utf8 columns to utf8mb4. Other Tracs including meta.trac, which all still use SQLite, were unaffected.
I say most because primary key index lengths (innodb_large_prefix
is not on) blocked it on the attachment, component, milestone, node_change, ticket_custom, and wiki tables. None of these fields have a pressing (or any) need for four-byte characters in them.
Another instance in #wp31019.