delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/11/07/09:19:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <563E08EC.2000303@gmx.de>
Date: Sat, 07 Nov 2015 15:21:32 +0100
From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Grep 2.22 null-byte check fails.
X-Provags-ID: V03:K0:K5najKWibBb+qo1TAiL3PmmRiL+mjTy5vaiUjETHnS5qcwauxM4
d0u9ynNe9eIEIf/K2e799efK06lCishG+U7cOKyCkTEYnQEuUSGk+O0SEOKgqYJsvyR+id2
aWisQvYk3R4IyBzTQa5nQxK1vmCiP1JqIhXqDBS5S43M4vkbDv0Ehgqe9O01GhVXjDbGGTU
qqMy+0lXNQdgZ57eC7APw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Ma6Ilp9Rr3k=:D/Nge7nQ8tOQS2LPMZLGkU
r1foyvlsUnJXYgUuiliQn7PZp/2/n1mzhfIbH7hEdlN3EdLln1cXa2WV+2iiETySBVL9ktWBG
J0+F0f6F3gU88N/bLO/4TOYtDa3ulT+onc3GyPc/O9S/qojA7ITKZUT0OQUp2oO6nt8ABjuq6
008aKXcIDA/pTZ2m2IZNCc2DZJJAH8SxVjKn8E3ihQqqNgLsWMtaJhWFlkk98sIEcNxEMOouO
+ucBeKn3gRoLjYDU+nYZ2qo6ZgjBv4uZh9SgWoUnnXDrCj6dJQtzP1vd421Gm85z4u79GJ9Ys
rWOp0aZYUYJ52LM5O0XkfzQFO3Qg3eVPMynfAyPv/5ulvnAmpXiZ6Lm3OpExRIO2IF18k5Ozr
CHoIsVhrnhHmavfZz0RScukHB3qD7fVmLGF8wSIPwCQaTgOGMX4qZQQdIRwkWlC0zIHoGxaXz
D2d/uRWIMWHcaSkM/bc2kLuXUo67tVMxoy7BWiSrD+24H+Dshi+3ivisHNkSHvmAx5hC+G+QQ
UN1RTQaR6Wm/YzLoVU95SLAK3+tZqTuLOH+81CVM0ZVcxSq8soiIEui2IzFe2jxUvCRsDXIi4
7JQjGAAyfxVqomifzXZkZR0O1TBDwi6MQREGCh/CYhTHXnswcOtcvTG0I/eAHTRMnD/4Zr/40
YxOjlvcJSg4y+7JojxMwleQRZAnWADl+NXxFOGe6O1/tb7T4JthElnw+Ygcpbak4jluZ1WwYm
VgfiQ8tZ+hna0MHs5CefSEYllTekIVX1eaKkLFsmdoraUjwI3L7hMcfjZcYz3wRNRmpd5zf4K
Dg/C1c1
Reply-To: djgpp AT delorie DOT com

I am porting grep 2.22 and the null-byte check fails.
This check creates a file called "in" with the content: 00 0D 0A
and a pattern file called "pat" with the content: 00 24 0D 0A
and then runs the command:
  LC_ALL=C
  grep -a -f pat in

As result I get the output:

null-byte: failed test: -a '\0$' does not match '\0'


Now the question arises if this is a DJGPP/DOS specific issue
or if this is a DOS/WINDOWS specific issue.  In other words,
has someone compiled or ported grep 2.22 with mingw and checked
if the testsuite passes.  I do not have mingw and would not like
to have to install it only to resolve this issue.

TIA,
Juan M. Guerrero

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019