Bug 252670

Summary: Incorrect l10n tip in freebsd-tips fortune file
Product: Documentation Reporter: Martijn Dekker <mcdutchie>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: New ---    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

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