Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2008 01:40:52 +0200
From:      "Alexander Renn" <alexander.renn@gmail.com>
To:        doc@FreeBSD.org
Subject:   Inaccuracy in handbook
Message-ID:  <cc2a6eec0805161640w33da4c08kfc5f95c2cf3f7e8f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

There is an inaccuracy here (at least it does not work this way on my
6.2-RELEASE):
http://www.freebsd.org/doc/handbook/using-localization.html

"

    :setenv=LC_ALL=zh_TW.Big:\
    :setenv=LC_COLLATE=zh_TW.Big5:\
    :setenv=LC_CTYPE=zh_TW.Big5:\
    :setenv=LC_MESSAGES=zh_TW.Big5:\
    :setenv=LC_MONETARY=zh_TW.Big5:\
    :setenv=LC_NUMERIC=zh_TW.Big5:\
    :setenv=LC_TIME=zh_TW.Big5:\

"

There can be only one setenv in the section and if you're going to use "\"
for the line wrapping, you cannot precede the variable name with spaces/tabs
because it will be considered to be a part of the environment variable name.

This section looks like this for me:

"        :setenv=MAIL=/var/mail/$,\
BLOCKSIZE=K,\
FTP_PASSIVE_MODE=YES,\
LC_ALL=uk_UA.KOI8-U,\
LC_COLLATE=uk_UA.KOI8-U,\
LC_CTYPE=uk_UA.KOI8-U,\
LC_MESSAGES=uk_UA.KOI8-U,\
LC_MONETARY=uk_UA.KOI8-U,\
LC_NUMERIC=uk_UA.KOI8-U,\
LC_TIME=uk_UA.KOI8-U:\
"

But I think it would be even better to write all the variables in one line
to avoid confusion with empty characters on the start:


:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,LC_ALL=uk_UA.KOI8-U,LC_COLLATE=uk_UA.KOI8-U,LC_CTYPE=uk_UA.KOI8-U,LC_MESSAGES=uk_UA.KOI8-U,LC_MONETARY=uk_UA.KOI8-U,LC_NUMERIC=uk_UA.KOI8-U,LC_TIME=uk_UA.KOI8-U:

-- 
Best regards,
Alexander Renn

Phone: +380632311922
E-mail/Jabber: Alexander.Renn@Gmail.com
ICQ: 50088883



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cc2a6eec0805161640w33da4c08kfc5f95c2cf3f7e8f>