πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Renan Sun, 05 Mar 2006 00:18
Tin (newbie): how to get accentuation correctly working?
#181408
Author: Renan
Date: Sun, 05 Mar 2006 00:18
19 lines
1498 bytes
Hello,

I just installed/compiled the latest version of Tin on my Linux box
(Slackware 10.2).

Now I would like to know if someone has pointers
on how to get accents working. 

Currently, whenever a message has an accented character
(or special char like the Copyright symbol) it is replaces
by a question mark. And I can't type special characters 
either.

Any tutorials? I'm new to Tin but have some Linux knowledge.

Thanks,
Renan

Re: Tin (newbie): how to get accentuation correctly working?
#181422
Author: Peter J Ross
Date: Sun, 05 Mar 2006 11:06
43 lines
2809 bytes
On 5 Mar 2006 01:18:12 +0100, Renan <Renan@nowhere.com> wrote in
news.software.readers:

> Hello,
>
> I just installed/compiled the latest version of Tin on my Linux box
> (Slackware 10.2).
>
> Now I would like to know if someone has pointers
> on how to get accents working. 
>
> Currently, whenever a message has an accented character
> (or special char like the Copyright symbol) it is replaces
> by a question mark. And I can't type special characters 
> either.
>
> Any tutorials? I'm new to Tin but have some Linux knowledge.

If you can't see or type non-ASCII characters in your editor, the
problem isn't with tin. Your locale setting or choice of console font
may be to blame. I can't help you with either of those, beyond
suggesting that you look at the output of the locale command and ask
for help in a Slackware group if necessary.

If other terminal programs display non-ASCII characters properly but
tin doesn't, it's possible that mm_charset or mm_network_charset is
set wrongly. Both are discussed in the tin man page.

PJR :-)
-- 
Have you been touched    ___    ___          Hammer of Thor, Jan 2006
by His noodly           / _ \  / _ \
appendage?             ( (_) )( (_) )        Pierre Salinger Memorial
                        \_ _/  \_ _/         Hook, Line & Sinker, Dec
STOP GLOBAL   __       _.-\\----//--._                2003 & May 2005
WARMING   _  / _\___.-'/ _| / _\  /\/\`-._.-.__   _
NOW,     (_\_)| \___   ||_  ((_  //\/\\  _.-._ \-' )     AHM Wittiest
JIM LAD!   \__)   __)  | _| _) ) ||  || (_    \_.-'      Troll of the
                 /_-.  ||   \_/  ||  .-'-.\                Year, 2003
http://      _._//  / .--._______.-'\ \   \\__._          2004 & 2005
www.        /_._/   \ \              ))    \__._) 
venganza   (/     _.-')             ( `-._          wsd 42 ~ mhm 34x8
.org/            (_.-'         :F_P: `--._)      smeeter 30 ~ mwpl 12
Re: Tin (newbie): how to get accentuation correctly working?
#181451
Author: Renan(tm)
Date: Mon, 06 Mar 2006 01:01
39 lines
2160 bytes
Peter J Ross wrote:


> If you can't see or type non-ASCII characters in your editor, the
> problem isn't with tin. Your locale setting or choice of console font
> may be to blame. 

locale gives me:

renan@momentum:~$ locale
LANG=en_US
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C

I can type and see non-ASCII chars properly in other console programs.

> If other terminal programs display non-ASCII characters properly but
> tin doesn't, it's possible that mm_charset or mm_network_charset is
> set wrongly. Both are discussed in the tin man page.

Other terminal programs display those non-ASCII characters OK.

MM_NETWORK_CHARSET is set to UTF-8.

I will try it a bit more, to see if I can get it working.

Thanks,
Renan.
Re: Tin (newbie): how to get accentuation correctly working?
#181452
Author: Peter J Ross
Date: Mon, 06 Mar 2006 01:22
55 lines
2822 bytes
On 6 Mar 2006 02:01:48 +0100, Renan(tm)
<renan@momentum.marreka.no-ip.com.INVALID> wrote in
news.software.readers:

> Peter J Ross wrote:
>
>
>> If you can't see or type non-ASCII characters in your editor, the
>> problem isn't with tin. Your locale setting or choice of console font
>> may be to blame. 
>
> locale gives me:
>
> renan@momentum:~$ locale
> LANG=en_US
> LC_CTYPE="C"
> LC_NUMERIC="C"
> LC_TIME="C"
> LC_COLLATE="C"
> LC_MONETARY="C"
> LC_MESSAGES="C"
> LC_PAPER="C"
> LC_NAME="C"
> LC_ADDRESS="C"
> LC_TELEPHONE="C"
> LC_MEASUREMENT="C"
> LC_IDENTIFICATION="C"
> LC_ALL=C

There are far too many "C"s in there. en_US ought to apply to
everything, and LC_ALL probably shouldn't have a value set at all.

You might have a program called "setlocale" If you have it, its man
page might be useful.

Otherwise, if Google doesn't help and none of the kind NSR regulars
speaks up, you may have to visit the den of vipers that is
alt.comp.os.slackware.


PJR :-)
-- 
Have you been touched    ___    ___          Hammer of Thor, Jan 2006
by His noodly           / _ \  / _ \
appendage?             ( (_) )( (_) )        Pierre Salinger Memorial
                        \_ _/  \_ _/         Hook, Line & Sinker, Dec
STOP GLOBAL   __       _.-\\----//--._                2003 & May 2005
WARMING   _  / _\___.-'/ _| / _\  /\/\`-._.-.__   _
NOW,     (_\_)| \___   ||_  ((_  //\/\\  _.-._ \-' )     AHM Wittiest
JIM LAD!   \__)   __)  | _| _) ) ||  || (_    \_.-'      Troll of the
                 /_-.  ||   \_/  ||  .-'-.\                Year, 2003
http://      _._//  / .--._______.-'\ \   \\__._          2004 & 2005
www.        /_._/   \ \              ))    \__._) 
venganza   (/     _.-')             ( `-._          wsd 42 ~ mhm 34x8
.org/            (_.-'         :F_P: `--._)      smeeter 30 ~ mwpl 12
Re: Tin (newbie): how to get accentuation correctly working?
#181462
Author: Urs Janßen
Date: Mon, 06 Mar 2006 13:38
18 lines
1808 bytes
In <auasd3-k5l.ln1@momentum.myisp.com>, "Renan(tm)" wrote:
> locale gives me:
> renan@momentum:~$ locale
> LANG=en_US
> LC_CTYPE="C"

thus isprint(3) doesn't know about non US-ASCII chars (and tin uses
(isprint(3) to see if the char is a printable char). this is
discusses in doc/umlauts.txt for the tin tar-ball and at the end of
the manpage.

> LC_ALL=C

LC_ALL overrides any other setting made above.

> I can type and see non-ASCII chars properly in other console programs.

then they do not use isprint() and co.
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