From owner-freebsd-ports Sat Feb 24 8:41:11 2001 Delivered-To: freebsd-ports@freebsd.org Received: from wint.itfs.nsk.su (wint.itfs.nsk.su [212.20.32.43]) by hub.freebsd.org (Postfix) with ESMTP id 4C5AA37B401; Sat, 24 Feb 2001 08:41:07 -0800 (PST) (envelope-from nnd@wint.itfs.nsk.su) Received: (from nnd@localhost) by wint.itfs.nsk.su (8.11.2/8.11.1) id f1OGcWK13261; Sat, 24 Feb 2001 22:38:32 +0600 (NOVT) (envelope-from nnd) Date: Sat, 24 Feb 2001 22:38:32 +0600 From: Nickolay Dudorov To: nimmich@uni-muenster.de Cc: ache@freebsd.org, ports@freebsd.org Subject: Patch for tin's src/keymap.c error Message-ID: <20010224223832.A13241@wint.itfs.nsk.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In the file 'keymap.c' there is the next fragment started from the line 912 (this is for tin-1.5.8-release, the same problem was in the tin-1.5.6-release): ------------------------------------------------------------------------------ /* get locale suffix */ map = get_val("LC_ALL", get_val("LC_CTYPE", get_val("LC_MESSAGES", get_val("LANG", "")))); if (strlen(map)) { if ((ptr = strchr (map, '.'))) *ptr = '\0'; ------------------------------------------------------------------------------ After the last assignment (if it is executed) the value of the environment variable ("LANG" for example in my case) will be changed and this can later broke the correct behavior of the EDITOR command for example. The next patch makes the tin's behavior more correct. N.Dudorov ======================================================================== --- src/keymap.c.orig Sat Feb 24 22:08:02 2001 +++ src/keymap.c Sat Feb 24 22:08:02 2001 @@ -936,6 +936,8 @@ } #endif /* TIN_DEFAULTS_DIR */ +/* Restore environment value */ + if (ptr != NULL) *ptr ='.'; if (!fp) return FALSE; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message