emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case-insensitive string comparison


From: Sam Steingold
Subject: Re: case-insensitive string comparison
Date: Wed, 20 Jul 2022 13:06:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)

> * Roland Winkler <jvaxyre@tah.bet> [2022-07-20 11:24:38 -0500]:
>
> On Tue, Jul 19 2022, Stefan Monnier wrote:
>>> PS. Actually, compare-strings/ignore_case is broken because it does,
>>> essentially, upcase both arguments, see
>>> https://stackoverflow.com/q/319426/850781
>>
>> Hmm... `string-collate-equalp`?
>
> - BBDB needs to know whether a name is already present in the database
>   or not, ignoring case.  The function bbdb-string= is again what Sam
>   suggests to put into subr.el.  The function string-collate-equalp
>   might be better suited for this.  But which locale should it use?

`bbdb-file-coding-system' ?

> Is there a "univeral default locale"?

UTF-8 is, I think, the generally accepted universal default today.


-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://www.memritv.org https://iris.org.il https://www.dhimmitude.org
If you need a helping hand, just remember that you already have two.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]