diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-12-28 19:10:05 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-01-01 14:42:44 +0100 |
commit | 279be72f26013dc75ad42bdeb2a3b9301a4326dc (patch) | |
tree | 10eb28b5f12fd27aa756d8f53034524d82d6be30 /pyuno | |
parent | f014efeb2e715d2f52be882c59cd981816d0821a (diff) |
UTF8 is not ASCII
Change-Id: Idb31b3d00f35e0f90a4420f250f7a04535f5fe0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108476
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 961014ebc74b..4e44245e2827 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -877,7 +877,7 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue, PyRef args( PyTuple_New( 1), SAL_NO_ACQUIRE, NOT_NULL ); PyTuple_SetItem( args.get(), 0, excTraceback.getAcquired() ); PyRef pyStr( PyObject_CallObject( extractTraceback.get(),args.get() ), SAL_NO_ACQUIRE); - str = OUString::createFromAscii( PyUnicode_AsUTF8(pyStr.get()) ); + str = OUString::fromUtf8(PyUnicode_AsUTF8(pyStr.get())); } else { |