Page MenuHome GnuPG

--with-colons --fixed-width-mode doesn't escape non-UTF-8-chars
Closed, ResolvedPublic

Description

Key 0xEC0E954C has a second UID with non-utf8-chars. If you print the key with
--fixed-list-mode --with-colons, the char is not being escaped. It is drawn as a
char with forign encoding.

This is a serios bug, since it will break *all* programmes, relying on UTF-8
output. In my python programme I cannot determine the encoding for a single char.

Please download above mentioned key from any keyserver and see for yourself:
$ gpg --list-key --with-colon --fixed-list-mode EC0E954C
<snip>uid .... G?nther</snip>

Any help is appreciated.

Event Timeline

In IRC, weasel just told me that this output is just fine. He is right, since
doc/DETAILs says, there is no escaping for --fixed-list-mode.

Thanks for delivering different charsets in one line. From a programmer's point
of view I think this unfair and might break standards (is it allowed to mix
different charsets in one line?). Also, many apps will not work when dealing
with such broken keys.

bmhm claimed this task.