From d1138fda4b33c35173ae5131263fcc3761ebec75 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Annett=20J=C3=A4hnichen?= <mcmietz@web.de>
Date: Fri, 5 Aug 2022 23:14:43 +0200
Subject: [PATCH] [TASK] Use preconfigured UTF-8 System in first installation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Back in the old and dark days, some filesystems did not know
about "special" chars. TYPO3 has the TYPO3_CONF_VARS toggle
['SYS']['UTF8filesystem'] to declare if filesytems are
UTF-8 aware.

This toggle is 'false' by default since ever. It triggers
functionality to rename any file that contains characters
like umlauts, or maybe entirely consist of "special" chars
only (japanese) to something "safe".

This is a usability issue since information is lost and
language-specific characters are destroyed.

Nowadays, any serious filesystem of course supports UTF-8.

There are no issues related to UTF8filesystem=true for
years.

The patch now sets UTF8filesystem=true for new installations
to see if anything still pops up. If that works out, we'll
continue with further patches in v13 to further phase out
the option entirely.

Resolves: #98090
Releases: main
Change-Id: Ib448d4f42c23605fd4343bcbbd1f9fdadecadc8b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75378
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
---
 typo3/sysext/core/Configuration/FactoryConfiguration.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typo3/sysext/core/Configuration/FactoryConfiguration.php b/typo3/sysext/core/Configuration/FactoryConfiguration.php
index d46e6b0a0b97..d3ed4d43411e 100644
--- a/typo3/sysext/core/Configuration/FactoryConfiguration.php
+++ b/typo3/sysext/core/Configuration/FactoryConfiguration.php
@@ -23,5 +23,6 @@ return [
             'unifiedPageTranslationHandling' => true,
             'yamlImportsFollowDeclarationOrder' => true,
         ],
+        'UTF8filesystem' => true,
     ],
 ];
-- 
GitLab