[TYPO3-core] RFC #15712: Headline in non latin charsets will break after 100 - substr is not multibyte safe

Jigal van Hemert jigal at xs4all.nl
Sun Jan 2 10:15:27 CET 2011


Hi,

This is a SVN patch request.

Type: Bugfix

BT reference: http://bugs.typo3.org/view.php?id=15712

Branches: trunk / earlier if RM agrees

Problem:
In GIFBUILDER text will be limited to textMaxLength characters, but 
substr() is used to crop the text and this function is not multi-byte safe.

Solution:
Use t3lib_cs::substr() if a BE charset is defined

How to test:
Use example in bug tracker issue to render text in non-latin 
(multi-byte) charsets and see characters displayed which are not part of 
the text

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15712.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110102/4fdb19c1/attachment.txt>


More information about the TYPO3-team-core mailing list