NLS and embedded strings in commands.

From: Paul Reilly <pareilly_at_tcd.ie>
Date: Fri, 03 Aug 2001 17:18:28 +0100 (IST)

Hi,

A quick question! I'm looking for all the possible errors that 'passwd'
can produce so that I can write an expect script to handle all of them.
Running 'strings' on passwd itself doesn't give them, but if I find the
NLS directories I can find the passwd strings in passwd.cat....

% strings /usr/lib/nls/msg/en_US.ISO8859-1/passwd.cat
usage: chfn [username]
usage: chsh [username]
usage: passwd [-afqs] [username]
%s: %u: unknown user uid.
...
etc

However the passwd program uses the word "passcode" in places.
("You may not re-use that passcode this soon.") - But if I grep for
"passcode" on the passwd.cat files, there's no match!

% strings en_US.88591/passwd.cat | grep passcode
% strings en_US.ISO8859-1/passwd.cat | grep passcode
%

Am I looking at the wrong files?

Thanks

Paul
Received on Fri Aug 03 2001 - 16:21:52 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT