Page MenuHome GnuPG

GnuPG, Kleopatra: Remove Name length limitation for new keys
Closed, ResolvedPublic

Description

Got this as user feedback from a Korean user. In Hangul or Hanja his name is three characters long. But Kleopatra rejects his name.
He was a bit annoyed because he felt that was somewhat discriminating / western biased.

I agree. I'll remove the limitation from Kleo once it is gone in GnuPG.

Details

Version
master

Revisions and Commits

Event Timeline

aheinecke renamed this task from GnuPG, Kleopatra: Remove Name lenght limitation for new keys to GnuPG, Kleopatra: Remove Name length limitation for new keys.Nov 12 2019, 9:56 AM
werner added a subscriber: werner.

The Name field in GnuPG needs to be at least 5 _bytes_ long. Given that UTF-8 is required for Hangul, a 3 _character_ name is at least 6 bytes long and thus passes gpg check. The Name field is also optional and the whole test can be skipped using --allow-freeform-uid.

Thus my guess is that Kleopatra counts characters and not bytes as gpg does.

aheinecke claimed this task.

Your guess is correct, but as this hole "Wizard" thing uses Qt Regular expressions its not super quick fix without having to introduce new strings etc.
So I just reduced the length. The new key generation in Kleopatra is pending a rewrite anyway. Requires way too many clicks ATM.