[TYPO3-core] RFC: #7393: Wrapperfunctions for strtoupper and strtolower

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Feb 22 10:21:52 CET 2008


Steffen Kamper schrieb:
> "Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
> Newsbeitrag 
> news:mailman.1.1203431255.17343.typo3-team-core at lists.netfielders.de...
>> Steffen Kamper schrieb:
>>> "Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
>>> Newsbeitrag 
>>> news:mailman.1.1203429673.13658.typo3-team-core at lists.netfielders.de...
>>>> Martin Kutschker schrieb:
>>>>> I have commited this to 4_2 but to be of any effect there needs to be a
>>>>> followup for tslib and indedex search.
>>>> I have commited attached change for indexed search. I think the 
>>>> reasoning
>>>> of this is clear as it has been discussed before (Turkish locale).
>>>>
>>>> Masi
>>> great, thx!
>>> So i can modify the replace unused marker patch as well to use this 
>>> function now.
>> Yes.
>>
>> I have found it tslib_content a few occurrences of toupper and tolower 
>> that work on tags and attributes. For html this should (in theory) work on 
>> ASCII as html tags and attributes may not contain any accenteded 
>> characters. But this is not true for xml which allows also allows utf8 
>> (only?) in names. As this is rarely seen and xml is case sensitive anyway, 
>> I think it is safe to use the new ASCII wrappers to avoid further problems 
>> with Turkish.
>>
>> Do you think that many people use typotags or markers that contain 
>> accented characters (latin1) or eg cyrillic?
>>
> 
> no, i don't think so. Markers are usually in english, and they should not 
> use any special char.

Any other opinions? The question was whether to make HTML/TYPO tags safe 
for Turkish or if this would endanger existing sites that use latin1 
accents for TYPO tags. Well it does, but do we care? I guess that we all 
assumed tags to be restricted to ASCII.

Masi


More information about the TYPO3-team-core mailing list