Home GnuPG
Diffusion GpgOL 1bab2eba4724

Use UTF8 in addin localization.
1bab2eba4724Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Use UTF8 in addin localization.

* src/w32-gettext.c, src/w32-gettext.h (utf8_gettext): New.
  gettext that returns UTF8.
* src/w32-gettext.c (internal_gettext): Helper that can return
  either UTF8 or native encoding.
* src/gpgoladdin.cpp: Use UTF8 gettext variants.

Using native encoding is always problematic on Windows and should
be avoided. Native encoding can't represent Unicode and conversions
to wchar are bound to lose data. This usually breaks in a lot of ways
with Unicode filenames etc.

I like to use UTF8 internally for all strings and convert them to
UTF 16 (wchar) for Windows API use.

For compatibility reasons (not to break the old Exchange Extension)
the default gettext still returns native encoding and you have to
redefine _ to get the utf8 gettext.

Details

Provenance
aheineckeAuthored on Oct 15 2015, 3:08 PM
Parents
rOf8d0d2a70238: Only define TRACEPOINT macro once.
Branches
Unknown
Tags
Unknown