From 06a5ca2716fe9b7dfa6f736d931d4cde9807a5d4 Mon Sep 17 00:00:00 2001 From: Ondřej Vašík Date: Feb 15 2016 11:47:08 +0000 Subject: cut: fix regression in handling fields for lines wider than 64 chars (#1304839) --- diff --git a/coreutils-i18n-cut.patch b/coreutils-i18n-cut.patch index ab72147..ec85cf0 100644 --- a/coreutils-i18n-cut.patch +++ b/coreutils-i18n-cut.patch @@ -107,7 +107,7 @@ /* Return nonzero if K'th byte is the beginning of a range. */ static inline bool -@@ -505,23 +520,216 @@ cut_bytes (FILE *stream) +@@ -505,23 +520,215 @@ cut_bytes (FILE *stream) } /* Read from stream STREAM, printing to standard output any selected fields. */ @@ -210,10 +210,9 @@ + /* Here, if size < nmax, nchars_avail >= buffer_len + 1. + If size == nmax, nchars_avail > 0. */ + -+ if (1 < nchars_avail) ++ if (1 < nchars_avail--) + { + mb_copy(read_pos++, &c); -+ --nchars_avail; + } + + } diff --git a/coreutils.spec b/coreutils.spec index 700fbb8..53b9b03 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -1,7 +1,7 @@ Summary: A set of basic GNU tools commonly used in shell scripts Name: coreutils Version: 8.25 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -349,6 +349,10 @@ fi %license COPYING %changelog +* Mon Feb 15 2016 Ondrej Vasik - 8.25-4 +- cut: fix regression in handling fields for lines wider + than 64 chars (#1304839) + * Thu Feb 11 2016 Lubomir Rintel - 8.25-3 - Fix a regression in unexpand empty line handling