Index: class.t3lib_stdgraphic.php =================================================================== --- class.t3lib_stdgraphic.php (revision 7106) +++ class.t3lib_stdgraphic.php (working copy) @@ -2725,7 +2725,16 @@ * @return string $inputName escaped as needed */ protected function wrapFileName($inputName) { - return escapeshellarg($inputName); + if ($TYPO3_CONF_VARS['SYS']['UTF8filesystem']) { + $oldLocale = setlocale(LC_CTYPE, 0); + setlocale(LC_CTYPE, 'en_US.UTF8', 'en_US.UTF-8', 'en_US', 'American', 'ENG', 'English'); + $inputName = escapeshellarg($inputName); + setlocale(LC_CTYPE, $oldLocale); + unset($oldLocale); + } else { + $inputName = escapeshellarg($inputName); + } + return $inputName; } Index: thumbs.php =================================================================== --- thumbs.php (revision 7106) +++ thumbs.php (working copy) @@ -374,7 +374,16 @@ * @return string $inputName escaped as needed */ protected function wrapFileName($inputName) { - return escapeshellarg($inputName); + if ($TYPO3_CONF_VARS['SYS']['UTF8filesystem']) { + $oldLocale = setlocale(LC_CTYPE, 0); + setlocale(LC_CTYPE, 'en_US.UTF8', 'en_US.UTF-8', 'en_US', 'American', 'ENG', 'English'); + $inputName = escapeshellarg($inputName); + setlocale(LC_CTYPE, $oldLocale); + unset($oldLocale); + } else { + $inputName = escapeshellarg($inputName); + } + return $inputName; } }