[wp-trac] [WordPress Trac] #57761: Prevent non-Latin characters from being used in filenames
WordPress Trac
noreply at wordpress.org
Fri Feb 17 18:28:41 UTC 2023
#57761: Prevent non-Latin characters from being used in filenames
------------------------------+-----------------------------
Reporter: danielbachhuber | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
In r55294, I committed a few files with non-Latin characters in the
filenames:
* tests/phpunit/data/themedir1/block-theme-non-latin/parts/small-header-
τεστ.html
* tests/phpunit/data/themedir1/block-theme-non-latin/parts/small-header-测
试.html
* tests/phpunit/data/themedir1/block-theme-non-latin/templates/page-
τεστ.html
* tests/phpunit/data/themedir1/block-theme-non-latin/templates/page-测试
.html
These filenames caused SVN checkouts to break in some environments
([https://github.com/wp-cli/scaffold-
command/actions/runs/4202081401/jobs/7293427452 example]):
{{{
svn: E000022: Can't convert string from 'UTF-8' to native encoding:
svn: E000022: /tmp/wp-cli-test-run--63ef7647f35894.16389676/wordpress-
tests-lib/data/themedir1/block-theme-non-latin/parts/small-
header-{U+03C4}{U+03B5}{U+03C3}{U+03C4}.html
cwd: /tmp/wp-cli-test-run--63ef7647f35894.16389676/
run time: 6.1638081073761
}}}
It'd probably be best to have a pre-commit hook to prevent non-Latin
filenames from being committed in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57761>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list