diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-17 20:14:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-18 12:40:43 +0100 |
commit | 49d1325ecbcbad32abd4cc55d946a720f99801f4 (patch) | |
tree | 8ee2a7bec7b95e98304f860e07269aca932043ae /unotools | |
parent | b913cec377878ed640582dcf611ccf8eaf21bd85 (diff) |
tdf#131069 always produce utf-8 from gettext
Change-Id: I311e647f08b4d541825e7790d971b98b5b5bfe40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90668
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/i18n/resmgr.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unotools/source/i18n/resmgr.cxx b/unotools/source/i18n/resmgr.cxx index df5283d71292..a1d74ec1b7cd 100644 --- a/unotools/source/i18n/resmgr.cxx +++ b/unotools/source/i18n/resmgr.cxx @@ -138,7 +138,10 @@ namespace Translate #endif gen.add_messages_path(sPath.getStr()); #if defined UNX && !defined MACOSX && !defined IOS && !defined ANDROID + // allow gettext to find these .mo files e.g. so gtk dialogs can use them bindtextdomain(pPrefixName, sPath.getStr()); + // tdf#131069 gtk, and anything sane, always wants utf-8 strings as output + bind_textdomain_codeset(pPrefixName, "UTF-8"); #endif gen.add_messages_domain(pPrefixName); |