[Libreoffice-bugs] [Bug 127233] QR-code generator make non-correct QR for non latine phrase

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 30 09:47:36 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=127233

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |22shubh22 at gmail.com

--- Comment #3 from Julien Nabet <serval2412 at yahoo.fr> ---
Shubham: I tested this patch:

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.

it seemed ok to me but perhaps there would be some side effect.

Any thoughts?
I can submit it on gerrit after my day time job if you're ok or you can do it
if you prefer.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190830/b7cb9dfc/attachment.html>


More information about the Libreoffice-bugs mailing list