[TYPO3-core] RFC #11698: t3lib_div::strtoupper does not convert all characters

Martin Kutschker masi-no at spam-typo3.org
Wed Aug 26 14:22:06 CEST 2009


Christopher Stelmaszyk schrieb:
> Hi!
> 
> This is a SVN patch request.
> 
> Type: feature
> 
> Branches: trunk
> 
> BT reference:
> http://bugs.typo3.org/view.php?id=11698
> 
> Problem:
> t3lib_div::strtoupper is used at several places in the core to convert 
> strings to uppercase.
> 
> The problem is that this function only converts the latin characters a-z. It 
> does not take other letters into account. E.g. accents or german umlauts 
> will not be converted.

As the function was introduced for the edge-case of Turkish (it has
lower and upper case i's with and without dot) I don't think it it's
necessary to burden the function with character set handling.

I have used the if-construct myself but I loath it. Both BE and FE
should use the same character set and label mechanism. The context
guessing is horrible.

I suggest to postpone this patch to 4.4 and come up with a refactored
charcter set handling. I propose to drop $LANG and use a character set
and a label singleton instead in the BE. The FE should use the same classes.

Masi


More information about the TYPO3-team-core mailing list