Dash escape (Was no subject)

Samuel ]slund samuel at Update.UU.SE
Mon Jul 4 09:21:41 CEST 2005

On Sun, Jul 03, 2005 at 10:54:07PM +0200, mus1876 at gmx.info wrote:
> Hi list,
> I'm using GnuPG 1.4.1 on WinXP Service Pack 2. Whenever I --clearsign a text
> message containing some kind of list, dash characters get duplicated. Is
> that a feature or bug? See yourself ...

As you can see OpenPGP use lines beginning with dashes to separate 
parts of the message. To avoid the risk for ambiguity any line 
beginning with a dash is escaped with a "- " tis is removed when 
the message is verified.


> Hash: SHA1
> - - A dash followed by a space character at the beginning of the line as it
> is commonly used in enumerations produces an extra dash.
> - -Second test with a dash and no whitespace in between yields the same
> result.
> - -	Third test with a dash and a tab character has the same effect.
>  - Fourth test with a space character followed by a dash character.
> 	- Fith test with a tab character followed by a dash character.
> Lastly a dash anywhere inside the text like this one - isn't duplicated.
> Version: GnuPG v1.4.1 (MingW32)
> iD8DBQFCyEwoF64dOS3//CwRAp/SAJ9kgz6GyNx/Fzk/aap85N8jWyVHfACfd1a5
> xTdO4Ue2fWP3VU2sDvKdhbA=
> =FZy1

More information about the Gnupg-users mailing list