microsoft/Terminal

Problem switching in and out of UTF-8 mode

Open

#16,529 建立於 2024年1月5日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)C++ (3,212 fork)batch import
Area-VTHelp WantedIssue-BugProduct-Conhost

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

Windows Terminal version

1.18.3181.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

Output the character sequence twice using a tool of your choice: Esc % G E2 A3 BF Esc % @

Expected Behavior

Each time, the unicode character 28FF ⣿ (Braille Pattern Dots-12345678) will be printed.

Actual Behavior

The correct character is printed the first time, the second time (and any subsequent times) prints "⣿".

From my reading of the code, this is because Esc % @ (Select Default Character Set) correctly disengages UTF-8 by calling DesignateCodingSystem in ActionCsiDispatch. However, its companion seuqnece Esc % G (Select UTF-8 Character Set) is not handled and thus the sequence is never again rendered in Unicode.

貢獻者指南