Date: Sat, 24 Feb 2001 22:38:32 +0600 From: Nickolay Dudorov <nnd@wint.itfs.nsk.su> 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>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010224223832.A13241>