racket / racket/gui

Invalid unicode rendering

Open
#249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

The following code:

#lang racket/gui
(displayln (string-append "א" "\taleph"))
(define fr (new frame% [label "list"]))
(new list-box%
     [parent fr]
     [label ""]
     [choices '("ℵ\taleph"
                "א\taleph"
                "ε\tepsilon")])
(send fr show #t)

produces:
Screenshot from 2021-11-05 11-34-44

Observe that the א (U+05D0, right to left) line is reversed compared to what is specified. This may be a potential threat, based on this article.

The first aleph (U+2135, left to right) is also fine

Several other right-to-left symbols behave similarly.

The issue does not appear in DrRacket itself, only in the gui element (I did not try with other gui elements).

cc @samth @rfindler

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report provides a minimal #lang racket/gui reproduction using list-box% and contrasts the result with DrRacket. Run that example first, then trace the list-box% GUI path; done means right-to-left entries display in the specified order while the shown left-to-right entries remain correct.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.