This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: grep treating my text files as binary!
- From: Bengt Larsson <lists dot cygwin4 at bengtl dot net>
- To: cygwin at cygwin dot com
- Date: Sat, 27 Dec 2014 11:55:42 +0100
- Subject: Re: grep treating my text files as binary!
- Authentication-results: sourceware.org; auth=none
- 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> <m7m2ek$v29$1 at ger dot gmane dot org>
- Reply-to: cygwin at cygwin dot com
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