Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D16AF4196F2 for ; Mon, 12 Apr 2010 21:10:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.2 X-Spam-Level: X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SYLAS6cywp6N for ; Mon, 12 Apr 2010 21:10:40 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id DBA1E431FC1 for ; Mon, 12 Apr 2010 21:10:40 -0700 (PDT) Received: from localhost ([::1] helo=x200.gr8dns.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O1XRt-0005iU-Fg; Tue, 13 Apr 2010 04:10:11 +0000 Received: by x200.gr8dns.org (Postfix, from userid 500) id 09A3CC00E1; Mon, 12 Apr 2010 21:09:51 -0700 (PDT) From: Dirk Hohndel To: Tomas Carnecky , Mikhail Gusarov Subject: Re: Use of strcasestr In-Reply-To: <4BC3D137.6010801@dbservice.com> References: <4BC326F2.10300@dbservice.com> <87zl182znk.fsf@leibnitz.dottedmag.net> <4BC3D137.6010801@dbservice.com> Date: Mon, 12 Apr 2010 21:09:50 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Cc: notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 04:10:42 -0000 On Tue, 13 Apr 2010 04:04:39 +0200, Tomas Carnecky wrote: > On 4/12/10 10:18 PM, Mikhail Gusarov wrote: > > > > Twas brillig at 15:58:10 12.04.2010 UTC+02 when tom@dbservice.com did gyre and gimble: > > > > TC> In 4fd9ea0 (guess From address from Received headers, 2010-04-06) you introduced > > TC> strcasestr, which is not portable, see 82e47ec (notmuch reply: Use strstr > > TC> instead of strcasestr for portability., 2010-02-04). > > > > TC> Is strcasestr really necessary there or can it be replaced with strstr? > > > > strcasecmp is POSIX.1-2001. > > Indeed it is, but the code uses strcasestr and I couldn't find any > indication which standard that function is part of. > > Adding that function to compat/ probably is the way to go, but the whole > compat mechanism doesn't work here. It's like if compat/Makefile.local > was not included in the top-level makefile, notmuch_compat_srcs is empty > there. Any ideas how to debug that? While I don't have access to a system that doesn't provide strcasest right now... I'll submit a patch in a moment that should add a replacement function to compat. Please check and make sure this works... Thanks /D -- Dirk Hohndel Intel Open Source Technology Center