Inaccuracy in handbook
Alexander Renn
alexander.renn at gmail.com
Sat May 17 00:05:21 UTC 2008
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 at Gmail.com
ICQ: 50088883
More information about the freebsd-doc
mailing list