$NetBSD: patch-aa,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ --- dired.c.orig 2008-12-30 12:40:28.000000000 +0000 +++ dired.c @@ -570,11 +570,11 @@ d_makename(struct line *lp, char *fn, si ep = lp->l_text + llength(lp); p++; /* skip action letter, if any */ for (i = 0; i < NAME_FIELD; i++) { - while (p < ep && isspace(*p)) + while (p < ep && isspace((unsigned char)*p)) p++; - while (p < ep && !isspace(*p)) + while (p < ep && !isspace((unsigned char)*p)) p++; - while (p < ep && isspace(*p)) + while (p < ep && isspace((unsigned char)*p)) p++; if (p == ep) return (ABORT);