Revert "vt: support Unicode recomposition"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2025 09:21:18 +0000 (11:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2025 09:21:18 +0000 (11:21 +0200)
This reverts commit cd6937d42bca46f2143544918e535d6fd22b71b7.

A new version of the series was submitted, so it's easier to revert the
old one and add the new one due to the changes invovled.

Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c

index e3d35c4f92045a8ed7c18ac2193d2913381249d4..5d53feeb5d2bf872b51ef857416a7f761b0524f5 100644 (file)
@@ -2953,15 +2953,8 @@ static int vc_con_write_normal(struct vc_data *vc, int tc, int c,
                                 * double-width.
                                 */
                        } else {
-                               /* try recomposition */
-                               prev_c = ucs_recompose(prev_c, c);
-                               if (prev_c != 0) {
-                                       vc_con_rewind(vc);
-                                       c = prev_c;
-                               } else {
-                                       /* Otherwise zero-width code points are ignored */
-                                       goto out;
-                               }
+                               /* Otherwise zero-width code points are ignored */
+                               goto out;
                        }
                }
        }