From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.help
Subject: Re: grep-find question (Is it a bug of GunWin32 version of "grep")
Date: Sat, 11 Aug 2007 13:06:28 +0300
Message-ID: <ur6mae66z.fsf@gnu.org>
References: <63F95800EDD046419F17688AAFD41CCF01C570FE@rnd-ex01.rnd.gdnt.local>
NNTP-Posting-Host: lo.gmane.org
X-Trace: sea.gmane.org 1186826814 26785 80.91.229.12 (11 Aug 2007 10:06:54 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Sat, 11 Aug 2007 10:06:54 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 11 12:06:52 2007
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1IJnrv-00078B-Sm
	for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Aug 2007 12:06:52 +0200
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1IJnru-0007uz-Fx
	for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Aug 2007 06:06:50 -0400
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1IJnre-0007t8-R8
	for help-gnu-emacs@gnu.org; Sat, 11 Aug 2007 06:06:34 -0400
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1IJnrb-0007qf-Ov
	for help-gnu-emacs@gnu.org; Sat, 11 Aug 2007 06:06:33 -0400
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1IJnrb-0007qc-Hj
	for help-gnu-emacs@gnu.org; Sat, 11 Aug 2007 06:06:31 -0400
Original-Received: from romy.inter.net.il ([213.8.233.24])
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <eliz@gnu.org>) id 1IJnrb-0000iD-10
	for help-gnu-emacs@gnu.org; Sat, 11 Aug 2007 06:06:31 -0400
Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-67-114.inter.net.il
	[80.230.67.114]) by romy.inter.net.il (MOS 3.7.3-GA)
	with ESMTP id IPL27447 (AUTH halo1);
	Sat, 11 Aug 2007 13:06:24 +0300 (IDT)
In-reply-to: <63F95800EDD046419F17688AAFD41CCF01C570FE@rnd-ex01.rnd.gdnt.local>
	(brianjiang@gdnt.com.cn)
X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2)
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:46497
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/46497>

> Date: Sat, 11 Aug 2007 13:55:17 +0800
> From: <brianjiang@gdnt.com.cn>
> 
> And I cannot find the pcre.dll in my computer. Instead, I find pcre3.dll (installed by GnuWin32):
> ---------------------------------------------------------------------------------------------------
> D:\WiKi>which pcre3.dll
> C:/Program Files/GnuWin32/bin/pcre3.dll

Strange.  I installed Grep from a zip file, not with a self-installing
setup program, and I clearly see only pcre.dll in the
grep-2.5.1a-dep.zip archive I still have on my machine.

What is the time stamp of pcre3.dll on your system?

Also, does it help to reinstall Grep?

> And I found if when text in the file is lowcase, e.g., "rs17", then I can use "-i" option to find it successfully. e.g., "-i RS17".
> But if the text in the file is uppercase, e.g., "RS17", then neither "-i rs17" nor "-i RS17" can found it :( See below: 
> (Have you tried that?)

Yes, I've tried that, and it works as I expect: it finds text
case-insensitively no matter if I specify the search string in
uppercase or lowercase.

> I currently use the MSYS version for my Emacs and it works well.

FWIW, I don't recommend this.  MSYS ports are meant for one purpose
only: to be able to build MinGW ports of other tools.  For that
purpose, they sometimes tweak the command-line arguments in order to
allow running those commands from Unix shell scripts.  In particular,
they convert Windows file names with drive letters into pseudo-Posix
file names that start with a forward slash.  If a command-line
argument looks like a file name, but really isn't, this conversion
could have devastating effect on the Grep command.