Skip to content

[Bug]: Data holding a pair of invisible operators is read as right-to-left display text #3335

Done

Description

@jgregoriorincon

Before you start

  • I searched the existing issues and did not find a duplicate.
  • This is a bug report, not a usage question.

What happened?

Right-to-left display text is marked with invisible code points (U+2063/U+2062 around a line, U+2064/U+2061 around a run) so that it can be put back in logical order when it leaves the screen (#3286). Data that happens to hold a start mark and its end on one line is read the same way, with no notice: the two code points are removed from command parameters, and in notices, file names, the clipboard and the window title the text between them is also changed (a run is reversed, brackets in a line are mirrored).

Separately, once a string holds any mark, removing the marks allocates a character list and flag lists for every line, including lines without one.

Found by reading the code.

Steps to reproduce

  1. Copy, or pass to a command, a line holding U+2064, some text and U+2061.
  2. Compare what comes out with the input.

Expected behavior

Only text RustGIS marked is changed: a pair is accepted only when its logical text, shaped again, gives the same segment. Lines without a mark are copied without further work.

How are you running RustGIS?

Desktop app (built from source)

Version

main, after #3286

Operating system, browser and graphics

Linux (Fedora), any.

Activity

  1. jgregoriorincon commented on Nov 29, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions