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

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 ter

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