Subject: Re: bin/19832: /bin/sh has internationalization issues
To: None <>
From: David Laight <>
List: netbsd-bugs
Date: 01/15/2003 17:22:15
> >Fix:
> Rotottile the code passing lengths around instead of relying on sentinels?
> Maybe do it completely and make it multi-byte character safe?

The shell also uses [0x81..0x8a] as 'special characters' (parser.h),
maybe the (U)PEOF could be done the same way (with an escape if the
special value occurs in the input data).

(I've not looked at this today, but IIRC the macros that check for
UPEOF are rarely called with strings that might contain UPEOF.)


David Laight: