From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: frederik.fouvry--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55256: 27.1; Unicode noncharacters may change writing direction Date: Wed, 04 May 2022 09:06:37 +0200 Message-ID: <875ymlepz6.fsf@acrolinx.com> Reply-To: frederik.fouvry@acrolinx.com 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="16787"; mail-complaints-to="usenet@ciao.gmane.io" To: 55256@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 04 09:08:20 2022 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 1nm97U-0004CA-Av for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 May 2022 09:08:20 +0200 Original-Received: from localhost ([::1]:48654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nm97T-00029Q-3D for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 May 2022 03:08:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm96F-000287-UQ for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 03:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nm96E-0004JN-1W for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 03:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nm96D-0008FZ-S4 for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 03:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: frederik.fouvry@acrolinx.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 May 2022 07:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55256 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165164802031703 (code B ref -1); Wed, 04 May 2022 07:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 May 2022 07:07:00 +0000 Original-Received: from localhost ([127.0.0.1]:41581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nm96B-0008FH-Do for submit@debbugs.gnu.org; Wed, 04 May 2022 03:06:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:57696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nm964-0008F4-E3 for submit@debbugs.gnu.org; Wed, 04 May 2022 03:06:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nm961-00026b-Kj for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 03:06:51 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:44552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nm95u-0004Hm-Ki for bug-gnu-emacs@gnu.org; Wed, 04 May 2022 03:06:44 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id b19so680366wrh.11 for ; Wed, 04 May 2022 00:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acrolinx.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ut29tsgBl91/Yj7Cqf6h0EO9/AQ4HNrN17Ni0mcr+c0=; b=Ad0ZUZljSvywMepari40AaV1sIdXaxVDr+wpwjiE8RN4fUScxHa+2bK1N+5JH5RKUH LQuO+VTslve7IXxsFaG9+KkNo8C+hBw0x+t8cTX+OvibtBROv7x841r+q6TND8GNmAop H6gW4qUtxnLWIb8cC62HI+K/ja6GGb+6hkQpRix0FKDPETZw1MMMo12w7Gtvi4S7hc7F JUjdX5gqyiza0HxAfu/KqznU+5CO3trh3/CIgP1i1KqsReTwWFtKiNBHHxP9kk8SK6+J LrJ2X+KG1Syt6x9dParZ3fO2EFrI8A2mRGBC5feCY4JF2SBuwkSSI84z4l/bIIY5pb3r 91zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ut29tsgBl91/Yj7Cqf6h0EO9/AQ4HNrN17Ni0mcr+c0=; b=nelTjLhGqs73Yn8ZvjqnbUFjt7XeACGSNPaJbloHTBHoyXbayIIfPV1DxUnray6qz3 +KnmOGS7fVRP7HAmbvyT0oEnCX54lXpxt0EwXc9zJAY1UjNw2ZcjyY9vmpTmo743TNvS JaA/xffZBkxWEnTIkQ6/Wf60MF2wSjdMqJyPkYvowbcK45pAt3LbkI442CQKAkNNQepM Ogc1d/oyQtigjUxRfHEZa+FawGmFzfZPQX8db3izWRB7CHTNvkj2L5B4oA6RyWuVg4Lm 3/CooE+hjemH8saaz4D/3wsz87rWUv0QkOVqsdTIlDj5CnY8XLPIw0RefZ962J3ap/dn nrtg== X-Gm-Message-State: AOAM533U7L+juOaHapVzexCzW5SDb9LCQYx/dnKbV1tzLHLAV7jMw/59 30evylkP4ma5pPF9nDWQJgk4NCt6zc8iChCH X-Google-Smtp-Source: ABdhPJzJYMnPkGgDqDtxV/if4CLwh/xGs4e9o1AmxyiTkyl7rvcKGf34/dcpjp1XsboQVmD/jP3onA== X-Received: by 2002:a05:6000:144f:b0:20c:6090:3040 with SMTP id v15-20020a056000144f00b0020c60903040mr10195377wrx.479.1651647999235; Wed, 04 May 2022 00:06:39 -0700 (PDT) Original-Received: from choiseul.acrolinx.com (ip5f5a029d.dynamic.kabel-deutschland.de. [95.90.2.157]) by smtp.gmail.com with ESMTPSA id q14-20020adfaa4e000000b0020c5253d91fsm11288378wrd.107.2022.05.04.00.06.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 00:06:38 -0700 (PDT) Original-Received: by choiseul.acrolinx.com (Postfix, from userid 1000) id 782DF16A2262; Wed, 4 May 2022 09:06:37 +0200 (CEST) Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=frederik.fouvry@acrolinx.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:231366 Archived-At: M-x set-input-method RET ucs RET jufdd0$1 RET If you type C-a and then step through the characters with the right arrow, the direction is reversed. It seems like the entry of $ followed by something else is triggering it, but that may just be an impression/side effect. I suspect that the reason is that most Unicode noncharacters (https://www.unicode.org/faq/private_use.html#nonchar1) are in an Arabic block (https://www.unicode.org/faq/private_use.html#nonchar4b) and that the cause is an incorrect generalisation of the properties of the characters in this block. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cair= o version 1.16.0) of 2020-09-19 built on lgw01-amd64-021 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.4 LTS Recent messages: Char: =EF=B7=90=E2=80=8E (64976, #o176720, #xfdd0, file ...) point=3D4361 o= f 7190 (61%) column=3D23 Mark set [2 times] Auto-saving...done Configured using: 'configure --build=3Dx86_64-linux-gnu --prefix=3D/usr '--includedir=3D${prefix}/include' '--mandir=3D${prefix}/share/man' '--infodir=3D${prefix}/share/info' --sysconfdir=3D/etc --localstatedir=3D/= var --disable-silent-rules '--libdir=3D${prefix}/lib/x86_64-linux-gnu' '--libexecdir=3D${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share= /emacs/site-lisp --program-suffix=3D27 --with-modules --with-file-notification=3Dinotify --with-mailutils --with-harfbuzz --with-json --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-lcms2 --with-cairo --with-xpm=3Dyes --with-gif=3Dyes --with-gnutls=3Dyes --with-jpeg=3Dyes --with-png=3Dyes --with-tiff=3Dyes --with-xwidgets 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs27-bifpWT/emacs27-27.1~1.git86d8d76aa3=3D= . -fstack-protector-strong -Wformat -Werror=3Dformat-security -no-pie' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie'' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: hexl-follow-ascii: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t global-activity-watch-mode: t activity-watch-mode: t auto-revert-mode: t show-paren-mode: t desktop-save-mode: t display-time-mode: t editorconfig-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: Features: (shadow sort mail-extr emacsbug ruler-mode hexl uni-input quail misearch multi-isearch magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit magit-core magit-autorevert magit-margin magit-transient magit-process with-editor shell magit-mode transient magit-git magit-base magit-section crm dash compat-27 compat-26 compat flymake-shellcheck flymake-proc flymake compile sh-script executable css-mode smie imenu rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode nxml-util nxml-enc xmltok ol-eww eww mm-url url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir ol-docview ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi vc-git diff-mode markdown-mode edit-indirect color dired-aux server activity-watch-mode request autorevert filenotify ert pp ewoc debug backtrace paren desktop frameset cus-start cus-load auto-dictionary flyspell ispell time editorconfig-core editorconfig-core-handle editorconfig-fnmatch timeclock mu4e mu4e-org mu4e-main mu4e-view mu4e-view-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum url url-proxy url-privacy url-expand url-methods url-history gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader wid-edit mu4e-view-common thingatpt mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-proc mu4e-utils doc-view jka-compr image-mode exif mu4e-lists mu4e-message shr url-cookie url-domsuf url-util svg xml dom flow-fill mule-util mailcap hl-line mu4e-vars mu4e-meta dired-x calfw-org org-capture org-element avl-tree generator org-agenda org-refile calfw holidays hol-loaddefs cl org-journal edmacro kmacro org-crypt org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol rx org-keys oc org-compat advice org-macs org-loaddefs find-func cal-iso cal-menu calendar cal-loaddefs vc-svn dsvn log-edit easy-mmode message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs warnings text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring pcvs-util add-log vc vc-dispatcher editorconfig cl-extra help-mode use-package-ensure use-package-core helm-easymenu info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 398834 33888) (symbols 48 37214 1) (strings 32 137584 6008) (string-bytes 1 4673915) (vectors 16 73119) (vector-slots 8 1675119 195896) (floats 8 531 329) (intervals 56 7085 0) (buffers 1000 76))