Using a very long sortkey (>255 bytes) let the api module action=parse to output that long sortkey, but the database stored later a truncated sortkey.
Please truncate the sortkey when adding to the ParserOutput, so action=parse shows the right sortkey.
Please truncate whole multibyte characters and avoid half bytes inside the database.
By the way, you can remove the truncation from LinksUpdate (r79706).
Thanks.
Version: 1.18.x
Severity: enhancement