[TYPO3-dev] Where to use setlocale?
Ernesto Baschny [cron IT]
ernst at cron-it.de
Thu Mar 18 10:11:07 CET 2010
Steffen Kamper schrieb am 18.03.2010 09:54:
> Hi,
>
> Dmitry Dulepov schrieb:
>> Hi!
>>
>> Jigal van Hemert wrote:
>>> Since both thumbs.php and t3lib_stdGraphic use this function I wonder:
>>> - what is the right place to set the locale?
>>
>> TSRef is your friend. See in CONFIG.
>>
>>> - how can the correct value be determined?
>>
>> Google for locales.
>>
>
> see http://www.sk-typo3.de/locale_all.310.0.html
I guess you didn't understand Jigals request. He want to setlocale() in
the backend, so that escapeshellarg() does not get garbled. He wants an
idea where he could add it (typo3/config_default, init.php, ...).
I guess minimal disruption would be to set it around the code that needs
it (around the escapeshellarg()). And this only if UTF8filesystem
setting is present.
Cheers,
Ernesto
More information about the TYPO3-dev
mailing list