RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Soegtrop, Michael
Dear Blake, > External products were being lazy by relying on cygwin to strip CR when they > should have stripped it themselves. But 'sed -b' does NOT strip CR (it is the > exact opposite, of keeping CR unstripped). I think that there are more people who use sed for text processing in a MinGW c

Re: Switching the user context -- SeAssignPrimaryTokenPrivilege required Re: Installing sshd on W7 reveals errors in CSIH_SCRIPT -- patch file against master

2017-06-09 Thread Corinna Vinschen
On Jun 8 16:46, Houder wrote: > Hi Corinna, > > Maybe you are still around ... otherwise it will be for the next round. > > During my exercise with sshd I was "forced" :-) to study the User Guide, as I > am not "well informed" :-P about the security model of Windows. > > I am referring to this

Re: setup 2.880 release candidate - please test

2017-06-09 Thread Andrey Repin
Greetings, Garber, Dave (GE Oil & Gas, Non-GE)! > Looks good. I did fond one other behavior that I believe should be > changed. When you are typing in the search box, if you press the enter key, > it's the same as pressing the Next button and starts the install. My $.02 > is that Enter should b

Re: Starting a xterm window

2017-06-09 Thread Ugly Leper
>> /usr/bin/xterm: Xt error: Can't open display: :0.0 >> /usr/bin/xterm: DISPLAY is not set Thanks for all suggestions. Both the following fragments seem to work flawlessly. Both incorporate a waiting time for XWin to gain traction before xterm is called: 1. Starting a xterm console from a .cmd f

Re: Switching the user context -- SeAssignPrimaryTokenPrivilege required

2017-06-09 Thread Houder
On Fri, 9 Jun 2017 11:00:36, Corinna Vinschen wrote: [snip] > You're not supposed to do that. setuid() is a privileged call, so it's > supposed to be called by a privileged process only. Do not add these > permissions to a normal user account unless you exactly know what you're > doing security-

Re: Bug? wcsxfrm causing memory corruption

2017-06-09 Thread Erik Bray
On Tue, Jun 6, 2017 at 9:22 PM, Corinna Vinschen wrote: > On Jun 6 17:57, Corinna Vinschen wrote: >> > > On Wed, May 10, 2017 at 11:30:46AM +0200, Erik Bray wrote: >> > >> [...] >> > >> The attached test demonstrates the bug. Given an output buffer of N >> > >> wide characters, wcsxfrm will cause

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Brian Inglis
On 2017-06-08 02:50, Soegtrop, Michael wrote: >> No, the documented behavior is that CR-LF is converted to LF only >> for text- mounted files; but pipelines are default binary-mounted. >> If you want to strip CR from a pipeline, then make it explicit. >>> var=$( prog | sed .) >> Rewrite that to va

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread cyg Simple
On 6/9/2017 4:06 AM, Soegtrop, Michael wrote: > Dear Blake, > >> External products were being lazy by relying on cygwin to strip CR when they >> should have stripped it themselves. But 'sed -b' does NOT strip CR (it is >> the >> exact opposite, of keeping CR unstripped). > > I think that there

RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Soegtrop, Michael
Dear cyg Simple, > but it would be most beneficial if you caused the stdio of your > Windows applications to be in binary format instead of text format. Then the > CR wouldn't be an issue during the pipe process. Why does your applications > stdio need to be in text format instead of binary form

RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Soegtrop, Michael
Dear Brian, > alias sed='sed -b -e '\''s/\r$//'\''' thanks, an interesting idea! Putting this into something like .bashrc might have a similar effect as having a special sed build with CR stripping built in. Best regards, Michael Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 855

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Andrey Repin
Greetings, Soegtrop, Michael! > Why should anybody use "wb" mode to open a file in a Linux centric app Because it removes ambiguity. Everybody should use binary IO unless they explicitly want text behavior. Not just because they don't care. -- With best regards, Andrey Repin Friday, June 9, 20

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Andrey Repin
Greetings, Soegtrop, Michael! >> alias sed='sed -b -e '\''s/\r$//'\''' > thanks, an interesting idea! Putting this into something like .bashrc might > have a similar effect as having a special sed build with CR stripping built > in. Except it may not work in makefiles, since make calls sed dire

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Dan Kegel
On Fri, Jun 9, 2017 at 8:31 AM, Andrey Repin wrote: > Greetings, Soegtrop, Michael! > >>> alias sed='sed -b -e '\''s/\r$//'\''' > >> thanks, an interesting idea! Putting this into something like .bashrc might >> have a similar effect as having a special sed build with CR stripping built >> in. >

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Eric Blake
On 06/09/2017 10:01 AM, Soegtrop, Michael wrote: > Dear cyg Simple, > >> but it would be most beneficial if you caused the stdio of your >> Windows applications to be in binary format instead of text format. Then the >> CR wouldn't be an issue during the pipe process. Why does your applications

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Eric Blake
On 06/09/2017 10:31 AM, Andrey Repin wrote: > Greetings, Soegtrop, Michael! > >>> alias sed='sed -b -e '\''s/\r$//'\''' > >> thanks, an interesting idea! Putting this into something like .bashrc might >> have a similar effect as having a special sed build with CR stripping built >> in. > > Exce

