Bug 252670 - Incorrect l10n tip in freebsd-tips fortune file
Summary: Incorrect l10n tip in freebsd-tips fortune file
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Documentation (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-14 13:11 UTC by Martijn Dekker
Modified: 2021-01-14 13:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martijn Dekker 2021-01-14 13:11:29 UTC
The following tip, in /usr/share/games/fortune/freebsd-tips line 112-115:

    In order to support national characters for European languages in tools like
    less without creating other nationalisation aspects, set the environment
    variable LC_ALL to 'en_US.UTF-8'.

needs fixing in two ways:

1. The LC_ALL variable is only for temporary overrides and should never be set permanently, as it overrides all specific LC variables such as LC_COLLATE, LC_TIME and LC_MONETARY. Instead, the variable LANG should be set.

2. The value en_US.UTF-8 may work, but should be changed to C.UTF-8, as this locale is specifically provided for this purpose.

So change line 114 from

    variable LC_ALL to 'en_US.UTF-8'.

to

    variable LANG to 'C.UTF-8'.

This is also not limited to European languages, so change line 112 from

    In order to support national characters for European languages in tools like

to

    In order to support characters for non-English languages in tools like