Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package csvprintf for openSUSE:Factory checked in at 2025-09-30 17:41:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/csvprintf (Old) and /work/SRC/openSUSE:Factory/.csvprintf.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "csvprintf" Tue Sep 30 17:41:06 2025 rev:12 rq:1307928 version:1.3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/csvprintf/csvprintf.changes 2023-02-02 18:23:08.737545369 +0100 +++ /work/SRC/openSUSE:Factory/.csvprintf.new.11973/csvprintf.changes 2025-09-30 17:42:56.178637594 +0200 @@ -1,0 +2,8 @@ +Mon Sep 22 15:12:44 UTC 2025 - Archie Cobbs <[email protected]> + +- Update to release 1.3.3 + - Fixed bug where \t separator was being skipped as whitespace + - Allow duplicate column names if the "-c" flag avoids them + - Fixed "-c" bug where extra data columns were being returned as "colX" + +------------------------------------------------------------------- Old: ---- csvprintf-1.3.2.obscpio New: ---- csvprintf-1.3.3.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ csvprintf.spec ++++++ --- /var/tmp/diff_new_pack.ihLjxD/_old 2025-09-30 17:42:57.398688867 +0200 +++ /var/tmp/diff_new_pack.ihLjxD/_new 2025-09-30 17:42:57.398688867 +0200 @@ -1,7 +1,7 @@ # # spec file for package csvprintf # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: csvprintf -Version: 1.3.2 +Version: 1.3.3 Release: 0 Summary: Simple CSV file parser for the UNIX command line License: Apache-2.0 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.ihLjxD/_old 2025-09-30 17:42:57.438690547 +0200 +++ /var/tmp/diff_new_pack.ihLjxD/_new 2025-09-30 17:42:57.446690883 +0200 @@ -2,8 +2,8 @@ <service mode="localonly" name="obs_scm"> <param name="scm">git</param> <param name="url">https://github.com/archiecobbs/csvprintf</param> - <param name="versionformat">1.3.2</param> - <param name="revision">1.3.2</param> + <param name="versionformat">1.3.3</param> + <param name="revision">1.3.3</param> <param name="filename">csvprintf</param> </service> <service mode="buildtime" name="tar"/> ++++++ csvprintf-1.3.2.obscpio -> csvprintf-1.3.3.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/csvprintf-1.3.2/CHANGES new/csvprintf-1.3.3/CHANGES --- old/csvprintf-1.3.2/CHANGES 2023-01-25 20:11:28.000000000 +0100 +++ new/csvprintf-1.3.3/CHANGES 2025-09-22 17:05:27.000000000 +0200 @@ -1,3 +1,9 @@ +Version 1.3.3 released September 22, 2025 + + - Fixed bug where \t separator was being skipped as whitespace + - Allow duplicate column names if the "-c" flag avoids them + - Fixed "-c" bug where extra data columns were being returned as "colX" + Version 1.3.2 released January 25, 2023 - Fixed bug where we could emit empty XML tag names diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/csvprintf-1.3.2/configure.ac new/csvprintf-1.3.3/configure.ac --- old/csvprintf-1.3.2/configure.ac 2023-01-25 20:11:28.000000000 +0100 +++ new/csvprintf-1.3.3/configure.ac 2025-09-22 17:05:27.000000000 +0200 @@ -16,7 +16,7 @@ # under the License. # -AC_INIT([csvprintf - Simple CSV file parser for the UNIX command line],[1.3.2],[https://github.com/archiecobbs/csvprintf],[csvprintf]) +AC_INIT([csvprintf - Simple CSV file parser for the UNIX command line],[1.3.3],[https://github.com/archiecobbs/csvprintf],[csvprintf]) AC_CONFIG_AUX_DIR(scripts) AM_INIT_AUTOMAKE dnl AM_MAINTAINER_MODE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/csvprintf-1.3.2/main.c new/csvprintf-1.3.3/main.c --- old/csvprintf-1.3.2/main.c 2023-01-25 20:11:28.000000000 +0100 +++ new/csvprintf-1.3.3/main.c 2025-09-22 17:05:27.000000000 +0200 @@ -290,6 +290,9 @@ switch (mode) { case MODE_JSON: for (i = 0; i < column_names.num - 1; i++) { + if (allowed_column_names.num > 0 + && !findstring(&allowed_column_names, column_names.fields[i])) + continue; for (j = i + 1; j < column_names.num; j++) { if (strcmp(column_names.fields[i], column_names.fields[j]) == 0) errx(1, "duplicate column name \"%s\"", column_names.fields[i]); @@ -300,6 +303,9 @@ for (i = 0; i < column_names.num; i++) { char *namei; + if (allowed_column_names.num > 0 + && !findstring(&allowed_column_names, column_names.fields[i])) + continue; if (asprintf(&namei, "%s%s", name_prefix, column_names.fields[i]) == -1) err(1, "asprintf"); if (*namei == '\0') @@ -349,8 +355,7 @@ // Check whether column should be included if (use_column_names && allowed_column_names.num > 0 - && col < column_names.num - && !findstring(&allowed_column_names, column_names.fields[col])) + && (col >= column_names.num || !findstring(&allowed_column_names, column_names.fields[col]))) continue; // Add comma if needed @@ -399,8 +404,7 @@ // Check whether column should be included if (use_column_names && allowed_column_names.num > 0 - && col < column_names.num - && !findstring(&allowed_column_names, column_names.fields[col])) + && (col >= column_names.num || !findstring(&allowed_column_names, column_names.fields[col]))) continue; // Determine whether we can actually use column name for XML tag name @@ -456,8 +460,7 @@ // Check whether column should be included if (use_column_names && allowed_column_names.num > 0 - && col < column_names.num - && !findstring(&allowed_column_names, column_names.fields[col])) + && (col >= column_names.num || !findstring(&allowed_column_names, column_names.fields[col]))) continue; // Elide any BASH special variable names @@ -848,7 +851,7 @@ int row_done; int ch; - // Process initial stuff; skip leading whitespace + // Process initial stuff; skip leading whitespace, excluding our field separator (which could be TAB) do { if ((ch = readch(fp, 1)) == EOF) ch = '\n'; @@ -858,7 +861,7 @@ (*linenum)++; return 0; } - } while (isspace(ch)); + } while (isspace(ch) && ch != fsep); ungetc(ch, fp); // Read quoted or unquoted value diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/csvprintf-1.3.2/tests/test-cflag-extra-cols.tst new/csvprintf-1.3.3/tests/test-cflag-extra-cols.tst --- old/csvprintf-1.3.2/tests/test-cflag-extra-cols.tst 1970-01-01 01:00:00.000000000 +0100 +++ new/csvprintf-1.3.3/tests/test-cflag-extra-cols.tst 2025-09-22 17:05:27.000000000 +0200 @@ -0,0 +1,5 @@ +FLAGS='-ib -p ROW_ -c aaa' +STDIN='"aaa","bbb"\n"a1","b1","c1"\n"a2","b2","c2"\n' +STDOUT=$'ROW_aaa=\'a1\';\nROW_aaa=\'a2\';\n' +STDERR='' +EXITVAL='0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/csvprintf-1.3.2/tests/test-duplicate-col.tst new/csvprintf-1.3.3/tests/test-duplicate-col.tst --- old/csvprintf-1.3.2/tests/test-duplicate-col.tst 1970-01-01 01:00:00.000000000 +0100 +++ new/csvprintf-1.3.3/tests/test-duplicate-col.tst 2025-09-22 17:05:27.000000000 +0200 @@ -0,0 +1,5 @@ +FLAGS='-bi -p ROW_ -c aa' +STDIN='"aa","bb","bb","",""\n"foo","bar","","",""\n' +STDOUT=$'ROW_aa=\'foo\';\n' +STDERR='' +EXITVAL='0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/csvprintf-1.3.2/tests/test-tab-noskip.tst new/csvprintf-1.3.3/tests/test-tab-noskip.tst --- old/csvprintf-1.3.2/tests/test-tab-noskip.tst 1970-01-01 01:00:00.000000000 +0100 +++ new/csvprintf-1.3.3/tests/test-tab-noskip.tst 2025-09-22 17:05:27.000000000 +0200 @@ -0,0 +1,5 @@ +FLAGS='-nj -s \t' +STDIN='aaa\tbbb\tccc\n\t\t\n' +STDOUT='\x1e["","",""]\n' +STDERR='' +EXITVAL='0' ++++++ csvprintf.obsinfo ++++++ --- /var/tmp/diff_new_pack.ihLjxD/_old 2025-09-30 17:42:57.694701306 +0200 +++ /var/tmp/diff_new_pack.ihLjxD/_new 2025-09-30 17:42:57.706701811 +0200 @@ -1,5 +1,5 @@ name: csvprintf -version: 1.3.2 -mtime: 1674673888 -commit: 1e24bae7118cba71954f7f71f67ab34f6b5f58ed +version: 1.3.3 +mtime: 1758553527 +commit: e4d020da85ec02f895811beb7a5859af3fb8b2b2