Re: bash not work with new_console (Win10 16199Insider)

2017-06-09 Thread Jim Reisert AD1C
On Thu, Jun 8, 2017 at 7:39 PM, yyjdelete wrote: > Tested with: > cygwin: 2.8.0-1 > bash: 4.4.12-3 > win: 10 16199(Insider) > > When you type `1234567890(Enter)(Enter)(Enter)`, the bash only get `1470`, > and nothing is shown before the third Enter is press. > > It work well after switch to

RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Soegtrop, Michael
Dear Dan, > One could try making a wrapper shell script where sed usually lives that adds > those options and calls the real sed... I tried to do exactly this, but I tried to pipe a dos2unix command in between. It got a bit complicated because I had to parse the sed command line arguments. The

RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Soegtrop, Michael
Dear Eric, > Building mingw apps may be one use of cygwin, but it is not the "intended use > case". I said "an" intended use case, not "the". I also use cygwin for a lot of other things. > If you are writing a Linux app that processes data produced on a windows > machine, then YOU must strip C

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Hans-Bernhard Bröker
Am 09.06.2017 um 18:56 schrieb Soegtrop, Michael: Maybe my situation gets clear when I describe what my use case is: I maintain the scripts which build the Windows installers for Coq - a proof assistant with a GTK based UI. This starts building a MinGW OCaml compiler from sources. You're doin

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Erik Soderquist
On Fri, Jun 9, 2017 at 2:42 PM, Hans-Bernhard Bröker wrote: >> I don't see another way than having sed strip away the CRs. It >> doesn't make sense to build programs intended to be run under plain >> Windows such that they do not produce CRs. > > > I believe it makes much more sense than you think.

[ANNOUNCEMENT] texlive 20170520-2

2017-06-09 Thread Ken Brown
The following packages have been uploaded to the Cygwin distribution: * texlive-20170520-2 * libkpathsea6-20170520-2 * libkpathsea-devel-20170520-2 * libptexenc1-20170520-2 * libptexenc-devel-20170520-2 * libsynctex1-20170520-2 * libsynctex-devel-20170520-2 * libtexlua52_5-20170520-2 * libtexlua5

Re: configure fails on checking ino_t

2017-06-09 Thread Ken Brown
On 6/7/2017 2:21 AM, Lloyd Wood via cygwin wrote: download geomview 1.9.5 from http://www.geomview.org this used to build on cygwin 32-bit. I've just build geomview-1.9.5 on both 32-bit and 64-bit Cygwin, using the attached cygport file and patches. If it works well, I'll propose it for incl

Babel trouble with latest cygwin package

2017-06-09 Thread Harvey Stein
I'm using cygwin on Windows 7, setup.exe version 2.879 (64 bit). I updated my packages yesterday, and now Babel in LaTeX is having trouble. The line: \usepackage[USenglish]{babel} is eliciting the following error message: ! Package babel Error: Unknown option `USenglish'. Either you misspelled

RE: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Soegtrop, Michael
Dear Hans-Bernhard, > You're doing this via Cygwin, i.e. on a Windows machine, where MinGW is a > _native_ toolchain. That begs the question: why are you doing a cross build > in > the first place? I simply couldn't find another way to build 50 configure / make style libraries and tools on Win

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Harvey Stein
I just had to debug & fix a problem from the sed behavior change that has little to do with MinGW. I'm running a native version of Emacs and have makefiles, lots of scripts, and various commands in my makefiles for extracting dependencies. The commands use sed, gawk, ..., and started creating bad

Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts

2017-06-09 Thread Ray Donnelly
On Fri, Jun 9, 2017 at 11:28 PM, Soegtrop, Michael wrote: > Dear Hans-Bernhard, > >> You're doing this via Cygwin, i.e. on a Windows machine, where MinGW is a >> _native_ toolchain. That begs the question: why are you doing a cross build >> in >> the first place? > > I simply couldn't find anoth

Re: configure fails on checking ino_t

2017-06-09 Thread Lloyd Wood via cygwin
Hi Ken, thanks for this - both 32-bit and 64-bit Geomview from your repository work as expected. I was able to run SaVi (http://savi.sf.net/) under both, with OpenGL and piping between Geomview and SaVi working so that SaVi could control Geomview. (64-bit working with SaVi was a pleasant surprise

Re: Babel trouble with latest cygwin package

2017-06-09 Thread Ken Brown
On 6/9/2017 5:58 PM, Harvey Stein wrote: I'm using cygwin on Windows 7, setup.exe version 2.879 (64 bit). I updated my packages yesterday, and now Babel in LaTeX is having trouble. The line: \usepackage[USenglish]{babel} is eliciting the following error message: ! Package babel Error: Unknow

Re: configure fails on checking ino_t

2017-06-09 Thread Ken Brown
On 6/9/2017 7:22 PM, Lloyd Wood wrote: Hi Ken, thanks for this - both 32-bit and 64-bit Geomview from your repository work as expected. I was able to run SaVi (http://savi.sf.net/) under both, with OpenGL and piping between Geomview and SaVi working so that SaVi could control Geomview. Hi Lloy