|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v2] dfa: optimize UTF-8 period |
Date: | Tue, 20 Apr 2010 12:41:14 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.3 |
On 04/20/2010 12:06 PM, Jim Meyering wrote:
printf '\n'|LC_ALL=en_US.utf8 src/grep -zl . printf '\0'|LC_ALL=en_US.utf8 src/grep -l . They should fail.
By the way, I disagree that the first should fail. With -z the record separator ("newline") character is \0, so \n is just like any other character. The second should fail with
printf '\0'|LC_ALL=en_US.utf8 POSIXLY_CORRECT=1 src/grep -l . Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |