From b16335433795cd1663001c9c37d0afb2d866e9e2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 3 Aug 2014 13:43:42 -0700 Subject: [PATCH] doc: document LANGUAGE Reported by Benno Schulenberg in: http://bugs.gnu.org/18185 * doc/grep.texi (Environment Variables): Document LANGUAGE. --- doc/grep.texi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/grep.texi b/doc/grep.texi index aaea1df..d9da088 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -759,15 +759,23 @@ this option can be used with commands like The behavior of @command{grep} is affected by the following environment variables. address@hidden LANGUAGE @r{environment variable} address@hidden LC_ALL @r{environment variable} address@hidden LC_MESSAGES @r{environment variable} address@hidden LANG @r{environment variable} The locale for category @address@hidden@var{foo}}} is specified by examining the three environment variables @env{LC_ALL}, @address@hidden@var{foo}}}, and @env{LANG}, in that order. The first of these variables that is set specifies the locale. For example, if @env{LC_ALL} is not set, -but @env{LC_MESSAGES} is set to @samp{pt_BR}, +but @env{LC_COLLATE} is set to @samp{pt_BR}, then the Brazilian Portuguese locale is used -for the @env{LC_MESSAGES} category. +for the @env{LC_COLLATE} category. +As a special case for @env{LC_MESSAGES} only, the environment variable address@hidden can contain a colon-separated list of languages that +overrides the three environment variables that ordinarily specify +the @env{LC_MESSAGES} category. The @samp{C} locale is used if none of these environment variables are set, if the locale catalog is not installed, or if @command{grep} was not compiled @@ -978,9 +986,11 @@ These variables specify the locale for the @env{LC_CTYPE} category, which determines the type of characters, e.g., which characters are whitespace. address@hidden LC_ALL address@hidden LANGUAGE address@hidden LC_ALL @itemx LC_MESSAGES @itemx LANG address@hidden LANGUAGE @r{environment variable} @vindex LC_ALL @r{environment variable} @vindex LC_MESSAGES @r{environment variable} @vindex LANG @r{environment variable} -- 1.9.3