delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/21/07:39:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 21 Mar 2004 13:38:55 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: tin-1.6.2: 8-bit chars not displayed, gettext transliterates
Message-ID: <20040321123855.GA27936@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <c3en5t$ubr$1 AT sea DOT gmane DOT org> <20040320100546 DOT GA19548 AT cygbert DOT vinschen DOT de> <c3hm7u$1qm$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <c3hm7u$1qm$1@sea.gmane.org>
User-Agent: Mutt/1.4.2i

On Mar 20 16:59, A. Alper ATICI wrote:
> 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);
> ====================================================================

Cool, I've tweaked tin accordingly.  The above seems to be better
changed in include/tin.h:

--- tin.h.orig  2004-03-21 13:31:14.969448200 +0100
+++ tin.h       2004-03-21 13:31:32.747629500 +0100
@@ -63,8 +63,8 @@
 #      define INET6
 #endif /* HAVE_GETADDRINFO && HAVE_GAI_STRERROR && ENABLE_IPV6 */
 
-/* Locale support in Mac OS X doesn't work yet, so turn it off */
-#if defined (MAC_OS_X)
+/* Locale support in Mac OS X and in Cygwin doesn't work yet, so turn it off */
+#if defined (MAC_OS_X) || defined (__CYGWIN__)
 #      ifndef NO_LOCALE
 #              define NO_LOCALE 1
 #      endif /* !NO_LOCALE */

I've uploaded a new package containing that fix and build with
--disable-locale.

Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019