Bug 471559 - gpg2 display charset detection broken
Summary: gpg2 display charset detection broken
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnupg2
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-14 08:55 UTC by Sertaç Ö. Yıldız
Modified: 2009-04-02 17:19 UTC (History)
2 users (show)

Fixed In Version: 2.0.10-1.fc10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-26 15:31:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.