How do you list keys in UTF-8?
Wed, 29 Nov 2000 09:42:38 +0100
-----BEGIN PGP SIGNED MESSAGE-----
On Tuesday, 28. November 2000 18:48, Werner Koch wrote:
> On Tue, 28 Nov 2000, Ingo Kloecker wrote:
> > Except that colons, ':', in the user ID are printed as "\x3a". Why?
> > Sure, the colon is the separator but the user ID is the last entry.
> Today it is the last entry, but this may change.
O.K.. I already found this out while reading the DETAILS.
> You should
> interpret all those strings a C Strings: \n,\r,\v,\t,\0,\\,\xnn.
I just had a look at print_string() in miscutil.c. The following
special characters are escaped:
\n, \r, \f, \v, \b, \0
And the delimiter is escaped as \xXX, where XX is the delimiters hex
The problem is that the backslash '\' is not escaped as '\\'. This can
lead to ambiguities. Also \t should be escaped.
> I know that it might be easier to have %nn escaping but as C-head I
> don't think long about how to escape things ;-)
Or you could escape all characters between \x00 and \x1f and
additionally the delimiter and the backslash as \xXX. This way you
still have it done the C-way, there are no ambiguities and it is very
easy to parse.
Moreover all programs which use such strings as input and which already
interpret \x3a correctly as character with hex code 0x3a should still
work with the new escaping method.
Lehrstuhl A für Mathematik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
with a subject of "unsubscribe" to email@example.com