From 9765fa989f104e8c6c17f55521ae03cb868b3efc Mon Sep 17 00:00:00 2001 From: Karolina Surma <33810531+befeleme@users.noreply.github.com> Date: Tue, 20 Aug 2024 23:03:18 +0200 Subject: [PATCH] PEP 639: Character ranges are treated locale-agnostic (#3914) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Miro HronĨok --- peps/pep-0639.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/peps/pep-0639.rst b/peps/pep-0639.rst index 6561f959c..8556c016e 100644 --- a/peps/pep-0639.rst +++ b/peps/pep-0639.rst @@ -528,7 +528,8 @@ as specified below: - Special glob characters: ``*``, ``?``, ``**`` and character ranges: ``[]`` containing only the verbatim matched characters MUST be supported. - Within ``[...]``, the hyphen indicates a range (e.g. ``a-z``). + Within ``[...]``, the hyphen indicates a locale-agnostic range (e.g. ``a-z``, + order based on Unicode code points). Hyphens at the start or end are matched literally. - Path delimiters MUST be the forward slash character (``/``).