diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-04 10:59:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-04 18:25:41 +0100 |
commit | ff3ce4f389083fba206e752e09f6b60ca003f625 (patch) | |
tree | cb6a9f09fe7378cd03f09ebf523c2bf45aa44c8a /pyuno | |
parent | 35820c4a439e822712c3e63a3e82e0e999c535b4 (diff) |
mbstowcs failure check is only relevant for non-_WIN32 now
...after cbe9a0a815e4a73bf8db425a7c5c651e67b2ed65 "Use Unicode paths on Windows
for pyuno"
Change-Id: I898ee8ebbc1dfb215c55940c6336756ae7b5ccc5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108658
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index 1337ea8c78f9..3a7bfd5cf45f 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -119,12 +119,12 @@ static void setPythonHome ( const OUString & pythonHome ) #else OString o = OUStringToOString(systemPythonHome, osl_getThreadTextEncoding()); size_t len = mbstowcs(wide, o.pData->buffer, PATH_MAX + 1); -#endif if(len == size_t(-1)) { PyErr_SetString(PyExc_SystemError, "invalid multibyte sequence in python home path"); return; } +#endif if(len >= PATH_MAX + 1) { PyErr_SetString(PyExc_SystemError, "python home path is too long"); |