Re: [newcode]Encoding Settings
Urs Janßen <[email protected]> Sun, 24 Aug 2008 16:45:45 +0200
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Aug 24, 2008 at 08:16:29PM +0800, Tony Winslow wrote:
> Hi, I'm new to tin.
>
> How can I change the encoding of a particular group?
> For example, the group I'm visiting uses GBK (Simplified Chinese),
> how can I configure tin properly so that I can read that group?
as documented in tin(5)/tin(1):
[tin(5)]
| /etc/tin/attributes
| ${TIN_HOMEDIR:-"$HOME"}/.tin/attributes
|
| The group attributes files may be used to override some global
| settings from ${TIN_HOMEDIR:-"$HOME"}/.tin/tinrc on a per group
| basis. Order is important as last match counts; this allows to
| refine attributes for narrowed scopes. Note that the
| scope=<grouplist> line has to be specified before the attributes
| are specified for that list. All attributes are set to a reason-
| able default so you only have to specify the attribute that you
| want to change. All toggle attributes are set by specifying
| ON/OFF. Otherwise, they function exactly as their global equiv-
| alents. The following group attributes are available:
|
| scope This changes the list of groups to which the attributes
| that follow will be applied. See the section NEWSGROUP
| LISTS & WILDCARDS in tin(1) for the types of pattern that
| can be used here.
[...]
| mm_network_charset
| Identical to the tinrc variable of the same name
|
| undeclared_charset
| Assume (broken) articles without MIME charset declaration
| have this charset - default is US-ASCII. This attribute
| works only on systems with working iconv(3), others might
| have to compile tin(1) with --dis-
| able-mime-strict-charset.
[tin(1)]
| MM_NETWORK_CHARSET (mm_network_charset)
| Charset used for posting and MIME headers; replaces mm_charset.
| Conversion between mm_network_charset and local charset (determined
| via nl_langinfo(3)) is done via iconv(3), if this function is not
| available on your system this option is disabled and you have to
| use mm_charset instead. mm_network_charset is limited to one of the
| following charsets:
| US-ASCII, ISO-8859-{1,2,3,4,5,7,9,10,13,14,15,16}, KOI8-{R,U,RU}
| EUC-{CN,JP,KR,TW}, ISO-2022-{CN,CN-EXT,JP,JP-1,JP-2}, Big5,
| UTF-8
| Not all values might work on your system, see iconv_open(3) for
| more details. If it's not set, the value of the environment vari-
| able $MM_CHARSET is used. US-ASCII or compile-time default is used
| in case neither of them is defined.
urs
--
"Only whimps use tape backup: _real_ men just upload their important stuff
on ftp, and let the rest of the world mirror it ;)" - Linus