summaryrefslogtreecommitdiff
path: root/sal/osl/w32/socket.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2017-09-25 08:59:28 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2017-09-27 06:24:24 +0200
commitd32506e9f4ea604532bf5f4ba8a302b652aeaaa1 (patch)
tree2bd33f7917bd76d18f998eea531e4bdaa7d7eb54 /sal/osl/w32/socket.cxx
parent892c719fffa06de4c7aeab497326cad7bae9e5c6 (diff)
cppuhelper_detail_findSofficePath: use Unicode on Windows
On Windows, UTF-8 is never current locale encoding; so using 8-bit strings will always fail for paths containing characters outside of current codepage. Also fix leaks caused by failing to release its result: previously it could return either result of getenv (that shouldn't get freed), or an allocated string, but never got freed; now the result is always allocated and properly freed. Change-Id: I8b255dea20040eec0572de2b34280749fe8f071c Reviewed-on: https://gerrit.libreoffice.org/42743 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/osl/w32/socket.cxx')
0 files changed, 0 insertions, 0 deletions