Red Hat Bugzilla – Bug 471559
gpg2 display charset detection broken
Last modified: 2009-04-02 13:19:11 EDT
Description of problem:
Unless charset is specified in config file or with --display-charset argument, gpg2 output incorrect (and different from the gpg output) for utf-8 encoded strings.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ locale charmap
$ gpg -vvv pub.asc 2>&1 |head -1
gpg: using character set `utf-8'
$ gpg2 -vvv pub.asc 2>&1 |head -1
gpg: using character set `iso-8859-1'
The reason seems to be that gpg.c calls init_common_subsystems() before initializing the locale via i18n_init() or a setlocale() call. Therefore detects as ANSI_X3.4-1968 (i.e us-ascii) and uses iso-8859-1 as fallback.
thanks, I'll ping upstream.
ok, looks like this is fixed upstream in gnupg-2.0.10
gnupg2-2.0.10-1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
gnupg2-2.0.10-1.fc10 has been submitted as an update for Fedora 10.
gnupg2-2.0.10-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.