On Mon, Nov 26 2007, Robert Widhopf-Fenk wrote:
> On Monday, November 26, 2007 at 22:33:40, Reiner Steib wrote:
>> 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 ;-)
Disclaimer: 100% untested.
>> > +(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?
Sorry, I meant... "Using `name' instead of `n'".
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/