On Wed, Oct 1, 2014 at 8:42 AM, Norihiro Tanaka <nori...@kcn.ne.jp> wrote: > Norihiro Tanaka wrote: >> I haven't found a clear test case yet. > > I haven't found a clear test case yet, but I have already found to run > over the end of the input buffer with below. > > $ printf '' | env LC_ALL=zh_CN src/grep -z .
Thanks. This will work, if nothing better comes up, since when running ASAN-enabled binaries, this evokes an abort: LC_ALL=zh_CN src/grep -z . < /dev/null [note that I dropped the "env" and using input redirection is slightly better for debugging than using a pipe]