[Libreoffice-commits] core.git: cui/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 30 19:43:07 UTC 2019


 cui/source/dialogs/QrCodeGenDialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8cecd48af5dbd290d06641b7feeb7c0969752d57
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Fri Aug 30 17:04:20 2019 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri Aug 30 21:42:10 2019 +0200

    tdf#127233: QR-code generator, use UTF-8 encoding
    
    Thank you Mike Kaganski for reference here:
    https://bugs.documentfoundation.org/show_bug.cgi?id=127233#c4
    
    Change-Id: I01bbc408df8bc87cf4e8be52143efb9fc3fa1e38
    Reviewed-on: https://gerrit.libreoffice.org/78304
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx
index 661d36678c07..7bd72ff0fc1c 100644
--- a/cui/source/dialogs/QrCodeGenDialog.cxx
+++ b/cui/source/dialogs/QrCodeGenDialog.cxx
@@ -259,7 +259,7 @@ OUString QrCodeGenDialog::GenerateQRCode(OUString aQRText, long aQRECC, int aQRB
     }
 
     //OuString to char* qrtext
-    OString o = OUStringToOString(aQRText, RTL_TEXTENCODING_ASCII_US);
+    OString o = OUStringToOString(aQRText, RTL_TEXTENCODING_UTF8);
     const char* qrtext = o.pData->buffer;
 
     //From Qr Code library.


More information about the Libreoffice-commits mailing list