From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Maragakis via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#52067: Acknowledgement (29.0.50; string-glyph-split halts on certain emoji strings) Date: Tue, 23 Nov 2021 22:51:07 -0500 Message-ID: <829C7136-B97A-47CB-9F35-76EF73D971E5@icloud.com> References: Reply-To: Paul Maragakis Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) 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="33462"; mail-complaints-to="usenet@ciao.gmane.io" To: 52067@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 24 04:52:11 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 1mpjKN-0008S5-Bp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Nov 2021 04:52:11 +0100 Original-Received: from localhost ([::1]:48816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpjKL-0000O5-9c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Nov 2021 22:52:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpjKE-0000Nh-FG for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2021 22:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpjKE-0000KS-79 for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2021 22:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mpjKE-0000TM-3y for bug-gnu-emacs@gnu.org; Tue, 23 Nov 2021 22:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Maragakis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Nov 2021 03:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52067 X-GNU-PR-Package: emacs Original-Received: via spool by 52067-submit@debbugs.gnu.org id=B52067.16377258761763 (code B ref 52067); Wed, 24 Nov 2021 03:52:02 +0000 Original-Received: (at 52067) by debbugs.gnu.org; 24 Nov 2021 03:51:16 +0000 Original-Received: from localhost ([127.0.0.1]:52685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpjJU-0000SL-8l for submit@debbugs.gnu.org; Tue, 23 Nov 2021 22:51:16 -0500 Original-Received: from st43p00im-ztfb10061701.me.com ([17.58.63.172]:35110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mpjJS-0000S8-7q for 52067@debbugs.gnu.org; Tue, 23 Nov 2021 22:51:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1637725868; bh=mde0/dTOdujiWU1i00v748aWFHKaI4dOzcVuKH4fzZo=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=tCvRMN2axeJpGres+69kntlc4I7Zv6Ae44tBolpp5apQuMe53qjcS/HTQBjGzqSTx fvB/SfPXTVuusoAIas322Bd1HtonY4o2NoGUHKu5/fvX6QYBdXbETHq2mnAKKEJHmA vTLEh58uOKNm7fvgt8fXbaboTK8DPbfhKKXv9kH7pbxSZsKWwNpOtjC+bs/lFoPass BfmDuotLvnDnhpt8fwogmyZDuA6yUSF/US+9IZPBuiSkj+G4OqYwFfKaYzVXBLPWKc jgAUWN7WjtZB8K7/JPxexEiktl/vCTnE4QS4dtoz6WySX+f0oIS/BjJnpIaYa0P2u9 xYksaDfQUIe+w== Original-Received: from smtpclient.apple (unknown [160.39.47.209]) by st43p00im-ztfb10061701.me.com (Postfix) with ESMTPSA id 5783BAC085E for <52067@debbugs.gnu.org>; Wed, 24 Nov 2021 03:51:08 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425, 18.0.790 definitions=2021-11-24_01:2021-11-23, 2021-11-23 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=866 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2111240021 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:220698 Archived-At: The logic in string-glyph-split expects the first two elements in the = result from find-composition-internal to give the start and end of a multibyte = grapheme and return nil when there is a regular character at position POS. = However, this=20 isn't always the case. Let's call x the argument POS in find-composition-internal,=20 and "interval" the first two elements of the return value. The following example works as expected, i.e. x of 0, or 1 returns the = interval (0 2),=20 and x of 2, or 3 returns (2 4). (null (pp (mapcar '(lambda (x) (list x (find-composition-internal x nil = "=E2=9C=88=EF=B8=8F=E2=9C=88=EF=B8=8F" nil))) '(0 1 2 3 4)))) ((0 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (1 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (2 (2 4 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (3 (2 4 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (4 nil)) nil In the following case, however, x of 2 returns interval (0 2). (null (pp (mapcar '(lambda (x) (list x (find-composition-internal x nil = "=E2=9C=88=EF=B8=8F=F0=9F=8C=8D" nil))) '(0 1 2 3)))) ((0 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (1 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (2 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (3 nil)) nil Interestingly, in the following case, an x of 0, 1, 2, or 3 all return = (0 2). (null (pp (mapcar '(lambda (x) (list x (find-composition-internal x nil = "=E2=9C=88=EF=B8=8F=F0=9F=8C=8D=F0=9F=8C=8D" nil))) '(0 1 2 3 4)))) ((0 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (1 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (2 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (3 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (4 nil)) nil And in the following case a POS of 3 returns (3 5) (null (pp (mapcar '(lambda (x) (list x (find-composition-internal x nil = "=E2=9C=88=EF=B8=8F=F0=9F=8C=8D=E2=9C=88=EF=B8=8F" nil))) '(0 1 2 3 4 = 5)))) ((0 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (1 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (2 (0 2 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (3 (3 5 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (4 (3 5 [[# 9992 65039] 296 [0 1 9992 233 23 0 23 18 4 nil]])) (5 nil)) nil > On Nov 23, 2021, at 6:02 PM, GNU bug Tracking System = wrote: >=20 > Thank you for filing a new bug report with debbugs.gnu.org. >=20 > This is an automatically generated reply to let you know your message > has been received. >=20 > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. >=20 > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org >=20 > If you wish to submit further information on this problem, please > send it to 52067@debbugs.gnu.org. >=20 > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. >=20 > --=20 > 52067: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52067 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems