kazu-yamamoto/pgpdump

should dump notation names (and not hex values) even if the value is not human readable

ghostbar opened this issue · 3 comments

I will copy here the report for Debian located on http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464572 :

8<-------

The RFC4880 states, that names are always UTF-8 encoded strings, so
they are always "readable", while values are not. Thus, I think that
names should be dumped as strings, while the readability should only
be examined while dumping the value.

Here is the patch for this change:
--- subfunc.c.orig 2008-02-07 15:39:06.996720105 +0100
+++ subfunc.c 2008-02-07 15:39:18.547170952 +0100
@@ -163,10 +163,7 @@
vlen = Getc() * 256;
vlen += Getc();
printf("\t\tName - ");

  •   if (human)
    
  •           pdump(nlen);
    
  •   else
    
  •           dump(nlen);
    
  •   pdump(nlen);
    printf("\n");
    printf("\t\tValue - ");
    if (human)
    

------->8

Hoping to hear soon of you :-)
Regards

I'm now on vacation. I will consider this after the vacation.

I have merged this patch and released pgpdump 0.27.
http://www.mew.org/~kazu/proj/pgpdump/en/

Thank you :-)