ferhatelmas opened a new pull request, #1431:
URL: https://github.com/apache/answer/pull/1431

   Multi-byte rune at boundary gets corrupted:
   * A string where a multi-byte character spans the 150-byte boundary
   * Chinese character "中" is 3 bytes (0xE4 0xB8 0xAD)
   * If we have 149 ASCII chars + "中", the "中" starts at byte 149 and ends at 
byte 151
   * cutLongTitle should cut before "中", returning 149 bytes
   * But the current implementation returns 150 bytes, cutting "中" in half and 
making string invalid
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to