From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51292: 27.2; Reversing strings with unicode combining characters Date: Wed, 20 Oct 2021 10:58:50 +0200 Message-ID: <875ytsnkc5.fsf@gnus.org> References: <2AC0A88D-4F2F-41A5-B945-8BB55260C0E8@gmail.com> <87fsswbyu0.fsf@gnus.org> <87y26oage0.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5681"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 51292@debbugs.gnu.org To: Howard Melman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 20 11:02:24 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1md7UO-0001Dt-Kp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 11:02:24 +0200 Original-Received: from localhost ([::1]:35384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md7UN-0006qE-Ji for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Oct 2021 05:02:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md7R8-0004TS-MM for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 04:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41161) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1md7R8-0004Ed-E4 for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 04:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1md7R8-00048U-AS for bug-gnu-emacs@gnu.org; Wed, 20 Oct 2021 04:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Oct 2021 08:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51292 X-GNU-PR-Package: emacs Original-Received: via spool by 51292-submit@debbugs.gnu.org id=B51292.163472034115891 (code B ref 51292); Wed, 20 Oct 2021 08:59:02 +0000 Original-Received: (at 51292) by debbugs.gnu.org; 20 Oct 2021 08:59:01 +0000 Original-Received: from localhost ([127.0.0.1]:52707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md7R6-00048F-T4 for submit@debbugs.gnu.org; Wed, 20 Oct 2021 04:59:01 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1md7R5-000482-Sb for 51292@debbugs.gnu.org; Wed, 20 Oct 2021 04:59:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nSSEiu91JcyshOyw2RkC8GnvagCh8X6OM8KYVLNoXWY=; b=Iq0BQtgoIjLPRUIqtTvXvI2xYv AKQVOvvIN/FYlFSwhT1VVpksMzlJ+xxvBMw/zVnc7MDUKcr7/q6NaYWgbHdTNdSHCLXk3QJasWc0/ czsYeGrkmgv8OPEXKz+P7D4rx3/okHLA+Xs5TuiWNThWf+bv/nwNfuW0mug8qkOubojQ=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1md7Qx-0006DY-59; Wed, 20 Oct 2021 10:58:53 +0200 X-Now-Playing: Mochipet's _Godzillafather Rick Owens Fogachine_: "Godzillafather Rick Owens Fogachine (Runway Mix)" In-Reply-To: (Howard Melman's message of "Tue, 19 Oct 2021 17:21:36 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217645 Archived-At: Howard Melman writes: >> But it might make sense to add function to tokenize a string into >> grapheme clusters -- I can see that being useful. Then the caller can >> chop and reverse the list of clusters as they wish. >> >> `string-tokenize-graphemes'? > > I agree that seems potentially useful. It's not that common to have un-normalised strings, though, and if you normalise the string first you get (reverse (ucs-normalize-NFC-string "nai\u0308ve")) =3D> "ev=C3=AFan" as expected. So I think adding more utility functions here wouldn't be productive (i.e., I don't think they would actually be useful for people -- they'd just complicate things for users further). So I think everything here is basically working as designed in Emacs, and that the design is fine. (And that the s-reverse isn't good.) So I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no