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:from:to:subject:date:reply-to:message-id :references:in-reply-to:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=NM33Bpy7sLXJxSGb J71oHUqFGyWDbSCBN+C4C6Y4hIo1KeL6oD+YN+tBAg5zK5sIog8aW5VVy6dmZL+8 1IAzoHWuAQH4yy64O+0eAao625PFeFWBKs31UTO4DA1EJiIXRf3Pk9PRZ+qB3VrG IgLB6Sjofco6n58t36kqYH9qmIs= 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:from:to:subject:date:reply-to:message-id :references:in-reply-to:mime-version:content-type :content-transfer-encoding; s=default; bh=sZP9GOWtrD3rsgGHQlqZmE Pwnds=; b=EnlxNkIAwf0GLZmlgQ/bixNnTECYWkhcc054atnk5O2vfCCUGTeCic kVK9G+lizpfqZstiBAQj4WKnW1tzFdDVR8StjWOiGEsXKzw4KBAKPUXHc3n9M4FN Zsh0lwGBqLNFl0tbI9kWf+9XE/PO+cb6CsnY+uLS+lTMxsLml2grk= 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=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: homiemail-a103.g.dreamhost.com From: Bengt Larsson To: cygwin AT cygwin DOT com Subject: Re: grep treating my text files as binary! Date: Sat, 27 Dec 2014 11:55:42 +0100 Reply-To: cygwin AT cygwin DOT com Message-ID: References: <549B4258 DOT 5050509 AT redhat DOT com> <549C5A6B DOT 2000509 AT towo DOT net> <27CE6A0A-9845-4A1C-A0F8-C0236B95A1E3 AT etr-usa DOT com> In-Reply-To: User-Agent: ForteAgent/7.20.32.1218 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Achim Gratz wrote: >Am 27.12.2014 um 11:07 schrieb Bengt Larsson: >> I ran into this, actually. I keep a list of my directories and it is in >> CP1252 for reasons of interfacing with CMD.EXE. Suddenly grep couldn't >> match it. But I figured something was up and set my locale to CP1252 and >> then it worked. > >I just keep a "CHCP 65001" at the beginning of all CMD files that are >meant to interface with Cygwin. Thank you for that. I had tried this earlier but CMD.EXE refused to run scripts when I had codepage 65001. Now it does, for some reason. -- 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