summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-18 17:38:35 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-18 17:38:35 +0000
commitf3eb11c90276d13290914d17f58b32a134d7d359 (patch)
treef8305f5bbb2dbe483c08c39f04c6d1fc84020a0c /sys/arch
parentfd5083d1b4482a15181a47fa14dfea6317153654 (diff)
Make sure that, when a particular mapchar() can't find a proper glyph for the
requested character in the font it is using, it suggests a question mark character, instead of a space, so that the existence of the non-representable character becomes visible. Note that this is consistent with pcdisplay which suggests a diamond for missing glyphs.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/pcons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c
index 84ebc0ac4a5..c31121cf7b3 100644
--- a/sys/arch/sparc64/dev/pcons.c
+++ b/sys/arch/sparc64/dev/pcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcons.c,v 1.18 2010/06/28 14:13:31 deraadt Exp $ */
+/* $OpenBSD: pcons.c,v 1.19 2013/10/18 17:38:33 miod Exp $ */
/* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */
/*-
@@ -659,7 +659,7 @@ pcons_mapchar(void *v, int uc, unsigned int *idx)
*idx = uc;
return (1);
} else {
- *idx = ' ';
+ *idx = '?';
return (0);
}
}