delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/27/05:43:03

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=m0W8pFyiLGAn5QVU21aoIxiexr2LF0
r2yNZ65UbTOJORW32O+1W8rs+Zw6veagS+SpJobYB5eLl6uy/+6tB1U+c9h8miBf
JCkEVA9SWmq4D8OOQJUcsrnp8v7W+Q7uWHGrH5/FuXFOfz9s9JhX0pdjo8yTXd+d
rHT9d9tC2qFgQ=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=owJxnbjKxATrcO87HyrAOUxIQ0Q=; b=SVmx
AyCPNYoj15YZUzRFnJmKdW1URQexV1wEjLUZVhrEZzX1mSng3EFI6ObLxOQH4Fz7
C2pit0l3OqbkqHTJWEg0RAOjJ4JzAi0SgA0SWEyf1TRR6qW8TG/L47joOgo1TJ7g
qOuE0Dj9Ey6dtSu4VDrD8P/stfpK59//YWTOFMU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-5.4 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT Nexgo DOT DE>
Subject: Re: grep treating my text files as binary!
Date: Sat, 27 Dec 2014 11:42:24 +0100
Lines: 13
Message-ID: <m7m2ek$v29$1@ger.gmane.org>
References: <XnsA40D81CA1FAA8davidrayninfocouk AT 80 DOT 91 DOT 229 DOT 13> <549B4258 DOT 5050509 AT redhat DOT com> <XnsA40DECB2AE256davidrayninfocouk AT 80 DOT 91 DOT 229 DOT 13> <549C5A6B DOT 2000509 AT towo DOT net> <27CE6A0A-9845-4A1C-A0F8-C0236B95A1E3 AT etr-usa DOT com> <evvs9ad871u11otrmfmt9hqfb7a3n0ehd0 AT 4ax DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
In-Reply-To: <evvs9ad871u11otrmfmt9hqfb7a3n0ehd0@4ax.com>
X-IsSubscribed: yes

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.

-- 
Achim.

(on the road :-)


--
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

- Raw text -


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