Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rapidcsv for openSUSE:Factory 
checked in at 2024-07-01 11:21:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rapidcsv (Old)
 and      /work/SRC/openSUSE:Factory/.rapidcsv.new.18349 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rapidcsv"

Mon Jul  1 11:21:04 2024 rev:3 rq:1184078 version:8.83

Changes:
--------
--- /work/SRC/openSUSE:Factory/rapidcsv/rapidcsv.changes        2024-03-26 
19:29:46.242476556 +0100
+++ /work/SRC/openSUSE:Factory/.rapidcsv.new.18349/rapidcsv.changes     
2024-07-01 11:21:43.518022151 +0200
@@ -1,0 +2,7 @@
+Sat Jun 22 16:47:30 UTC 2024 - Matwey Kornilov <matwey.korni...@gmail.com>
+
+- Update to version 8.83:
+  * fixes #161 - writing CSV with autoquote enabled should quote strings
+    containing linebreak
+
+-------------------------------------------------------------------

Old:
----
  rapidcsv-8.82.tar.gz

New:
----
  rapidcsv-8.83.tar.gz

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

Other differences:
------------------
++++++ rapidcsv.spec ++++++
--- /var/tmp/diff_new_pack.rMrBjR/_old  2024-07-01 11:21:44.050041531 +0200
+++ /var/tmp/diff_new_pack.rMrBjR/_new  2024-07-01 11:21:44.054041677 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           rapidcsv
-Version:        8.82
+Version:        8.83
 Release:        0
 Summary:        C++ header-only library for CSV parsing
 License:        BSD-3-Clause

++++++ rapidcsv-8.82.tar.gz -> rapidcsv-8.83.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rapidcsv-8.82/src/rapidcsv.h 
new/rapidcsv-8.83/src/rapidcsv.h
--- old/rapidcsv-8.82/src/rapidcsv.h    2024-02-10 12:23:55.000000000 +0100
+++ new/rapidcsv-8.83/src/rapidcsv.h    2024-03-31 03:56:19.000000000 +0200
@@ -2,7 +2,7 @@
  * rapidcsv.h
  *
  * URL:      https://github.com/d99kris/rapidcsv
- * Version:  8.82
+ * Version:  8.83
  *
  * Copyright (C) 2017-2024 Kristofer Berggren
  * All rights reserved.
@@ -1748,7 +1748,8 @@
         {
           if (mSeparatorParams.mAutoQuote &&
               ((itc->find(mSeparatorParams.mSeparator) != std::string::npos) ||
-               (itc->find(' ') != std::string::npos)))
+               (itc->find(' ') != std::string::npos) ||
+               (itc->find('\n') != std::string::npos)))
           {
             // escape quotes in string
             std::string str = *itc;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rapidcsv-8.82/tests/test067.cpp 
new/rapidcsv-8.83/tests/test067.cpp
--- old/rapidcsv-8.82/tests/test067.cpp 2024-02-10 12:23:55.000000000 +0100
+++ new/rapidcsv-8.83/tests/test067.cpp 2024-03-31 03:56:19.000000000 +0200
@@ -14,6 +14,7 @@
     "\"a b\"\n"
     "\"\"\"a b\"\"\"\n"
     "\" \"\"a\"\" \"\n"
+    "\"a\nb\"\n"
   ;
 
   std::string csvreadref =
@@ -22,6 +23,7 @@
     "\"a b\"\n"
     "\"\"\"a b\"\"\"\n"
     "\" \"\"a\"\" \"\n"
+    "\"a\nb\"\n"
   ;
 
   std::string path = unittest::TempPath();
@@ -33,12 +35,13 @@
     {
       rapidcsv::Document doc(path, rapidcsv::LabelParams(0 /* pColumnNameIdx 
*/, -1 /* pRowNameIdx */),
                              rapidcsv::SeparatorParams(',', false /* pTrim */, 
rapidcsv::sPlatformHasCR /* pHasCR */,
-                                                       false /* 
pQuotedLinebreaks */, true /* pAutoQuote */));
+                                                       true /* 
pQuotedLinebreaks */, true /* pAutoQuote */));
       unittest::ExpectEqual(std::string, doc.GetCell<std::string>("col 1", 0), 
"");
       unittest::ExpectEqual(std::string, doc.GetCell<std::string>("col 1", 1), 
" ");
       unittest::ExpectEqual(std::string, doc.GetCell<std::string>("col 1", 2), 
"a b");
       unittest::ExpectEqual(std::string, doc.GetCell<std::string>("col 1", 3), 
"\"a b\"");
       unittest::ExpectEqual(std::string, doc.GetCell<std::string>("col 1", 4), 
" \"a\" ");
+      unittest::ExpectEqual(std::string, doc.GetCell<std::string>("col 1", 5), 
"a\nb");
     }
 
     // write
@@ -46,7 +49,7 @@
       unittest::WriteFile(path, csvreadref);
       rapidcsv::Document doc(path, rapidcsv::LabelParams(0 /* pColumnNameIdx 
*/, -1 /* pRowNameIdx */),
                              rapidcsv::SeparatorParams(',', false /* pTrim */, 
rapidcsv::sPlatformHasCR /* pHasCR */,
-                                                       false /* 
pQuotedLinebreaks */, true /* pAutoQuote */));
+                                                       true /* 
pQuotedLinebreaks */, true /* pAutoQuote */));
 
       doc.Save();
       const std::string& csvread = unittest::ReadFile(path);

Reply via email to