Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-26 Thread Corinna Vinschen
On Apr 25 05:31, Yutaka Amanai wrote: 2010/04/24 10:03 Peter A. Castro wrote: Could you give me a simple test case that fails without cygwin_premain0()? I set my filesystems as text-mode and tried to find such cases, but I couldn't. It's been a while since I've looked at this, but the

Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-26 Thread Eric Blake
On 04/24/2010 02:31 PM, Yutaka Amanai wrote: Have a look at Bash code some time. I recall seeing some O_TEXT options being set in the various {f}open()'s that it does. There are a few of those, but I've been working at reducing them to the bare minimum, and instead controlling it via the igncr

Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-24 Thread Yutaka Amanai
2010/04/24 10:03 Peter A. Castro wrote: Could you give me a simple test case that fails without cygwin_premain0()? I set my filesystems as text-mode and tried to find such cases, but I couldn't. It's been a while since I've looked at this, but the problem was mostly with binary-mode mounts,

Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-23 Thread Peter A. Castro
On Wed, 21 Apr 2010, Yutaka Amanai wrote: 2010/04/21 2:12 Peter A. Castro wrote: Greetings, Yutaka, Greetings, Peter. Thank you for your reply. Gettings, again, Yutaka, The text-mode hack was created to solve a basic problem that zsh has with running scripts, in general, on Windows. Much

Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-21 Thread Yutaka Amanai
2010/04/21 2:12 Peter A. Castro wrote: Greetings, Yutaka, Greetings, Peter. Thank you for your reply. The text-mode hack was created to solve a basic problem that zsh has with running scripts, in general, on Windows. Much of the code assumes that scripts have a single-character line

Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-21 Thread Eric Blake
On 04/21/2010 03:04 AM, Yutaka Amanai wrote: PS: for base64, I will report the problem to bug-coreutils list later. Thanks; I saw that, and it will be fixed in the upcoming upstream coreutils 8.5. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library

Re: zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-20 Thread Peter A. Castro
On Wed, 14 Apr 2010, Yutaka Amanai wrote: Greetings, Yutaka, On Cygwin, zsh forces stdin to be text-mode. By this, some commands don't work correctly on zsh. For example, when you encode stdin with base64 on zsh, there is a possibility that base64 produces an incorrect result. The text-mode

zsh 4.3.9-1: text-mode stdin problem (breaking base64)

2010-04-14 Thread Yutaka Amanai
On Cygwin, zsh forces stdin to be text-mode. By this, some commands don't work correctly on zsh. For example, when you encode stdin with base64 on zsh, there is a possibility that base64 produces an incorrect result. I wrote a test case. Save the script below as 'test.sh': printf '\x0D\x0A'

STDIN problem

2005-05-31 Thread Alireza Ghasemi
When configuring many programs I get messages like can not open STDIN : no such file or directory and when building perl, it stopped the Configure. What's wrong with STDIN and what should I do? Thanks. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports:

Re: STDIN problem

2005-05-31 Thread Larry Hall
At 02:51 PM 5/31/2005, you wrote: When configuring many programs I get messages like can not open STDIN : no such file or directory and when building perl, it stopped the Configure. What's wrong with STDIN and what should I do? Thanks. Start by reading and following the problem reporting