From 0c2555e5c2886dca69d88981558aa1e2d07421b5 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 1 Aug 2009 19:31:02 +0000 Subject: [PATCH] =?UTF-8?q?utfincptr=20is=20a=20no-op=20in=20!UTFMODE,=20y?= =?UTF-8?q?et=20I=20had=20the=20=E2=80=9Cif=20(UTFMODE)=E2=80=9D=20not=20o?= =?UTF-8?q?nly=20commented=20out=20for=20mksh=20R38*=20but=20also=20used?= =?UTF-8?q?=20//=20denoting=20a=20temporary,=20de-=20bugging-only,=20code?= =?UTF-8?q?=20exclusion=20which=20never=20should=20have=20been=20in=20the?= =?UTF-8?q?=20wild?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Caught by ucode cc on DEC ULTRIX (where else?), thanks DEChengst ☻☺ --- eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eval.c b/eval.c index fda1d4f..0750d85 100644 --- a/eval.c +++ b/eval.c @@ -22,7 +22,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.63 2009/07/25 20:26:31 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/eval.c,v 1.64 2009/08/01 19:31:02 tg Exp $"); /* * string expansion @@ -397,13 +397,13 @@ expand(const char *cp, /* input word */ finc = flen + from; } else finc = from < flen ? from : flen; -// if (UTFMODE) + if (UTFMODE) utfincptr(beg, &finc); beg += finc; flen = utflen(beg); if (num < 0 || num > flen) num = flen; -// if (UTFMODE) + if (UTFMODE) utfincptr(beg, &num); strndupx(x.str, beg, num, ATEMP); goto do_CSUBST;