From c718cb2a4a204627d6c2a9cfb1ac8e88c15a198b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 22 Aug 2011 09:25:04 -0700 Subject: [PATCH] Show xA0 (nbsp) as a non-printable character I want to see the difference between space and nbsp, and I consider nbsp to be a control character, so show it as such. Even if it is technically "printable". Signed-off-by: Linus Torvalds --- display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display.c b/display.c index c6cb8a3..77e05a4 100644 --- a/display.c +++ b/display.c @@ -194,7 +194,7 @@ static void vtputc(unsigned char c) return; } - if (c >= 0x80 && c < 0xA0) { + if (c >= 0x80 && c <= 0xA0) { static const char hex[] = "0123456789abcdef"; vtputc('\\'); vtputc(hex[c >> 4]);