Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: devel

gpg2 display charset detection broken?

 

 

GnuPG devel RSS feed   Index | Next | Previous | View Threaded


rdieter at math

Jan 16, 2009, 8:26 AM

Post #1 of 3 (742 views)
Permalink
gpg2 display charset detection broken?

using gnupg2-2.0.9, Cliff's notes version:
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.

See downstream bug:
https://bugzilla.redhat.com/show_bug.cgi?id=471559

-- Rex



_______________________________________________
Gnupg-devel mailing list
Gnupg-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-devel


wk at gnupg

Jan 16, 2009, 9:32 AM

Post #2 of 3 (686 views)
Permalink
Re: gpg2 display charset detection broken? [In reply to]

On Fri, 16 Jan 2009 17:26, rdieter [at] math said:

> See downstream bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=471559

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.

This should be fixed in 2.0.10:

2008-12-09 Werner Koch <wk [at] g10code>

* gpg.c (main): Call i18n_init before init_common_subsystems.

Same also fixed for the other tools.


Salam-Shalom,

Werner


--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-devel


rdieter at math

Jan 16, 2009, 10:05 AM

Post #3 of 3 (708 views)
Permalink
Re: gpg2 display charset detection broken? [In reply to]

Werner Koch wrote:

> On Fri, 16 Jan 2009 17:26, rdieter [at] math said:
>
>> See downstream bug:
>> https://bugzilla.redhat.com/show_bug.cgi?id=471559
>
> 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.
>
> This should be fixed in 2.0.10:
> 2008-12-09 Werner Koch <wk [at] g10code>
> * gpg.c (main): Call i18n_init before init_common_subsystems.

Dang, sorry, my casual perusal of the 2.0.10 changelog was clearly
insufficient.

-- Rex



_______________________________________________
Gnupg-devel mailing list
Gnupg-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

GnuPG devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.