patch-2.1.86 linux/drivers/char/console.c

Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/char/conmakehash.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -1420,6 +1420,12 @@
                                 /* If we got -4 (not found) then see if we have
                                    defined a replacement character (U+FFFD) */
                                 tc = conv_uni_to_pc(0xfffd);
+
+				/* One reason for the -4 can be that we just
+				   did a clear_unimap();
+				   try at least to show something. */
+				if (tc == -4)
+				     tc = c;
                         } else if ( tc == -3 ) {
                                 /* Bad hash table -- hope for the best */
                                 tc = c;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov