Project

General

Profile

Actions

Bug #93883

closed

Transliteration of german umlauts fails partly on file upload for files created on mac

Added by Christoph Lehmann about 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2021-04-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

How to reproduce on Mac:

(i) OK

touch a file named test-ö-ä-ü.txt with your favourite terminal and upload it in the file list.

Result: The file is renamed to test-oe-ae-ue.txt

The hex representation of öäü is

0000000 c3 a4 c3 b6 c3 bc

You get it with bin2hex()

(ii) Not OK

Save a file with TextEdit or simple create new file in Finder with the name test-ö-ü-ä.txt and upload it in the file list

Result: The file is renamed to test-o__u__a__.txt

The transliteration of öäü fails (or lets say is incomplete) when its representation is

0000000 61 cc 88 6f cc 88 75 cc 88


German umlauts have multiple representations in utf8 charset. One of them seems not handled correctly by \TYPO3\CMS\Core\Resource\Driver\LocalDriver::sanitizeFileName() or in \TYPO3\CMS\Core\Charset\CharsetConverter


Related issues 3 (2 open1 closed)

Related to TYPO3 Core - Bug #20612: scandinavian letters are translittered wrongNeeds Feedback2009-06-12

Actions
Related to TYPO3 Core - Bug #93764: SlugHelper can create bad urlsClosed2021-03-17

Actions
Related to TYPO3 Core - Feature #57695: Implement unicode normalization in TYPO3 Core's charset conversion routines, especially for filepaths in TYPO3 FAL's LocalDriver.Needs Feedback2014-04-06

Actions
Actions

Also available in: Atom PDF