X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:references:cc:to:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=sHqhJ4ahg4VSahAl z6U3M14aMiX3ABtX8y3dyNrLB8/YAjXx3sRRq1v1fTisLkDHsgxW1kTB3TsJ8k8E 92LR1n9FWf8x5QbEsCf2lEZDleHIOLo2K0l8rwX3Q9Z7B1h1azzdTH49CdLVAzHU mE4emtAy7itx78Aerro/dGGwbJM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:references:cc:to:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=DJl/ToFQuGhoBl7tWV7PkY AHLT0=; b=MXR5Her27TLz3/4WFp6Kn9dzMh8PlfaMMxZp4Aeupw3hat/ePyZsGF rr9rzDG5L8Rv14JQ7vOwMrO8RKFWSP+YyRTMechYh7ULFjRxXwqyzvCTITRkZ2sN wa35RVJs8t/12X51Gq1vlagO4uzulU2KLUMnINV9myIasAPgC4Q/U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=5.4.0-3, 5403, 5.4.0-2, 5402 X-HELO: out1-smtp.messagingengine.com X-ME-Sender: Subject: Re: cygcheck and literal plus sign References: <588c098a DOT 6a099d0a DOT bd219 DOT 1f24 AT mx DOT google DOT com> Cc: Steven Penny To: cygwin AT cygwin DOT com From: Jon Turney Message-ID: <9b32661c-9397-62e5-5309-bfee2c2aca29@dronecode.org.uk> Date: Mon, 30 Jan 2017 18:30:19 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <588c098a.6a099d0a.bd219.1f24@mx.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 28/01/2017 03:01, Steven Penny wrote: > On Mon, 27 Jan 2014 16:43:23, Steven Penny wrote: >> $ cygcheck -p 'g\x2b\x2b.exe' I think this relies on this being interpreted as a PCRE regex, which hasn't been the case for a while, since some server-side changes. > It looks like this is broken again. package-grep does work: Thanks for pointing this out. > $ q=https://cygwin.com/cgi-bin2/package-grep.cgi > $ curl -s "$q"'?text=1&arch=x86_64&grep=mingw32-g%2B%2B' | awk 'NR>1{$0=$1}1' > Found 4 matches for mingw32-g++ > mingw64-i686-gcc-g++-5.4.0-2 > mingw64-i686-gcc-g++-5.4.0-3 > mingw64-x86_64-gcc-g++-5.4.0-2 > mingw64-x86_64-gcc-g++-5.4.0-3 > > but it seems no incantation will make cygcheck work: [...] > > $ cygcheck -p mingw32-g++ > Found 0 matches for mingw32-g It looks like the underlying bug here is that 'cygcheck -p' doesn't encode '+', but the package-grep-cgi script is expecting the query part of the URL to be application/x-www-form-urlencoded (as is the case with the web form interface to this search), where '+' is the encoding for a ' '... I added a workaround to the script so that corresponding decoding ('+' -> ' ') is skipped if it looks like a cygcheck request ('text=1'), so this should be working again > $ cygcheck -p mingw32-g++ > Found 4 matches for mingw32-g++ > mingw64-i686-gcc-g++-5.4.0-2 - mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++) (installed binaries and support files) > mingw64-i686-gcc-g++-5.4.0-3 - mingw64-i686-gcc-g++: GCC for Win32 (i686-w64-mingw32) toolchain (C++) (installed binaries and support files) > mingw64-x86_64-gcc-g++-5.4.0-2 - mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++) (installed binaries and support files) > mingw64-x86_64-gcc-g++-5.4.0-3 - mingw64-x86_64-gcc-g++: GCC for Win64 toolchain (C++) (installed binaries and support files) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple