diff options
Diffstat (limited to 'chapter07/profile.xml')
-rw-r--r-- | chapter07/profile.xml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chapter07/profile.xml b/chapter07/profile.xml index e2748d9df..9255ef81c 100644 --- a/chapter07/profile.xml +++ b/chapter07/profile.xml @@ -65,10 +65,10 @@ makes Bash and Readline use the <filename>/etc/inputrc</filename> file created earlier.</para> - <para>Replace <replaceable>[ll]</replaceable> below with the two-letter code + <para>Replace <replaceable><ll></replaceable> below with the two-letter code for the desired language (e.g., <quote>en</quote>) and - <replaceable>[CC]</replaceable> with the two-letter code for the appropriate - country (e.g., <quote>GB</quote>). <replaceable>[charmap]</replaceable> should + <replaceable><CC></replaceable> with the two-letter code for the appropriate + country (e.g., <quote>GB</quote>). <replaceable><charmap></replaceable> should be replaced with the canonical charmap for your chosen locale. Optional modifiers such as <quote>@euro</quote> may also be present.</para> @@ -83,11 +83,11 @@ that <quote>UTF-8</quote> is written as <quote>UTF-8</quote>, not <quote>utf8</quote>), so it is safest in most cases to choose the canonical name for a particular locale. To determine - the canonical name, run the following command, where <replaceable>[locale - name]</replaceable> is the output given by <command>locale -a</command> for + the canonical name, run the following command, where <replaceable><locale + name></replaceable> is the output given by <command>locale -a</command> for your preferred locale (<quote>en_GB.iso88591</quote> in our example).</para> -<screen role="nodump"><userinput>LC_ALL=<replaceable>[locale name]</replaceable> locale charmap</userinput></screen> +<screen role="nodump"><userinput>LC_ALL=<replaceable><locale name></replaceable> locale charmap</userinput></screen> <para>For the <quote>en_GB.iso88591</quote> locale, the above command will print:</para> @@ -98,11 +98,11 @@ It is important that the locale found using the heuristic above is tested prior to it being added to the Bash startup files:</para> -<screen role="nodump"><userinput>LC_ALL=[locale name] locale country -LC_ALL=[locale name] locale language -LC_ALL=[locale name] locale charmap -LC_ALL=[locale name] locale int_curr_symbol -LC_ALL=[locale name] locale int_prefix</userinput></screen> +<screen role="nodump"><userinput>LC_ALL=<locale name> locale country +LC_ALL=<locale name> locale language +LC_ALL=<locale name> locale charmap +LC_ALL=<locale name> locale int_curr_symbol +LC_ALL=<locale name> locale int_prefix</userinput></screen> <para>The above commands should print the country and language names, the character encoding used by the locale, the local currency and the prefix to dial @@ -143,7 +143,7 @@ LC_ALL=[locale name] locale int_prefix</userinput></screen> <screen><userinput>cat > /etc/profile << "EOF" <literal># Begin /etc/profile -export LANG=<replaceable>[ll]</replaceable>_<replaceable>[CC]</replaceable>.<replaceable>[charmap]</replaceable><replaceable>[@modifiers]</replaceable> +export LANG=<replaceable><ll></replaceable>_<replaceable><CC></replaceable>.<replaceable><charmap></replaceable><replaceable><@modifiers></replaceable> export INPUTRC=/etc/inputrc # End /etc/profile</literal> |