This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: grep treating my text files as binary!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]