#1109154 gpg-key2ps can't display UTF-8 in key uid name

Package:
signing-party
Source:
signing-party
Description:
Various OpenPGP related tools
Submitter:
xiao sheng wen
Date:
2025-07-13 16:07:03 UTC
Severity:
normal
Tags:
#1109154#5
Date:
2025-07-12 15:27:49 UTC
From:
To:
Hi,

When I use:

gpg-key2ps -1 -p a4 atzlinux@debian.org | gs -sDEVICE=pdfwrite -sOutputFile=out.pdf

My Chinese name in uid display question mark.

I tested use only "gpg-key2 atzlinux@debian.org", I also find it's question mark
in it's output.

Is gpg-key2ps support UTF-8 well?


Thanks!

Report from DebConf25 in Brest!

xiao sheng wen

#1109154#10
Date:
2025-07-12 15:43:27 UTC
From:
To:
Hi,

AFAIK not and that tool is no longer maintained, I should probably add a
deprecation warning in the manual page.

I'd suggest to use gpg-key2latex(1) instead (also from signing-party)
and use XeLaTeX to convert LaTeX output to PDF.  I'm not familiar enough
with Postscript and wrote gpg-key2latex(1) to workaround that particular
issue with gpg-key2ps(1), plus other issues such as as feature requests
for photo IDs and QR codes.  gpg-key2latex(1) is still supported :-)

#1109154#15
Date:
2025-07-12 16:56:43 UTC
From:
To:
Hi,

Thanks for your quick reply!

在 2025/7/12 23:43, Guilhem Moulin 写道:
Yes, use gpg-key2latex(1) is better for CJK word.

After I installed package texlive-lang-cjk, I can get my Chinese name correctly.

I use the following command:

gpg-key2latex -p a4 atzlinux@debian.org|xelatex

The output pdf filename is texput.pdf.

Perhaps we need to update the wiki:
https://wiki.debian.org/Keysigning#Step_3:_Print_your_key

in "Use gpg-key2ps to generate a PDF" section.

Nice to meet you in Brest!

#1109154#20
Date:
2025-07-13 16:00:56 UTC
From:
To:
Control: tag -1 = pending

Done in 0b206df5e92fd1e2d35e930c3da8053db6319480.