diff --git a/coreutils-i18n-cut.patch b/coreutils-i18n-cut.patch index b300eac..0c694ed 100644 --- a/coreutils-i18n-cut.patch +++ b/coreutils-i18n-cut.patch @@ -536,7 +536,7 @@ case 'f': /* Build the field list. */ if (operating_mode != undefined_mode) -@@ -747,9 +986,15 @@ main (int argc, char **argv) +@@ -747,9 +986,17 @@ main (int argc, char **argv) case 'd': /* New delimiter. */ /* Interpret -d '' to mean 'use the NUL byte as the delimiter.' */ @@ -545,11 +545,13 @@ + if (!mbi_avail (iter)) + mb_setascii (&delim, '\0'); + else -+ mb_copy (&delim, &mbi_cur (iter)); ++ { ++ mb_copy (&delim, &mbi_cur (iter)); + -+ mbi_advance (iter); -+ if (mbi_avail (iter)) ++ mbi_advance (iter); ++ if (mbi_avail (iter)) FATAL_ERROR (_("the delimiter must be a single character")); ++ } - delim = optarg[0]; delim_specified = true; break; diff --git a/coreutils.spec b/coreutils.spec index a4c3ed1..c122e22 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.24 -Release: 107%{?dist} +Release: 108%{?dist} License: GPLv3+ Group: System Environment/Base Url: http://www.gnu.org/software/coreutils/ @@ -359,6 +359,9 @@ fi %license COPYING %changelog +* Fri Jan 15 2016 Ondrej Oprala - 8.24-108 +- cut: be MB for ALL archs + * Fri Jan 15 2016 Ondrej Oprala - 8.24-107 - Use the new i18n implementation for the cut utility