Subject: problems with 'elm-2.4 pl25' and 'NLSPATH'
To: None <current-users@NetBSD.ORG>
From: Andrew Wheadon <andrew@wipux2.wifo.uni-mannheim.de>
List: current-users
Date: 02/08/1997 02:47:31
The following problem turned up with elm 2.4 PL25.
When 'NLSPATH' is defined to a valid file i.e.
NLSPATH=/usr/share/nls/C/libc.cat; export NLSPATH
then saving the options in elm _fails_ and the
messages displayed don't fit what is happening.
(other messages in other parts of the program seem to function fine)
Commands in save_opts.c using 'catgets' fail.
i.e. line 252:
fprintf(newelmrc, catgets(elm_msg_cat, ElmrcSet, ElmrcOptionsFile,
"#\n# .elm/elmrc - options file for the ELM mail system\n#\n"));
It seems to use the value of ElmrcOptionsFile from s_elmrc.h
#define ElmrcSet 0x1
...
#define ElmrcOptionsSavedIn 0x6
...
and inserts the Message one would get from errno=6 instead of the
"#\n#...." line.
If one increases ElmrcSet to a higher number like 0x7 it works again.
Is elm or is NetBSD wrong in it's use of NLS ?
Cheerio
Andrew
--
The cost of living hasn't affected its popularity. (Mark Twain)
current release=doc host=netbsd.wifo.uni-mannheim.de \ "NetBSD-current mirror"
hostbase=/mit/ftp/pub/NetBSD base=/usr prefix=/usr backup delete use-rel-suffix