Mercurial > emacs
changeset 23969:3e4e87cddb85
(rmail-encode-string): Make sure mask value is
positive; (emacs-pid) returns a negative number on Windows 9x
which causes odd behaviour.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 31 Dec 1998 13:44:02 +0000 |
parents | 4c423f69142b |
children | d1d08f461c9c |
files | lisp/mail/rmail.el |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mail/rmail.el Thu Dec 31 13:16:45 1998 +0000 +++ b/lisp/mail/rmail.el Thu Dec 31 13:44:02 1998 +0000 @@ -3332,6 +3332,7 @@ restarting at the lowest byte of the mask whenever it runs out. Returns the encoded string. Calling the function again with an encoded string (and the same mask) will decode the string." + (setq mask (abs mask)) ; doesn't work if negative (let* ((string-vector (string-to-vector string)) (i 0) (len (length string-vector)) (curmask mask) charmask) (while (< i len)