summaryrefslogtreecommitdiff
path: root/cui/uiconfig/ui/mosaicdialog.ui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-12-29 11:35:12 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-03 14:54:49 +0100
commit75252e58d9b5d020bf7bd6ca66b3a9d780463051 (patch)
tree1cdbae85e7bd21def74d80f86fc48af78b026781 /cui/uiconfig/ui/mosaicdialog.ui
parent413db68d95bd39d34e6a6b81a7c5c9478ced0514 (diff)
Try GetShortPathNameW workaround for Unicode paths with orcus
It doesn't yet allow to pass a Unicode path to file_content ctor; so in case of a filesystem error try to use a short path, which should only contain ASCII characters. This workarounds the failure when installation directory contains characters not representable in ACP. The previous code that used RTL_TEXTENCODING_UTF8 for encoding the path string was wrong, since orcus does not use file APIs expecting UTF-8, but rather expecting current thread encoding. It failed for any path that contained non-ASCII characters on Windows, even those that may be represented in ACP. Change-Id: Id956f550f3b0fa19d9f2c0178c3f7ae9553b7458 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108483 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui/uiconfig/ui/mosaicdialog.ui')
0 files changed, 0 insertions, 0 deletions