Why are there additional dashes?

David Lebel lebel at lebel.org
Wed Aug 30 11:25:37 CEST 2000


Allo,

It is the normal behaviour of GnuPG (or even PGP).  To not introduce possible
confusion with the "-----BEGIN PGP..." line, every line that begins with - is
prefixed with "- ".

Ciao,
	...David

Quoting Th. Fischer (frosch at derfrosch.de):
> 
> Ladies and gentlemen,
> 
> I wrote the following message to the list. The problem still persists
> and is shown even more after I signed the message.
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Ladies and gentlemen,
> 
> I am using GnuPG 1.1.1. I am clearsigning a text file. Maybe I do not know
> a feature here, but it shows a strange behavior: Whenever a line
> starts with a dash, an additional dash and a space are inserted in
> front of it.
> 
> A sample :
> 
> **** Begin sample ****
> 
>  Header line
> - --------------
> 
>  Bla foo bar shoo.
> 
> Now a single dash:
> - -
> And now two dashes:
> - --
> And three
> - ---
> 
> 
> - -- 
> 
> Thorsten Fischer
> 
> **** End sample ****
> 
> This message, after singing, reads as follows:
> 
> **** Begin signed ****
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
>  Header line
> - - --------------
> 
>  Bla foo bar shoo.
> 
> Now a single dash:
> - - -
> And now two dashes:
> - - --
> And three
> - - ---
> 
> 
> - - -- 
> 
> Thorsten Fischer
> 
> 
> 
> - -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.1.1 (GNU/Linux)
> Comment: Weitere Infos: siehe http://www.gnupg.org
> 
> iD8DBQE5rQseM5CCYG9sTZQRAg3HAJ0dB0bInQsvsgRE2katKTCbtXQ4gACggrcl
> CGaTkk4PFp4Z/MGvvTKAXyk=
> =gKqv
> - -----END PGP SIGNATURE-----
> **** End signed ****
> 
> Where do the extra dashes and spaces come from? And why?
> 
> 
> Thorsten Fischer
> 
> °  frosch at derfrosch dot de  .  http://www.derfrosch.de/  .  gpg: D6F6C4D94
> °                         Wo nun das Salz dumm wird, womit soll man's salzen?
> °                                                               3-934678-42-4
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.1.1 (GNU/Linux)
> Comment: Weitere Infos: siehe http://www.gnupg.org
> 
> iD8DBQE5rQ2PM5CCYG9sTZQRAgdwAJ9+lvoqK3LcNWYaOdswHZNAxRl0AwCdHzYU
> qWympBt2ebR6Y+kG7zqqnfQ=
> =+Teg
> -----END PGP SIGNATURE-----
> 



More information about the Gnupg-devel mailing list