[patch] gnupg-2.0.9 uses wrong charset
Werner Koch
wk at gnupg.org
Wed Jun 11 18:15:02 CEST 2008
On Wed, 11 Jun 2008 14:00, petr.uzel at suse.cz said:
> FIX:
> This can be fixed by calling setlocale(LC_ALL, "") prior to nl_langinfo().
> Since setlocale() is called from i18n_init() and nl_langinfo() from
> init_common_subsystems(), attached patch should IMHO fix the problem.
I am not sure whether this is a good solution. There must have been a
reason why the initialization has been splitted up. Calling i18n_init
earlier might not be a good idea. Despite the fact that it would fix a
problem printing a non-translated diagnostic in case a wrong libgcrypt
is used. Needs to be investigated.
A not so intrusive change would be to do an extra call to setlocale
earlier (best in set_native_charset()).
Thanks,
Werner
--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.
More information about the Gnupg-devel
mailing list