unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51292: 27.2; Reversing strings with unicode combining characters
@ 2021-10-19 19:16 Howard Melman
  2021-10-19 19:26 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Howard Melman @ 2021-10-19 19:16 UTC (permalink / raw)
  To: 51292

Reversing a string fails to account for unicode combining characters

    (reverse "nai\u0308ve")
    "ev̈ian"

Note the diaeresis is now on the v and not the i.  s-reverse gets it right:

    (s-reverse "nai\u0308ve")
    "evïan"

I tried on both:

GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, Carbon Version 158 AppKit 1671.6) of 2021-03-27
GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12

-- 

Howard





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-21  3:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 19:16 bug#51292: 27.2; Reversing strings with unicode combining characters Howard Melman
2021-10-19 19:26 ` Lars Ingebrigtsen
2021-10-19 20:50   ` Lars Ingebrigtsen
2021-10-19 21:21     ` Howard Melman
2021-10-20  8:58       ` Lars Ingebrigtsen
2021-10-19 23:13     ` Stefan Kangas
2021-10-20  8:11       ` Lars Ingebrigtsen
2021-10-20 13:02         ` Stefan Kangas
2021-10-21  2:50           ` Lars Ingebrigtsen
2021-10-21  3:51             ` Stefan Kangas
2021-10-20 11:50     ` Eli Zaretskii
2021-10-20 11:45   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).