Sync with latest OpenBSD sources:

"Tue Dec 17 16:37:05 2013 UTC

ctype cleanups.  Repeated re-audits of this sensitive area by okan and
myself, with a variety of other people spending some time as well.
Thanks."
/deraadt/

Also, adjust some whitespaces in emacs.c to reduce the diff against
upstream.