pyuno/source/module/pyuno_runtime.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 279be72f26013dc75ad42bdeb2a3b9301a4326dc
Author:     Mike Kaganski <[email protected]>
AuthorDate: Mon Dec 28 19:10:05 2020 +0300
Commit:     Mike Kaganski <[email protected]>
CommitDate: Fri Jan 1 14:42:44 2021 +0100

    UTF8 is not ASCII
    
    Change-Id: Idb31b3d00f35e0f90a4420f250f7a04535f5fe0a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108476
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

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
             {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to