We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe26933 commit 6802f35Copy full SHA for 6802f35
drivers/tty/vt/vt.c
@@ -3007,6 +3007,19 @@ static int vc_get_glyph(struct vc_data *vc, int tc)
3007
return tc;
3008
}
3009
3010
+ /*
3011
+ * The Unicode screen memory is allocated only when required.
3012
+ * This is one such case: we're about to "cheat" with the displayed
3013
+ * character meaning the simple screen buffer won't hold the original
3014
+ * information, whereas the Unicode screen buffer always does.
3015
+ */
3016
+ vc_uniscr_check(vc);
3017
+
3018
+ /* Try getting a simpler fallback character. */
3019
+ tc = ucs_get_fallback(tc);
3020
+ if (tc)
3021
+ return vc_get_glyph(vc, tc);
3022
3023
/* Display U+FFFD (Unicode Replacement Character). */
3024
return conv_uni_to_pc(vc, UCS_REPLACEMENT);
3025
0 commit comments