summaryrefslogtreecommitdiffstats
path: root/lingucomponent/source/numbertext/numbertext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/numbertext/numbertext.cxx')
-rw-r--r--lingucomponent/source/numbertext/numbertext.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx
index dfc11a1fbb85..cb8e913bf571 100644
--- a/lingucomponent/source/numbertext/numbertext.cxx
+++ b/lingucomponent/source/numbertext/numbertext.cxx
@@ -100,10 +100,12 @@ void NumberText_Impl::EnsureInitialized()
osl::FileBase::getSystemPathFromFileURL(aURL, aPhysPath);
#ifdef _WIN32
aPhysPath += "\\";
+ const rtl_TextEncoding eEnc = RTL_TEXTENCODING_UTF8;
#else
aPhysPath += "/";
+ const rtl_TextEncoding eEnc = osl_getThreadTextEncoding();
#endif
- OString path = OUStringToOString(aPhysPath, osl_getThreadTextEncoding());
+ OString path = OUStringToOString(aPhysPath, eEnc);
m_aNumberText.set_prefix(path.getStr());
}