mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Merge pull request #2183 from cpacejo/fix-nonbmp
Fixes #2182. Fix output of non-BMP Unicode characters in NetDriver.
This commit is contained in:
@@ -1483,7 +1483,13 @@ namespace Terminal.Gui {
|
||||
output.Append (WriteAttributes (attr));
|
||||
}
|
||||
outputWidth++;
|
||||
output.Append ((char)contents [row, col, 0]);
|
||||
var rune = contents [row, col, 0];
|
||||
char [] spair;
|
||||
if (Rune.DecodeSurrogatePair((uint) rune, out spair)) {
|
||||
output.Append (spair);
|
||||
} else {
|
||||
output.Append ((char)rune);
|
||||
}
|
||||
contents [row, col, 2] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace UICatalog.Scenarios {
|
||||
|
||||
label = new Label ("RadioGroup:") { X = Pos.X (label), Y = Pos.Bottom (listView) + 1 };
|
||||
Win.Add (label);
|
||||
var radioGroup = new RadioGroup (new ustring [] { "item #1", gitString, "Со_хранить" }, selected: 0) {
|
||||
var radioGroup = new RadioGroup (new ustring [] { "item #1", gitString, "Со_хранить", "𝔽𝕆𝕆𝔹𝔸ℝ" }, selected: 0) {
|
||||
X = 20,
|
||||
Y = Pos.Y (label),
|
||||
Width = Dim.Percent (60),
|
||||
|
||||
Reference in New Issue
Block a user