Changeset 0f442884


Ignore:
Timestamp:
01/18/2007 04:34:14 PM (15 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, krejzi/svn, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
276015d2
Parents:
c6c037c
Message:

Fixed the i18n.sh profile script. Closes #2012.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6429 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/glib2.xml

    rc6c037c r0f442884  
    9292    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    9393    href="../../xincludes/gtk-doc-rebuild.xml"/>
     94
     95  </sect2>
     96
     97  <sect2 role="configuration">
     98    <title>Configuring GLib</title>
     99
     100    <sect3>
     101      <title>Configuration Information</title>
     102
     103      <para>By default, <application>GLib</application> assumes that all
     104      filenames are in the UTF-8 charset. See the <xref
     105      linkend="locale-issues"/> page for more details on this kind of
     106      issue. In order to tell GLib and applications that use it
     107      that filenames are in the default locale encoding, set the variable
     108      <envar>G_FILENAME_ENCODING</envar> to the value "@locale":</para>
     109
     110<screen><userinput>cat &gt; /etc/profile.d/glib2-locale.sh &lt;&lt; "EOF"
     111<literal># Use the current locale charset for filenames
     112# in applications using GLib
     113export G_FILENAME_ENCODING=@locale</literal>
     114EOF</userinput></screen>
     115
     116    </sect3>
    94117
    95118  </sect2>
  • introduction/welcome/changelog.xml

    rc6c037c r0f442884  
    4646      <itemizedlist>
    4747        <listitem>
     48          <para>[dnicholson] - Changed the i18n.sh profile text to reference
     49          the LFS locale discussion and moved the GLib specific settings to
     50          that package's page. Fixes #2012.</para>
     51        </listitem>
     52        <listitem>
    4853          <para>[randy] - Added text to the 'Locale Related Issues' page which
    4954          discusses improperly encoded manual pages.</para>
  • postlfs/config/profile.xml

    rc6c037c r0f442884  
    333333    </indexterm>
    334334
    335       <para>This script shows how to set some environment variables necessary for
    336       native language support. Setting these variables properly gives you:</para>
    337 
    338       <itemizedlist>
    339         <listitem>
    340           <para>the output of programs translated into your native language</para>
    341         </listitem>
    342         <listitem>
    343           <para>correct classification of characters into letters, digits and
    344           other classes &ndash; this is necessary for <application>Bash</application>
    345           to accept keystrokes properly in non-English locales</para>
    346         </listitem>
    347         <listitem>
    348           <para>the alphabetical sorting order correct for your country</para>
    349         </listitem>
    350         <listitem>
    351           <para>proper default paper size</para>
    352         </listitem>
    353         <listitem>
    354           <para>correct formatting of monetary, time and date values</para>
    355         </listitem>
    356       </itemizedlist>
    357 
    358       <para>Replace <replaceable>&lt;ll&gt;</replaceable> with the two-letter code for
    359       your language (e.g., <quote>en</quote>) and
    360       <replaceable>&lt;CC&gt;</replaceable> with the two-letter code for your country
    361       (e.g., <quote>GB</quote>). Also you may need to specify (and this is actually
    362       the preferred form) your character encoding (e.g., <quote>iso8859-1</quote>)
    363       after a dot (so that the result is <quote>en_GB.iso8859-1</quote>). Issue the
    364       following command for more information:</para>
    365 
    366 <screen><userinput>man 3 setlocale</userinput></screen>
    367 
    368       <para>The list of all locales supported by <application>Glibc</application>
    369       can be obtained by running the following command:</para>
    370 
    371 <screen><userinput>locale -a</userinput></screen>
    372 
    373       <para>After you are sure about your locale settings, create the
    374       <filename>/etc/profile.d/i18n.sh</filename> file:</para>
     335      <para>This script sets an environment variable necessary for
     336      native language support. A full discussion on determining this
     337      variable can be found on the <ulink
     338      url="&lfs-root;/chapter07/profile.html">LFS Bash Shell
     339      Startup Files</ulink> page.</para>
    375340
    376341<screen role="root"><userinput>cat &gt; /etc/profile.d/i18n.sh &lt;&lt; "EOF"
    377342<literal># Set up i18n variables
    378 export LC_ALL=<replaceable>&lt;ll&gt;</replaceable>_<replaceable>&lt;CC&gt;</replaceable>
    379 export LANG=<replaceable>&lt;ll&gt;</replaceable>_<replaceable>&lt;CC&gt;</replaceable>
    380 export G_FILENAME_ENCODING=@locale</literal>
    381 EOF</userinput></screen>
    382 
    383       <para>The <envar>LC_ALL</envar> variable sets the same value for all locale
    384       categories. For better control, you may prefer to set values individually for
    385       all categories listed in the output of the <command>locale</command>
    386       command.</para>
    387 
    388       <para>The <envar>G_FILENAME_ENCODING</envar> variable tells applications
    389       such as <application>Glib</application> and <application>GTK+</application>
    390       that filenames are in the default locale encoding and not in UTF-8 as
    391       assumed by default.</para>
     343export LANG=<replaceable>&lt;ll&gt;</replaceable>_<replaceable>&lt;CC&gt;</replaceable>.<replaceable>&lt;charmap&gt;</replaceable><replaceable>&lt;@modifiers&gt;</replaceable></literal>
     344EOF</userinput></screen>
    392345
    393346    </sect3>
Note: See TracChangeset for help on using the changeset viewer.