Remove obsolete uses of LC_CTYPE

These are obsolete as of c8001b5023 (encoding: use UTF-8 everywhere,
2025-10-18). The only place where we still read the user's LC_CTYPE
is in libc::wcwidth(), but that's kind of a regression -- we should
always be using a UTF-8 LC_CTYPE if possible -- which will be fixed
by a following commit.
This commit is contained in:
Johannes Altmanninger
2025-10-25 08:30:13 +02:00
parent e09583e99e
commit 7bd6e577d9
4 changed files with 6 additions and 31 deletions

View File

@@ -1563,7 +1563,7 @@ You can change the settings of fish by changing the values of certain variables.
.. describe:: Locale Variables
The locale variables :envvar:`LANG`, :envvar:`LC_ALL`, :envvar:`LC_COLLATE`, :envvar:`LC_CTYPE`, :envvar:`LC_MESSAGES`, :envvar:`LC_MONETARY`, :envvar:`LC_NUMERIC`, and :envvar:`LANG` set the language option for the shell and subprograms. See the section :ref:`Locale variables <variables-locale>` for more information.
The locale variables :envvar:`LANG`, :envvar:`LC_ALL`, :envvar:`LC_COLLATE`, :envvar:`LC_MESSAGES`, :envvar:`LC_MONETARY`, :envvar:`LC_NUMERIC`, and :envvar:`LANG` set the language option for the shell and subprograms. See the section :ref:`Locale variables <variables-locale>` for more information.
.. describe:: Color variables
@@ -1842,11 +1842,6 @@ The "locale" of a program is its set of language and regional settings that depe
This determines the rules about equivalence of cases and alphabetical ordering: collation.
.. envvar:: LC_CTYPE
This determines classification rules, like if the type of character is an alpha, digit, and so on.
Most importantly, it defines the text *encoding* - which numbers map to which characters. On modern systems, this should typically be something ending in "UTF-8".
.. envvar:: LC_MESSAGES
``LC_MESSAGES`` determines the language in which messages are diisplayed.