mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 01:18:00 +00:00
Stop ignoring the Unicode tag character range.
These were deliberately thrown away in our UTF-8 decoder, with a comment apparently introduced by RDB in the 2001 big Unicode patch. The purpose of this character range has changed completely since then, and now they act as modifier characters on top of U+1F3F4 to construct a space of flags (the standard examples being those of England, Scotland and Wales). We were failing to display those flags, and even pasting out of the terminal didn't give back the right Unicode.
This commit is contained in:
parent
b6ef4f18d5
commit
431838747b
@ -3637,10 +3637,6 @@ unsigned long term_translate(
|
||||
if (t > 0x10FFFF)
|
||||
return UCSINVALID;
|
||||
|
||||
/* This is currently a TagPhobic application.. */
|
||||
if (t >= 0xE0000 && t <= 0xE007F)
|
||||
return UCSINCOMPLETE;
|
||||
|
||||
/* U+FEFF is best seen as a null. */
|
||||
if (t == 0xFEFF)
|
||||
return UCSINCOMPLETE;
|
||||
|
@ -27,4 +27,4 @@ Dedicated emoji: 💜 🙂 🙁 (wide and should look correct)
|
||||
Combined via ZWJ: 👩💻 (PuTTY doesn't understand ZWJ)
|
||||
Skin tone mod: 👩🏻 👩🏿 (wcwidth doesn't know those are modifiers)
|
||||
Flags: 🇬🇧 🇺🇦 🇪🇺 (should work in GTK 2 or better)
|
||||
|
||||
Flags using tags: 🏴 🏴 🏴 (the tags are treated as combining marks)
|
||||
|
Loading…
Reference in New Issue
Block a user