On many systems, "/setenv
LC_CTYPE=en_US
" will allow you to use characters in the 8-bit ISO 8859
character set. If this does not work on your system, or you want to use a
non-English locale, or you just want to learn more, keep reading.
A locale defines a set of rules for a language and culture. If the platform on which TF runs supports locales, TF will support the following categories of locale rules:
off
and
%meta_esc
is off
or nonprint
,
so you can type 8-bit characters with the meta key.
The user can set the locale either by having special variables defined in the environment before starting TF (preferred), or by setting them while TF is running (they will automatically be exported to the environment even if /set is used). The exact rules for setting locale depend on the platform, and should be found your system's documentation for setlocale(). The rules are usually something like this:
The valid values for the locale variables depend on your system.
On a POSIX system, the valid values can be listed with the shell command
"locale -a
".
Bugs:
If your system has locale support, but does not have any locales installed, you can get the POSIX 1003.2 WG15-collection locale definitions from ftp://dkuug.dk/i18n/ or ftp://i44ftp.info.uni-karlsruhe.de/pub/linux/ctype/.
Note that even though TF supports locales with non-ASCII character sets, not all MUD servers support non-ASCII character sets. Many servers simply discard characters that are not printable ASCII. Among servers that do support non-ASCII characters, the most commonly used set is ISO-8859-1 (Latin1). When choosing a locale for TF, you should choose one that uses the same character set as the servers you use.
Note to linux users and other users of GNU libc: at least some versions of GNU localedef generate invalid LC_TIME information from the WG15-collection sources, and the GNU libc causes any program that tries to use the invalid LC_TIME information to crash. Workarounds: delete the LC_TIME data; or, do not set any of the LC_ALL, LC_TIME, or LANG variables.