🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #45321

tin: ISO-latin chars

#45321
From: Rui Pedro Mendes Salgueiro
Date: Fri, 11 Dec 1998 00:00
86 lines
3664 bytes
Hi. 

I have just upgraded from a very old version of tin
(tin 1.3 950824BETA) to the latest (at the time when I went to
the ftp site) tin pre-1.4 release 981114.

Well, it is great and it does a lot of things that I wanted for
a long time (like much better threading, not caring about mouse
buttons being pressed which simplifies copy-and-paste), but ...

I can no longer see the accented characters (ISO-8859-1 chars)
like (� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �)
which tin 1.3 passes unchanged from the newserver to the xterm.
Instead I get a '?' replacing each non-ASCII char.

So, I read the man page and I found this:

MM_CHARSET (mm_charset)
           Charset supported locally, [...]
	   Possible values include ISO-8859-X (where X is 1  to  10),
	   [...] If MIME_STRICT_CHARSET is
           defined at the compile time,  text  in  charset  other
           than  the  value  of  this parameter is considered not
           displayable and represented  as  '?'.   Otherwise,  all
           character  sets  are  regarded  as compatible with the
           display.

Well, first I do have set MM_CHARSET in my options to the value ISO-8859-1:
   ...
   74. MM_CHARSET                         :  ISO-8859-1
   ...	

But when I read a test post (which I wrote) and which has the header:

Content-Type: text/plain; charset=ISO-8859-1

It still substitutes the non-ascii chars by '?'.
This looks like a bug, no ?

Anyway, I decided to remove the MIME_STRICT_CHARSET option (I don't
know how conforming other people's newsreaders are, so I think it is
best that tin doesn't try to be too clever).

I used the following options:

./configure \
--with-editor=vim \
\
--disable-mime-strict-charset \
--with-mime-default-charset=ISO-8859-1 \
\
--with-spooldir=/usr/local/news/spool/articles \
--with-nov-dir=/usr/local/news/spool/overview \
--with-inews-dir=/usr/local/news/bin \
--with-libdir=/usr/local/news/db \

And I checked include/autoconf.h:

...
/* #undef       MIME_STRICT_CHARSET */
...

Just to make sure:

% grep STRICT *.h
autoconf.h:/* #undef    MIME_STRICT_CHARSET */

It is not being defined anywhere else (I also greped the other
directories: src, pcre, tools).

I recompiled tin twice. The second time I even uncommented the
line in include/autoconf.h. It now reads:
#undef  MIME_STRICT_CHARSET

Tin keeps substituting the non-ascii chars by '?' :(

Any ideas ? In particular is this something I am doing wrong or should
I submit a bug report ?

-- 
http://www.mat.uc.pt/~rps/

.pt is Portugal| `Whom the gods love die young'-Menander (342-292 BC)
        Europe |    Villeneuve 50-82, Toivonen 56-86, Senna 60-94

Technical Details
Message-ID: <74rc5e$hm5$1@rena.mat.uc.pt>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <74rc5e$hm5$1@rena.mat.uc.pt>
Subject: tin: ISO-latin chars
Date: Fri, 11 Dec 1998 00:00:00 +0000
From: Rui Pedro Mendes Salgueiro <rps@rena.mat.uc.pt>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 421202593
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=ISO-8859-1
X-Complaints-To: usenet@rena.mat.uc.pt
X-Trace: rena.mat.uc.pt 913388526 18117 193.137.206.20 (11 Dec 1998 15:02:06 GMT)
Organization: Universidade de Coimbra
Mime-Version: 1.0
User-Agent: tin/pre-1.4-981114 ("The Watchman") (UNIX) (FreeBSD/2.2.7-RELEASE (i386))
NNTP-Posting-Date: 11 Dec 1998 15:02:06 GMT
Newsgroups: news.software.readers