bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#43598: replace-in-string: finishing touches


From: Eli Zaretskii
Subject: bug#43598: replace-in-string: finishing touches
Date: Tue, 29 Sep 2020 07:12:16 +0300
User-agent: K-9 Mail for Android

On September 29, 2020 6:29:34 AM GMT+03:00, Richard Stallman <rms@gnu.org> 
wrote:
> 
>   > > It is paradoxical, but I think it is correct.
>   > > Equal compares the type of the string, not just the
>   > > characters in it.
> 
>   > No it doesn't. (equal (string-to-multibyte "A") "A") => t.
> 
> I am puzzled, then.  Why DOES the other example return nil?

Because the byte sequences of the two strings are different when there are 
non-ASCII bytes in the original unibyte string.





reply via email to

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