Bug 471559

Summary: gpg2 display charset detection broken
Product: [Fedora] Fedora Reporter: Sertaç Ö. Yıldız <sertacyildiz>
Component: gnupg2Assignee: Rex Dieter <rdieter>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: nalin, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.0.10-1.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-26 15:31:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sertaç Ö. Yıldız 2008-11-14 08:55:19 UTC
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):
gnupg2-2.0.9-2.fc9.i386


Steps to Reproduce:

$ locale charmap
UTF-8
$ 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'

Additional info:

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.

Comment 1 Rex Dieter 2009-01-16 16:25:24 UTC
thanks, I'll ping upstream.

Comment 2 Rex Dieter 2009-01-16 18:04:06 UTC
ok, looks like this is fixed upstream in gnupg-2.0.10

Comment 3 Fedora Update System 2009-02-26 15:31:20 UTC
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.

Comment 4 Fedora Update System 2009-03-15 03:47:47 UTC
gnupg2-2.0.10-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/gnupg2-2.0.10-1.fc10

Comment 5 Fedora Update System 2009-04-02 17:19:01 UTC
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.