diff options
-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 47069489aa41..786c83df2e7b 100644 --- a/unotools/source/i18n/resmgr.cxx +++ b/unotools/source/i18n/resmgr.cxx @@ -130,7 +130,10 @@ namespace Translate OString sPath(OUStringToOString(path, osl_getThreadTextEncoding())); 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); |