Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package prison-qt5 for openSUSE:Factory 
checked in at 2023-05-14 16:31:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/prison-qt5 (Old)
 and      /work/SRC/openSUSE:Factory/.prison-qt5.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "prison-qt5"

Sun May 14 16:31:22 2023 rev:81 rq:1086968 version:5.106.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/prison-qt5/prison-qt5.changes    2023-04-09 
18:42:41.234318397 +0200
+++ /work/SRC/openSUSE:Factory/.prison-qt5.new.1533/prison-qt5.changes  
2023-05-14 16:33:45.891789930 +0200
@@ -1,0 +2,10 @@
+Sat May  6 14:01:53 UTC 2023 - Christophe Marin <[email protected]>
+
+- Update to 5.106.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/5/5.106.0
+- Changes since 5.105.0:
+  * Fix PDF417 with binary content not producing any output with ZXing 2.0
+
+-------------------------------------------------------------------

Old:
----
  prison-5.105.0.tar.xz
  prison-5.105.0.tar.xz.sig

New:
----
  prison-5.106.0.tar.xz
  prison-5.106.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ prison-qt5.spec ++++++
--- /var/tmp/diff_new_pack.3K0LIF/_old  2023-05-14 16:33:46.387792329 +0200
+++ /var/tmp/diff_new_pack.3K0LIF/_new  2023-05-14 16:33:46.395792367 +0200
@@ -27,7 +27,7 @@
 # Only needed for the package signature condition
 %bcond_without released
 Name:           prison-qt5
-Version:        5.105.0
+Version:        5.106.0
 Release:        0
 Summary:        Barcode abstraction layer library
 License:        MIT


++++++ prison-5.105.0.tar.xz -> prison-5.106.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prison-5.105.0/CMakeLists.txt 
new/prison-5.106.0/CMakeLists.txt
--- old/prison-5.105.0/CMakeLists.txt   2023-03-31 11:17:59.000000000 +0200
+++ new/prison-5.106.0/CMakeLists.txt   2023-05-06 11:32:02.000000000 +0200
@@ -1,11 +1,11 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "5.105.0") # handled by release scripts
+set(KF_VERSION "5.106.0") # handled by release scripts
 project(prison VERSION ${KF_VERSION})
 
 # ECM setup
 include(FeatureSummary)
-find_package(ECM 5.105.0 NO_MODULE)
+find_package(ECM 5.106.0 NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL "https://commits.kde.org/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${ECM_MODULE_PATH}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prison-5.105.0/src/lib/pdf417barcode.cpp 
new/prison-5.106.0/src/lib/pdf417barcode.cpp
--- old/prison-5.105.0/src/lib/pdf417barcode.cpp        2023-03-31 
11:17:59.000000000 +0200
+++ new/prison-5.106.0/src/lib/pdf417barcode.cpp        2023-05-06 
11:32:02.000000000 +0200
@@ -23,18 +23,27 @@
     Q_UNUSED(size);
 
     std::wstring input;
-    if (!data().isEmpty()) {
+    const bool isBinary = data().isEmpty();
+    if (!isBinary) {
         input = data().toStdWString();
     } else {
         const auto b = byteArrayData();
         input.reserve(b.size());
-        std::copy(b.begin(), b.end(), std::back_inserter(input));
+        // ensure we explicitly copy unsigned bytes here, ie. each byte ends 
up in the least significant byte of
+        // the std::wstring. If we end up converting to a signed value 
inbetween, values > 127 end up negative and
+        // will be wrongly represented in the std::wstring
+        for (uint8_t c : b) {
+            input.push_back(c);
+        }
     }
 
     try {
         ZXing::MultiFormatWriter writer(ZXing::BarcodeFormat::PDF417);
         // ISO/IEC 15438:2006(E) §5.8.3 Quiet Zone
         writer.setMargin(2);
+        if (isBinary) {
+            writer.setEncoding(ZXing::CharacterSet::BINARY);
+        }
         // aspect ratio 4 is hard-coded in ZXing
         const auto matrix = writer.encode(input, 4, 1);
 

Reply via email to