Home GnuPG
Diffusion GPGME d256ba7cc57d

w32: Always use UTF-8 for localized texts

Description

w32: Always use UTF-8 for localized texts

* configure.ac: Define GPG_ERR_ENABLE_GETTEXT_MACROS.
* src/version.c (do_subsystem_inits) [W32]: Switch gettext to UTF-8.

On Windows, applications using GpgME can now rely on localized texts
returned by GpgME, e.g. the texts for error codes, to be UTF-8 encoded.
In particular, this saves a useless and possibly lossy conversion to
native encoding and back to UTF-8. On other OSes, where we use the
system provided gettext, we assume that UTF-8 is used nowadays.

Details

Provenance
ikloeckerAuthored on Apr 4 2023, 12:11 PM
Parents
rM34cc7daba12a: core: Minor code cleanup.
Branches
Unknown
Tags
Unknown
Tasks
T5960: Kleopatra: Encoding problems with GnuPG output on Windows