Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: forward: fix for problem under cygwin
- X-seq: zsh-workers 16358
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "'Zsh hackers list'" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: forward: fix for problem under cygwin
- Date: Mon, 17 Dec 2001 17:43:18 +0300
- Cc: JohnW@xxxxxxxx
- Importance: Normal
- In-reply-to: <20011215011353.948E114280@xxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> I found a Unixism in zsh that prevents autoloading and function
compilation
> from working under cygwin. There are several bits of code that assume
> character offsets are the same as byte offsets in files. I've fixed
this by
> either opening files in binary mode or relaxing the error checking.
No. We must never assume files are DOS text files because it makes them
non-portable not only between Cygwin/Unix but even between two different
Cygwin instances (just think about remounting the same directory in
binary mode after creating file in text mode).
We must ensure that read/write of zwc files always happens in binary
mode. This will make it possible to share files between Cygwin/Unix as
well. Your patch has several O_BINARY for reading but I do not see
O_BINARY for writing.
Of course, after doing it one probably has to recreate zwc files to be
sure.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author