Page MenuHome GnuPG

Key expiration year during key creation only shown with 2 digits
Closed, WontfixPublic

Description

When checking out T4195 I noticed that the representation of dates on the command line during key creation has not enough digits:

Wie lange bleibt der Schlüssel gültig? (0) 80y
Key verfällt am 01/04/06 13:43:59 Mitteleurop�ische Zeit

"06" means "2106" in this case, this is confusing. (Kleopatra always shows the full date with 4 digit year.)
After key creation the expiration date is shown correctly as "[expires: 2106-01-04]"
The day and month representation during key generation could be better, too, can't we use ISO format?

Additionally there is an encoding issue here with umlauts. This is on Windows cmd.

Details

Version
Gpg4win-5.0.0

Related Objects

Event Timeline

ebo created this object with edit policy "Contributor (Project)".
werner claimed this task.
werner added a subscriber: werner.

This string comes from the Windows API and thus it is a Windows bug. It maye take some decades until this get fixed but at least they have meanwhile sfxed the "Westeuropäische Zeit" zu the correct "Mitteleuropäische Zeit" - Modulo Umlaut problems.

It is better that we entirely swicth to ISO time strings and avoid the use of Windows (or Unix) APIs. See also T4195