Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: "A. Alper ATICI" Subject: Re: tin-1.6.2: 8-bit chars not displayed, gettext transliterates Date: Sat, 20 Mar 2004 16:59:40 +0200 Lines: 53 Message-ID: References: <20040320100546 DOT GA19548 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-9 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: mstr195175-14224.dial-in.ttnet.net.tr X-Newsreader: Forte Agent 2.0/32.646 Hi, On Sat, 20 Mar 2004 11:05:46 +0100, Corinna Vinschen wrote: > >It was not a known problem but now it is. I have no solution for >that problem so far, unfortunately. Try experimenting with setting >the environment variable ISO2ASC to values between 0 and 6 before >starting tin, perhaps that mitigates it a bit. > I guess I've come up with sth to resolve the issues: First off, transliteration is a general gettext issue in Cygwin (i.e. applicable to mutt, slrn, etc. also) and can be remedied by setting OUTPUT_CHARSET in the environment accordingly, e.g. $ OUTPUT_CHARSET=iso-8859-1 LC_ALL=de_DE tin -ra I'm not sure whether all versions of gettext shipped with Cygwin honors this env. var, but gettext-0.12 (cygintl-2) knows about it. As for displaying 8-bit chars in messages, I've tweaked one line in sources (see below) and rebuilt with --disable-locale, specifically: ./configure --prefix=/usr --mandir=/usr/share/man --enable-prototypes\ --without-pgp --without-pgpk --with-screen=ncurses \ --disable-locale --disable-mime-strict-charset I've managed to display 8-bit chars after that in messages, in headers also. The tweak below enables NLS without locale (which is Cygwin), but have not tested thoroughly to observe side-effects, if any. ==================================================================== diff -Nur tin-1.6.2/src/main.c tin/src/main.c --- tin-1.6.2/src/main.c 2003-08-10 16:27:36.000000000 +0300 +++ tin/src/main.c 2004-03-20 09:56:54.004414400 +0200 @@ -96,7 +96,7 @@ cmd_line = TRUE; /* initialize locale support */ -#if defined(HAVE_SETLOCALE) && !defined(NO_LOCALE) +#if defined(HAVE_SETLOCALE) if (setlocale(LC_ALL, "")) { # ifdef ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); ==================================================================== -- Alper Atıcı PGP key @ http://sks.dnsalias.net:11371/pks/lookup?op=index&search=0xB824F550 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/