🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by toylet Sat, 10 Apr 2004 11:25
tin-1.6.2
#146075
Author: toylet
Date: Sat, 10 Apr 2004 11:25
13 lines
1470 bytes
Anyone got experiences on configuring the text-mode news reader tin to > 
display chinese characters properly?

I switch over to another news reader called slrn and the problem is gone
instantly,

and is there a text-mode reader that could save attachemnt to a file?

-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    7:24pm up 21:43 0 users 1.00 0.97
Re: tin-1.6.2
#146078
Author: Dirk Nimmich
Date: Sat, 10 Apr 2004 13:47
33 lines
2647 bytes
toylet wrote:
> Anyone got experiences on configuring the text-mode news reader tin to > 
> display chinese characters properly?

It might be useful to say something about *what* doesn't work and
what's your environment like if you ask questions like this.

Please show your locale settings (type `locale` on your console),
your tin settings regarding displaying (if any, see .tin/attributes
and watch out for undeclared_charset) and the headers of a posting
that doesn't display properly (and what isn't proper about it). The
output of uname -a might also be interesting since you didn't tell
us what operating system you use.

Most likely it is that you haven't set up a proper locale, your
system is missing conversion functions for the charsets involved or
the posting has no charset declared (which means that it is to be
interpreted as US-ASCII) and you haven't set up a value for
undeclared_charset in .tin/attributes.

> I switch over to another news reader called slrn and the problem is gone
> instantly,

That's because slrn just sends the bytes it finds in an article to
the screen while tin tries to convert them between the charset used
in the posting and your local charset.

How charset handling works in tin is described in detail in the
doc/umlauts.txt file of the distribution. It also describes what to
do if you only see question marks. If you don't have access to the
full distribution, you can read this document online here:
http://dan.drydog.com/docs/redhat/tin-1.6.2/doc/umlauts.txt
Re: tin-1.6.2
#146080
Author: toylet
Date: Sat, 10 Apr 2004 17:31
43 lines
2284 bytes
> Please show your locale settings (type `locale` on your console),

toylet@server: > locale
LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

> your tin settings regarding displaying (if any, see .tin/attributes

undeclared_charset=Big5
scope=*sources*
post_proc_type=1
scope=*binaries*
post_proc_type=2
delete_tmp_files=ON
followup_to=poster

> http://dan.drydog.com/docs/redhat/tin-1.6.2/doc/umlauts.txt

that's what I saw:

   u   58        test                              ????
   u   59        administration.FAQ                ???F?E????
   u   60        administration.group-rules        ???F?E???W

I am using an old linux (glibc-2.2.1

-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    1:20am up 1 day 3:39 load average: 1.00 1.00 1.00
Re: tin-1.6.2
#146112
Author: Dirk Nimmich
Date: Sun, 11 Apr 2004 07:30
32 lines
2248 bytes
toylet wrote:
>> Please show your locale settings (type `locale` on your console),
> 
> toylet@server: > locale
> LANG=POSIX
> LC_CTYPE="POSIX"

POSIX means US-ASCII, AFAIK. That means that console announces that
you want to use a US-ASCII charset for displaying things. But there
aren't any Chinese characters in US-ASCII, so tin cannot display
any.

Try `locale -a | grep '^zh_'` and choose an appropriate locale by
setting the environment variable LANG or LC_CTYPE as proposed by the
document I pointed you to. For example, if you are in Hongkong and
your console's charset is big5hkscs, type `LC_CTYPE=zh_HK.big5hkscs
&& export LC_CTYPE` (assuming bash) before running tin.

>> your tin settings regarding displaying (if any, see .tin/attributes
> 
> undeclared_charset=Big5
[more settings deleted]

This won't work unless there is a scope=... entry above with
apropriate groups for the "..." part.

> I am using an old linux (glibc-2.2.1

I'm not really sure if there was proper locale support in that
library. If the above settings don't work, try recompiling tin with
--disable-locales configure setting.
Re: tin-1.6.2
#146150
Author: toylet
Date: Mon, 12 Apr 2004 02:38
22 lines
1993 bytes
> Try `locale -a | grep '^zh_'` and choose an appropriate locale by

that's useful information.

> I'm not really sure if there was proper locale support in that
> library. If the above settings don't work, try recompiling tin with
> --disable-locales configure setting.

attempted `./configure --disable-locale`, but still didn't work. I am 
try to use putty under Win2K to access my linux host via ssh remotely to 
read news.

I just wonder whether it's possible to make tin to behave like slrn (ie, 
not trying to translate according to locale setting).



-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    10:34am up 2 days 12:53 load average: 2.65 2.55 1.84
Re: tin-1.6.2
#146165
Author: Dirk Nimmich
Date: Mon, 12 Apr 2004 08:14
19 lines
2025 bytes
toylet wrote:
[displaying chinese characters]
> attempted `./configure --disable-locale`, but still didn't work. I am 
> try to use putty under Win2K to access my linux host via ssh remotely to 
> read news.
> 
> I just wonder whether it's possible to make tin to behave like slrn (ie, 
> not trying to translate according to locale setting).

The --disable-locale setting should have done this, so I'm a bit
surprised that it doesn't work. With this setting tin just sends
everything to the screen unchanged, just as slrn does.

There's one exception, however. This doesn't work for the selection
screen where you see the group descriptions. Group descriptions are
always converted to US-ASCII because there is no way to determine 
which charset they are in, and because the charsets used for
descriptions vary in no predictable way.
Re: tin-1.6.2
#146172
Author: toylet
Date: Mon, 12 Apr 2004 09:45
15 lines
2064 bytes
>> I just wonder whether it's possible to make tin to behave like slrn (ie, 
>> not trying to translate according to locale setting).
> The --disable-locale setting should have done this, so I'm a bit
> surprised that it doesn't work. With this setting tin just sends
> everything to the screen unchanged, just as slrn does.

hmm... I guess I have to stick with slnr for a while. I think they are 
more or less the same feature by feature, both not able to process 
attachment (like saving attachment to another file).

-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    5:42pm up 2 days 20:01 load average: 1.06 1.01 0.99
Re: tin-1.6.2
#146177
Author: Dirk Nimmich
Date: Mon, 12 Apr 2004 10:17
14 lines
1836 bytes
toylet wrote:
> hmm... I guess I have to stick with slnr for a while. I think they are 
> more or less the same feature by feature, both not able to process 
> attachment (like saving attachment to another file).

Even though designed as a text reader, at least tin _is_ able to
process attachments:

V         View/save multimedia attachments

If you have uudeview installed, you can also tag several messages
containing parts of a split file and save them at once. IIRC, slrn
can do the same.
Re: tin-1.6.2
#146304
Author: toylet
Date: Wed, 14 Apr 2004 14:40
16 lines
1909 bytes
Then I had a reason to make tin work... hmm... I really tried compiling 
tin with --disable-locale, but it still didn't show non-ascii characters 
properly.

> Even though designed as a text reader, at least tin _is_ able to
> process attachments:
> 
> V         View/save multimedia attachments
> If you have uudeview installed, you can also tag several messages


-- 
   .~.    Might, Courage, Vision. In Linux We Trust.
  / v \   http://www.linux-sxs.org
/( _ )\  Linux 2.4.22-xfs
   ^ ^    10:38pm up 1:37 1 user 1.28 1.12
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads