sc/source/filter/orcus/utils.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit b7faec438d426f248e16468295aba7e1189ea4b4 Author: Kohei Yoshida <kohei.yosh...@collabora.com> AuthorDate: Wed Aug 20 17:50:22 2025 -0400 Commit: Kohei Yoshida <kohei.yosh...@collabora.com> CommitDate: Thu Aug 21 01:46:30 2025 +0200 Use current thread-local text encoding on non-Windows platform Change-Id: I7b5613bb8ad71f9c49a0d8a8afcf94d644d3c05a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189977 Tested-by: Jenkins Reviewed-by: Kohei Yoshida <ko...@libreoffice.org> diff --git a/sc/source/filter/orcus/utils.cxx b/sc/source/filter/orcus/utils.cxx index 61b6d6c542cf..d3df1513cc5c 100644 --- a/sc/source/filter/orcus/utils.cxx +++ b/sc/source/filter/orcus/utils.cxx @@ -6,13 +6,14 @@ */ #include <orcus_utils.hxx> +#include <osl/thread.hxx> orcus::file_content toFileContent(const OUString& rPath) { #ifdef _WIN32 return orcus::file_content(rPath); #else - return orcus::file_content(rPath.toUtf8()); + return orcus::file_content(OUStringToOString(rPath, osl_getThreadTextEncoding())); #endif }