Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit make obvious what we are trying to do...



details:   https://anonhg.NetBSD.org/src/rev/4dcdc595a9c1
branches:  trunk
changeset: 767152:4dcdc595a9c1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 09 23:54:39 2011 +0000

description:
make obvious what we are trying to do...

diffstat:

 lib/libedit/read.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c3976cfd7b60 -r 4dcdc595a9c1 lib/libedit/read.c
--- a/lib/libedit/read.c        Sat Jul 09 23:46:32 2011 +0000
+++ b/lib/libedit/read.c        Sat Jul 09 23:54:39 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: read.c,v 1.60 2011/07/09 16:04:34 tron Exp $   */
+/*     $NetBSD: read.c,v 1.61 2011/07/09 23:54:39 christos Exp $       */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.60 2011/07/09 16:04:34 tron Exp $");
+__RCSID("$NetBSD: read.c,v 1.61 2011/07/09 23:54:39 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -352,7 +352,7 @@
                        }
                        goto again;
                }
-       } else if ((signed char)cbuf[0] >= 0 ||  /* ASCII */
+       } else if (isascii((unsigned char)cbuf[0]) ||
                /* we don't support other multibyte charsets */
                ++cbp != 1 ||
                /* Try non-ASCII characters in a 8-bit character set */



Home | Main Index | Thread Index | Old Index