[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Re: "monotone cat file" not binary save?
From: |
Lapo Luchini |
Subject: |
[Monotone-devel] Re: "monotone cat file" not binary save? |
Date: |
Thu, 22 Sep 2005 10:42:03 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.6) Gecko/20050317 Thunderbird/1.0.2 Mnenhy/0.7.2.0 Hamster/2.0.0.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Lapo Luchini wrote:
>>>Can any of the win32-clued people out there shed any more light on this?
> Windows' CMD.EXE shell always had binary-safeness in its pipes.
I guess I was drunk or crazy or had hit the head the day I wrote that
message. What I meant is that it historically Windows shells always HAD
problems with newlines. And dunno if they are NOW solved or not.
Anyway, it seems they do, at least on WinXP/64:
zsh% od -t x1 prova
0000000 61 20 31 30 31 33 0a 0d 62 20 31 33 31 30 0d 0a
0000020 63 20 31 30 0a 64 20 31 33 0d 65 20 32 37 1a 66
cmd> type prova >prova2
zsh% cat prova >prova3
zsh% sha1sum prova*
30cd0de67294582494afa3e04e3fb8e60f980d24 *prova
30cd0de67294582494afa3e04e3fb8e60f980d24 *prova2
30cd0de67294582494afa3e04e3fb8e60f980d24 *prova3
As you can see the "prova" file is specifically built to expose line
ending issues ("a 1013<10><13>b 1310<13><10>c 10<10>d 13<13>e 27<27>f").
Here is the file, in case anyone wants to try it:
% uuencode -m prova <prova
begin-base64 666 prova
YSAxMDEzCg1iIDEzMTANCmMgMTAKZCAxMw1lIDI3GmY=
====
- --
L a p o L u c h i n i
l a p o @ l a p o . i t
w w w . l a p o . i t /
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iEYEARECAAYFAkMyblsACgkQaJiCLMjyUvssHACdH+vijlPugSb8DmojGwehSAHK
mnAAoJD98a/ZMmf9xgTdoTxD2vpUm2vL
=ah71
-----END PGP SIGNATURE-----
- Re: [Monotone-devel] "monotone cat file" not binary save?, (continued)
- Re: [Monotone-devel] "monotone cat file" not binary save?, Thomas Haas, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Jon Bright, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Thomas Haas, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Jon Bright, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Thomas Haas, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Jon Bright, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Hendrik Boom, 2005/09/07
- Re: [Monotone-devel] "monotone cat file" not binary save?, Richard Levitte - VMS Whacker, 2005/09/08
- [Monotone-devel] Re: "monotone cat file" not binary save?, Lapo Luchini, 2005/09/09
- [Monotone-devel] Re: "monotone cat file" not binary save?, Lapo Luchini, 2005/09/13
- [Monotone-devel] Re: "monotone cat file" not binary save?,
Lapo Luchini <=