On Monday, November 26, 2007 at 22:33:40, Reiner Steib wrote: > 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)?
Thanks this was exactly the hint I was looking for ;-) > > +(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. You mean in the doc string? Cheers Robert ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/