On Sun, Nov 25 2007, Robert Widhopf-Fenk wrote:
> attached is a patch which fixes it for me in GNU Emacs 22,
> but it is not perfect as it possibly fails for names which
> cannot be converted to unibyte ...
Wouldn't it be better to encode the strings in UTF-8 and compare
thereafter? (encode-coding-string name 'utf-8)?
> +(defun bbdb-name-normalize (n)
> + "Normalizes a name, i.e. downcase and unibyte converion."
> + (when n
> + (setq n (downcase n))
> + (if (functionp 'string-make-unibyte)
> + (funcall 'string-make-unibyte n)
> + n)))
Using `name' instead of `name' would be more readable, IMHO.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
[email protected]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/