Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/nvi/common nvi cannot display international character(w...
details: https://anonhg.NetBSD.org/src/rev/1dad897120a5
branches: trunk
changeset: 771211:1dad897120a5
user: tnozaki <tnozaki%NetBSD.org@localhost>
date: Mon Nov 14 13:29:07 2011 +0000
description:
nvi cannot display international character(west european accented chars).
reported by Ian D. Leroux at current-users, thanks a lot!
diffstat:
dist/nvi/common/key.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 82cf7f1fd332 -r 1dad897120a5 dist/nvi/common/key.h
--- a/dist/nvi/common/key.h Mon Nov 14 13:24:04 2011 +0000
+++ b/dist/nvi/common/key.h Mon Nov 14 13:29:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.h,v 1.2 2011/03/21 14:53:02 tnozaki Exp $ */
+/* $NetBSD: key.h,v 1.3 2011/11/14 13:29:07 tnozaki Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -28,7 +28,7 @@
sp->conv.input2int(sp, n, nlen, &(cw), &wlen, &w)
#define CONST
#define CHAR_WIDTH(sp, ch) wcwidth(ch)
-#define INTISWIDE(c) (!!(c >> 8)) /* XXX wrong name */
+#define INTISWIDE(c) (wctob(c) == EOF) /* XXX wrong name */
#else
#define FILE2INT5(sp,buf,n,nlen,w,wlen) \
(w = n, wlen = nlen, 0)
Home |
Main Index |
Thread Index |
Old Index