Commit Graph

21 Commits

Author SHA1 Message Date
kim b3399fd721 Implement 8-bit pass-through. 2002-09-12 01:31:41 +00:00
kim dfb75c5ad4 Add back locale support for data display.
We only enable 8-bit output for known single-byte locales, currently
ISO8859-*.  For all other locales the program output is unchanged.

RFC-1288 recommends that administrators have a mechanism to enable
characters greater than ASCII 126.  A suggested solution is an
environment variable.  The environment variables of choice here are
LC_CTYPE and LANG.

Thanks to Martin Husemann <martin@duskware.de> for the idea on checking
for known single-byte locales, to Johan Danielsson <joda@pdc.kth.se> for
checking RFC-1288, and to Jun-ichiro itojun Hagino <itojun@iijlab.net>
for insisting on retaining security for multi-byte locales.

If you experience any problems with these changes, please send me email
describing the problem and how to repeat it.  I'd rather try to fix the
problem than have this change reverted.  Thanks!
2002-09-10 03:02:40 +00:00
itojun f695b9ecd3 revert attempt to make finger locale-dependent. (1) locale dependent
daemon is a bad idea, (2) there's no standard in 8bit finger, (3) there's no
guarantee that finger/fingerd uses the same locale, (4) existing finger client
could scream.  see tech-userlevel.
2002-08-20 00:27:59 +00:00
kim b33db3215a Obey the locale settings of the user when deciding what characters are
valid for output.  If something bad gets printed, either the locale
settings for the user (or output terminal) are wrong, or the LC_CTYPE
definitions on the system are invalid.
2002-08-10 16:10:46 +00:00
tron a626c50944 Avoid segmentation fault if "finger @somehost" is used. 2002-08-05 08:04:03 +00:00
christos 8bff4369e7 support utmpx; no lastlogx support yet. 2002-08-02 00:10:40 +00:00
wiz c63ad27273 Note -g in usage. bin/16592 by Ryan Younce. 2002-05-02 13:04:10 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
christos b4775af2e3 index -> strchr 1998-12-19 15:59:50 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
perry bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
mrg 987dbad8ba merge lite-2. WARNSify. clean up .Nm. 1997-10-19 08:13:23 +00:00
lukem 906b60f5e0 getopt returns -1 not EOF 1997-10-18 14:49:41 +00:00
mrg 2703290213 add -g flag: do not show non real name gecos info. 1997-09-09 02:41:06 +00:00
pk f6d87734a6 NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
lukem 3ccb8ba1c9 - add -h (show hostnames in short listing instead of office info), and
-o (the reverse of this, also the default)
- use vis(3) in vputc() instead of handcrufted function (from OpenBSD).
- move gecos expansion into expandusername() (a la sendmail's buildfname).
  A generic version of this last bit in libutil would be useful...
- cleanup the code, fix prototypes, etc.
1996-11-21 06:01:47 +00:00
cgd fcb1f85786 pull in string.h or stdlib.h as necessary. 1994-12-24 16:33:46 +00:00
brezak 4eae27f3eb Whilst hacking the Net/2 version of finger to work on Solaris 2.2 (we
needed a finger on that platform which grokked the office/phone # GCOS
info), I decided to put mail status in (as the solaris version has
that).

The attached patch adds:
- manual page typos fixed: finger doesn't scan .forward, contrary to
  what the man page says (and really shouldn't either, IMHO - that's
  what telnet host SMTP & VRFY are for :)

- added a mail check (printed between login info and the project).
  three different messages possible:
  - if you have no mail:
        No Mail.
  - if you have mail, but there's no unread mail:
        Mail last read DDD MMM ## HH:MM (TZ)
  - if you have new mail:
        New mail received DDD MMM ## HH:MM (TZ)
             Unread since DDD MMM ## HH:MM (TZ)

- fixed the manual page.

lm@yallara.cs.rmit.OZ.AU (Luke Mewburn)
1993-10-07 19:58:28 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00