"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
No, there isn't. There's code in there to handle _8-bit_
characters. Try this:
Right, sorry I wasn't clear.
(let* ((latin1-ss (string (make-char 'latin-iso8859-1 95)))
;; don't use non-ASCII values in make-char, it's bad style
;; these values are indicies into ISO 2022 registers
(latin2-ss (string (make-char 'latin-iso8859-2 95)))
(latin1-addr (concat "Joe Te" latin1-ss "t
<joe.test(a)foo.org>"))
(latin2-addr (concat "Joe Te" latin2-ss "t
<joe.test(a)foo.org>")))
(concat "Works: <" (car (mail-extract-address-components latin1-addr))
">, Broken: <" (car (mail-extract-address-components latin2-addr))
">"))
I see. And thanks for the hint about make-char.
So it only works on Latin-1 by accident.
I don't know what it would take to make this work on
non-ISO-8859-1
characters.
Well, I think Simon has a point though. It shouldn't _have_ to work
on 8-bit characters, especially if the headers are encoded properly.
What bbdb should do is get the header from the raw article, decode it,
then look for matches. (IMHO)
That way we don't need to keep adding many special cases for the N
number of different encodings which are out there.
--
Josh Huber