Support uploads with UTF-8 names on Windows
authorBrion Vibber <brion@pobox.com>
Tue, 3 Oct 2017 22:15:15 +0000 (15:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Oct 2017 23:13:33 +0000 (23:13 +0000)
commit1b04c8a1066b02fcb9ce28bedc8e677aaa28cad9
tree6e8d1c7f5f18bd43e754d662fbf6ceb48d656b6e
parentc16f2ef0853f8cdc344ed2a89a5d0a27ef0e3e63
Support uploads with UTF-8 names on Windows

On PHP 7.1 and later, filesystem functions on Windows
use the Unicode system functions, which makes our file
handling work for non-ASCII file names.

Previously this was blacklisted for Windows on all PHP
versions. Versions before 7.1 will still reject Unicode
filenames with non-ASCII chars.

Bug: T3780
Change-Id: I94377faa5185f133be2dfb7b9b6aeacbd582834f
includes/libs/filebackend/FSFileBackend.php