PGP5/gpg armoring
brian moore
bem at cmc.net
Wed Sep 30 12:52:20 CEST 1998
Okay, here's another example that may explain the problem better or may
be a different problem:
[thorin:~] 11:43:53am 183 % cat test1.txt
1
2
3
4
5
[thorin:~] 11:44:01am 184 % gpg --clearsign test1.txt
gpg (GNUPG) 0.4.0; Copyright (C) 1998 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
[thorin:~] 11:45:08am 185 % pgpv test1.txt.asc -o test1a.txt
Opening file "test1a.txt" type text.
Opening file "/dev/null" type text.
[thorin:~] 11:45:41am 186 % diff test1.txt test1a.txt
1,5c1,5
< 1
< 2
< 3
< 4
< 5
---
> 1
> 2
> 3
> 4
> 5
\ No newline at end of file
In short, it's losing the last character if it's a newline.
(It doesn't seem to lose it if you're naughty and make a file with no
closing newline.)
--
Brian Moore | "The Zen nature of a spammer resembles
Sysadmin, C/Perl Hacker | a cockroach, except that the cockroach
Usenet Vandal | is higher up on the evolutionary chain."
Netscum, Bane of Elves. Peter Olson, Delphi Postmaster
More information about the Gnupg-devel
mailing list