Mark the characters between 0x80 and 0xff as 1 cell wide, if compiled
with ALL_80_TO_FF_SW1 defined. This is not correct in the general case, but helps in certain restricted environments where nothing but the default locale is available and we know what we do(tm).
This commit is contained in:
parent
8c63679baf
commit
c607cb216f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: runetable.c,v 1.15 2007/09/29 07:55:45 tnozaki Exp $ */
|
||||
/* $NetBSD: runetable.c,v 1.16 2007/11/06 19:24:19 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993
|
||||
@ -39,7 +39,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 6/27/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: runetable.c,v 1.15 2007/09/29 07:55:45 tnozaki Exp $");
|
||||
__RCSID("$NetBSD: runetable.c,v 1.16 2007/11/06 19:24:19 martin Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -187,6 +187,40 @@ _RuneLocale _DefaultRuneLocale = {
|
||||
_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
|
||||
_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
|
||||
_CTYPE_C,
|
||||
#ifdef ALL_80_TO_FF_SW1
|
||||
/*80*/ _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
/*90*/ _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
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CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
/*f0*/ _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
_CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1, _CTYPE_SW1,
|
||||
#endif
|
||||
},
|
||||
{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
|
||||
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
|
||||
|
Loading…
Reference in New Issue
Block a user