-diff -urNp coreutils-8.10-orig/lib/linebuffer.h coreutils-8.10/lib/linebuffer.h
---- coreutils-8.10-orig/lib/linebuffer.h 2011-01-06 09:47:56.000000000 +0100
-+++ coreutils-8.10/lib/linebuffer.h 2011-02-04 20:13:23.985464731 +0100
+diff -urNp coreutils-8.13-orig/lib/linebuffer.h coreutils-8.13/lib/linebuffer.h
+--- coreutils-8.13-orig/lib/linebuffer.h 2011-04-24 19:21:45.000000000 +0200
++++ coreutils-8.13/lib/linebuffer.h 2011-09-09 10:23:14.163704760 +0200
@@ -21,6 +21,11 @@
# include <stdio.h>
};
/* Initialize linebuffer LINEBUFFER for use. */
-diff -urNp coreutils-8.10-orig/src/cut.c coreutils-8.10/src/cut.c
---- coreutils-8.10-orig/src/cut.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/cut.c 2011-02-04 20:13:23.988464025 +0100
+diff -urNp coreutils-8.13-orig/src/cut.c coreutils-8.13/src/cut.c
+--- coreutils-8.13-orig/src/cut.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/cut.c 2011-09-09 10:23:14.165701039 +0200
@@ -28,6 +28,11 @@
#include <assert.h>
#include <getopt.h>
+ while (0)
+
+/* Get wide character on BUFPOS. BUFPOS is not included after that.
-+ If byte sequence is not valid as a character, CONVFAIL is 1. Otherwise 0. */
++ If byte sequence is not valid as a character, CONVFAIL is 1. Otherwise 0. */
+#define GET_NEXT_WC_FROM_BUFFER(WC, BUFPOS, BUFLEN, MBLENGTH, STATE, CONVFAIL) \
+ do \
+ { \
}
max_range_endpoint = 0;
-@@ -580,6 +662,63 @@ cut_bytes (FILE *stream)
+@@ -582,6 +664,77 @@ cut_bytes (FILE *stream)
}
}
+/* This function is in use for the following case.
+
+ 1. Read from the stream STREAM, printing to standard output any selected
-+ characters.
++ characters.
+
+ 2. Read from stream STREAM, printing to standard output any selected bytes,
+ without splitting multibyte characters. */
-+
++
+static void
+cut_characters_or_cut_bytes_no_split (FILE *stream)
+{
+ as same character as WC. */
+ mbstate_t state; /* State of the stream. */
+ int convfail = 0; /* 1, when conversion is failed. Otherwise 0. */
++ /* Whether to begin printing delimiters between ranges for the current line.
++ Set after we've begun printing data corresponding to the first range. */
++ bool print_delimiter = false;
+
+ idx = 0;
+ buflen = 0;
+ {
+ putchar ('\n');
+ idx = 0;
++ print_delimiter = false;
+ }
+ else
+ {
++ bool range_start;
++ bool *rs = output_delimiter_specified ? &range_start : NULL;
+ idx += (operating_mode == byte_mode) ? mblength : 1;
-+ if (print_kth (idx, NULL))
-+ fwrite (bufpos, mblength, sizeof(char), stdout);
++ if (print_kth (idx, rs))
++ {
++ if (rs && *rs && print_delimiter)
++ {
++ fwrite (output_delimiter_string, sizeof (char),
++ output_delimiter_length, stdout);
++ }
++ print_delimiter = true;
++ fwrite (bufpos, mblength, sizeof(char), stdout);
++ }
+ }
+
+ buflen -= mblength;
+ }
+}
+#endif
-+
++
/* Read from stream STREAM, printing to standard output any selected fields. */
static void
-@@ -702,13 +841,192 @@ cut_fields (FILE *stream)
+@@ -704,13 +843,195 @@ cut_fields (FILE *stream)
}
}
+ size_t mblength; /* The byte size of a multibyte character which shows
+ as same character as WC. */
+ mbstate_t state; /* State of the stream. */
-+ int convfail; /* 1, when conversion is failed. Otherwise 0. */
++ int convfail = 0; /* 1, when conversion is failed. Otherwise 0. */
+
+ found_any_selected_field = 0;
+ field_idx = 1;
+ c = getc (stream);
+ empty_input = (c == EOF);
+ if (c != EOF)
++ {
+ ungetc (c, stream);
++ wc = 0;
++ }
+ else
+ wc = WEOF;
+
}
/* Process file FILE to standard output.
-@@ -760,6 +1078,8 @@ main (int argc, char **argv)
+@@ -762,6 +1080,8 @@ main (int argc, char **argv)
bool ok;
bool delim_specified = false;
char *spec_list_string IF_LINT ( = NULL);
initialize_main (&argc, &argv);
set_program_name (argv[0]);
-@@ -782,7 +1102,6 @@ main (int argc, char **argv)
+@@ -784,7 +1104,6 @@ main (int argc, char **argv)
switch (optc)
{
case 'b':
/* Build the byte list. */
if (operating_mode != undefined_mode)
FATAL_ERROR (_("only one type of list may be specified"));
-@@ -790,6 +1109,14 @@ main (int argc, char **argv)
+@@ -792,6 +1111,14 @@ main (int argc, char **argv)
spec_list_string = optarg;
break;
case 'f':
/* Build the field list. */
if (operating_mode != undefined_mode)
-@@ -801,10 +1128,35 @@ main (int argc, char **argv)
+@@ -803,10 +1130,35 @@ main (int argc, char **argv)
case 'd':
/* New delimiter. */
/* Interpret -d '' to mean `use the NUL byte as the delimiter.' */
break;
case OUTPUT_DELIMITER_OPTION:
-@@ -817,6 +1169,7 @@ main (int argc, char **argv)
+@@ -819,6 +1171,7 @@ main (int argc, char **argv)
break;
case 'n':
break;
case 's':
-@@ -839,7 +1192,7 @@ main (int argc, char **argv)
+@@ -841,7 +1194,7 @@ main (int argc, char **argv)
if (operating_mode == undefined_mode)
FATAL_ERROR (_("you must specify a list of bytes, characters, or fields"));
FATAL_ERROR (_("an input delimiter may be specified only\
when operating on fields"));
-@@ -866,15 +1219,34 @@ main (int argc, char **argv)
+@@ -868,15 +1221,34 @@ main (int argc, char **argv)
}
if (!delim_specified)
+ if (MB_CUR_MAX <= 1 || force_singlebyte_mode)
+#endif
+ {
-+ static char dummy[2];
++ static char dummy[2];
+ dummy[0] = delim;
+ dummy[1] = '\0';
+ output_delimiter_string = dummy;
}
if (optind == argc)
-diff -urNp coreutils-8.10-orig/src/expand.c coreutils-8.10/src/expand.c
---- coreutils-8.10-orig/src/expand.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/expand.c 2011-02-04 20:13:23.990463571 +0100
+diff -urNp coreutils-8.13-orig/src/expand.c coreutils-8.13/src/expand.c
+--- coreutils-8.13-orig/src/expand.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/expand.c 2011-09-09 10:23:14.167583399 +0200
@@ -38,12 +38,29 @@
#include <stdio.h>
#include <getopt.h>
if (have_read_stdin && fclose (stdin) != 0)
error (EXIT_FAILURE, errno, "-");
-diff -urNp coreutils-8.10-orig/src/fold.c coreutils-8.10/src/fold.c
---- coreutils-8.10-orig/src/fold.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/fold.c 2011-02-04 20:13:23.992463115 +0100
+diff -urNp coreutils-8.13-orig/src/fold.c coreutils-8.13/src/fold.c
+--- coreutils-8.13-orig/src/fold.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/fold.c 2011-09-09 10:23:14.169583741 +0200
@@ -22,12 +22,34 @@
#include <getopt.h>
#include <sys/types.h>
if (ferror (istream))
{
error (0, saved_errno, "%s", filename);
-@@ -254,7 +502,8 @@ main (int argc, char **argv)
+@@ -254,7 +501,8 @@ main (int argc, char **argv)
atexit (close_stdout);
while ((optc = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1)
{
-@@ -263,7 +512,15 @@ main (int argc, char **argv)
+@@ -263,7 +511,15 @@ main (int argc, char **argv)
switch (optc)
{
case 'b': /* Count bytes rather than columns. */
break;
case 's': /* Break at word boundaries. */
-diff -urNp coreutils-8.10-orig/src/join.c coreutils-8.10/src/join.c
---- coreutils-8.10-orig/src/join.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/join.c 2011-02-04 20:20:15.985114387 +0100
+diff -urNp coreutils-8.13-orig/src/join.c coreutils-8.13/src/join.c
+--- coreutils-8.13-orig/src/join.c 2011-08-08 10:16:09.000000000 +0200
++++ coreutils-8.13/src/join.c 2011-09-09 10:23:14.172687087 +0200
@@ -22,18 +22,32 @@
#include <sys/types.h>
#include <getopt.h>
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "join"
-@@ -129,10 +143,12 @@ static struct outlist outlist_head;
+@@ -135,10 +149,12 @@ static struct outlist outlist_head;
/* Last element in `outlist', where a new element can be added. */
static struct outlist *outlist_end = &outlist_head;
/* If nonzero, check that the input is correctly ordered. */
static enum
-@@ -257,13 +273,14 @@ xfields (struct line *line)
+@@ -263,13 +279,14 @@ xfields (struct line *line)
if (ptr == lim)
return;
{
/* Skip leading blanks before the first field. */
while (isblank (to_uchar (*ptr)))
-@@ -287,6 +304,148 @@ xfields (struct line *line)
+@@ -293,6 +310,148 @@ xfields (struct line *line)
extract_field (line, ptr, lim - ptr);
}
static void
freeline (struct line *line)
{
-@@ -308,56 +467,115 @@ keycmp (struct line const *line1, struct
+@@ -314,56 +473,115 @@ keycmp (struct line const *line1, struct
size_t jf_1, size_t jf_2)
{
/* Start of field to compare in each file. */
- return xmemcoll (beg1, len1, beg2, len2);
- diff = memcmp (beg1, beg2, MIN (len1, len2));
+ copy[0] = (unsigned char *) beg[0];
-+ copy[1] = (unsigned char *) beg[1];
++ copy[1] = (unsigned char *) beg[1];
}
+ if (hard_LC_COLLATE)
}
/* Check that successive input lines PREV and CURRENT from input file
-@@ -438,6 +656,11 @@ get_line (FILE *fp, struct line **linep,
- return false;
+@@ -455,6 +673,11 @@ get_line (FILE *fp, struct line **linep,
}
+ ++line_no[which - 1];
+#if HAVE_MBRTOWC
+ if (MB_CUR_MAX > 1)
xfields (line);
if (prevline[which - 1])
-@@ -537,21 +760,28 @@ prfield (size_t n, struct line const *li
+@@ -554,21 +777,28 @@ prfield (size_t n, struct line const *li
/* Output all the fields in line, other than the join field. */
prfield (i, line);
}
}
-@@ -562,7 +792,6 @@ static void
+@@ -579,7 +809,6 @@ static void
prjoin (struct line const *line1, struct line const *line2)
{
const struct outlist *outlist;
size_t field;
struct line const *line;
-@@ -596,7 +825,7 @@ prjoin (struct line const *line1, struct
+@@ -613,7 +842,7 @@ prjoin (struct line const *line1, struct
o = o->next;
if (o == NULL)
break;
}
putchar ('\n');
}
-@@ -1075,21 +1304,46 @@ main (int argc, char **argv)
+@@ -1091,21 +1320,46 @@ main (int argc, char **argv)
case 't':
{
- unsigned char newtab = optarg[0];
-+ char *newtab;
++ char *newtab = NULL;
+ size_t newtablen;
+ newtab = xstrdup (optarg);
+#if HAVE_MBRTOWC
+ newtablen = 1;
if (! newtab)
+ {
- newtab = '\n'; /* '' => process the whole line. */
+- newtab = '\n'; /* '' => process the whole line. */
++ newtab = "\n"; /* '' => process the whole line. */
+ }
else if (optarg[1])
{
break;
case NOCHECK_ORDER_OPTION:
-diff -urNp coreutils-8.10-orig/src/pr.c coreutils-8.10/src/pr.c
---- coreutils-8.10-orig/src/pr.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/pr.c 2011-02-04 20:13:24.002460897 +0100
+diff -urNp coreutils-8.13-orig/src/pr.c coreutils-8.13/src/pr.c
+--- coreutils-8.13-orig/src/pr.c 2011-08-30 23:01:40.000000000 +0200
++++ coreutils-8.13/src/pr.c 2011-09-09 10:23:14.177658905 +0200
@@ -312,6 +312,32 @@
#include <getopt.h>
/* We've just printed some files and need to clean up things before
looking for more options and printing the next batch of files.
-diff -urNp coreutils-8.10-orig/src/sort.c coreutils-8.10/src/sort.c
---- coreutils-8.10-orig/src/sort.c 2011-02-03 11:24:35.000000000 +0100
-+++ coreutils-8.10/src/sort.c 2011-02-04 20:15:44.160384535 +0100
+diff -urNp coreutils-8.13-orig/src/sort.c coreutils-8.13/src/sort.c
+--- coreutils-8.13-orig/src/sort.c 2011-07-29 10:12:25.000000000 +0200
++++ coreutils-8.13/src/sort.c 2011-09-09 10:23:14.183686800 +0200
@@ -22,11 +22,20 @@
#include <config.h>
#include "system.h"
#include "argmatch.h"
#include "error.h"
-@@ -163,12 +172,34 @@ static int thousands_sep;
+@@ -167,12 +176,34 @@ static int thousands_sep;
/* Nonzero if the corresponding locales are hard. */
static bool hard_LC_COLLATE;
/* The kind of blanks for '-b' to skip in various options. */
enum blanktype { bl_start, bl_end, bl_both };
-@@ -335,13 +366,11 @@ static bool reverse;
+@@ -343,13 +374,11 @@ static bool reverse;
they were read if all keys compare equal. */
static bool stable;
/* Flag to remove consecutive duplicate lines from the output.
Only the last of a sequence of equal lines will be output. */
-@@ -775,6 +804,46 @@ reap_all (void)
+@@ -783,6 +812,46 @@ reap_all (void)
reap (-1);
}
/* Clean up any remaining temporary files. */
static void
-@@ -1207,7 +1276,7 @@ zaptemp (char const *name)
+@@ -1215,7 +1284,7 @@ zaptemp (char const *name)
free (node);
}
static int
struct_month_cmp (void const *m1, void const *m2)
-@@ -1222,7 +1291,7 @@ struct_month_cmp (void const *m1, void c
+@@ -1230,7 +1299,7 @@ struct_month_cmp (void const *m1, void c
/* Initialize the character class tables. */
static void
{
size_t i;
-@@ -1234,7 +1303,7 @@ inittables (void)
+@@ -1242,7 +1311,7 @@ inittables (void)
fold_toupper[i] = toupper (i);
}
/* If we're not in the "C" locale, read different names for months. */
if (hard_LC_TIME)
{
-@@ -1316,6 +1385,84 @@ specify_nmerge (int oi, char c, char con
+@@ -1324,6 +1393,84 @@ specify_nmerge (int oi, char c, char con
xstrtol_fatal (e, oi, c, long_options, s);
}
/* Specify the amount of main memory to use when sorting. */
static void
specify_sort_size (int oi, char c, char const *s)
-@@ -1544,7 +1691,7 @@ buffer_linelim (struct buffer const *buf
+@@ -1552,7 +1699,7 @@ buffer_linelim (struct buffer const *buf
by KEY in LINE. */
static char *
{
char *ptr = line->text, *lim = ptr + line->length - 1;
size_t sword = key->sword;
-@@ -1553,10 +1700,10 @@ begfield (struct line const *line, struc
+@@ -1561,10 +1708,10 @@ begfield (struct line const *line, struc
/* The leading field separator itself is included in a field when -t
is absent. */
++ptr;
if (ptr < lim)
++ptr;
-@@ -1582,11 +1729,70 @@ begfield (struct line const *line, struc
+@@ -1590,11 +1737,70 @@ begfield (struct line const *line, struc
return ptr;
}
{
char *ptr = line->text, *lim = ptr + line->length - 1;
size_t eword = key->eword, echar = key->echar;
-@@ -1601,10 +1807,10 @@ limfield (struct line const *line, struc
+@@ -1609,10 +1815,10 @@ limfield (struct line const *line, struc
`beginning' is the first character following the delimiting TAB.
Otherwise, leave PTR pointing at the first `blank' character after
the preceding field. */
++ptr;
if (ptr < lim && (eword || echar))
++ptr;
-@@ -1650,10 +1856,10 @@ limfield (struct line const *line, struc
+@@ -1658,10 +1864,10 @@ limfield (struct line const *line, struc
*/
/* Make LIM point to the end of (one byte past) the current field. */
if (newlim)
lim = newlim;
}
-@@ -1684,6 +1890,130 @@ limfield (struct line const *line, struc
+@@ -1692,6 +1898,130 @@ limfield (struct line const *line, struc
return ptr;
}
/* Fill BUF reading from FP, moving buf->left bytes from the end
of buf->buf to the beginning first. If EOF is reached and the
file wasn't terminated by a newline, supply one. Set up BUF's line
-@@ -1770,8 +2100,22 @@ fillbuf (struct buffer *buf, FILE *fp, c
+@@ -1778,8 +2108,22 @@ fillbuf (struct buffer *buf, FILE *fp, c
else
{
if (key->skipsblanks)
line->keybeg = line_start;
}
}
-@@ -1892,7 +2236,7 @@ human_numcompare (char const *a, char co
+@@ -1900,7 +2244,7 @@ human_numcompare (char const *a, char co
hideously fast. */
static int
{
while (blanks[to_uchar (*a)])
a++;
-@@ -1902,6 +2246,25 @@ numcompare (char const *a, char const *b
+@@ -1910,6 +2254,25 @@ numcompare (char const *a, char const *b
return strnumcmp (a, b, decimal_point, thousands_sep);
}
static int
general_numcompare (char const *sa, char const *sb)
{
-@@ -1934,7 +2297,7 @@ general_numcompare (char const *sa, char
+@@ -1942,7 +2305,7 @@ general_numcompare (char const *sa, char
Return 0 if the name in S is not recognized. */
static int
{
size_t lo = 0;
size_t hi = MONTHS_PER_YEAR;
-@@ -2209,15 +2572,14 @@ debug_key (struct line const *line, stru
+@@ -2217,15 +2580,14 @@ debug_key (struct line const *line, stru
char saved = *lim;
*lim = '\0';
else if (key->general_numeric)
ignore_value (strtold (beg, &tighter_lim));
else if (key->numeric || key->human_numeric)
-@@ -2361,7 +2723,7 @@ key_warnings (struct keyfield const *gke
+@@ -2369,7 +2731,7 @@ key_warnings (struct keyfield const *gke
bool maybe_space_aligned = !hard_LC_COLLATE && default_key_compare (key)
&& !(key->schar || key->echar);
bool line_offset = key->eword == 0 && key->echar != 0; /* -k1.x,1.y */
&& ((!key->skipsblanks && !(implicit_skip || maybe_space_aligned))
|| (!key->skipsblanks && key->schar)
|| (!key->skipeblanks && key->echar)))
-@@ -2419,11 +2781,83 @@ key_warnings (struct keyfield const *gke
+@@ -2427,11 +2789,83 @@ key_warnings (struct keyfield const *gke
error (0, 0, _("option `-r' only applies to last-resort comparison"));
}
{
struct keyfield *key = keylist;
-@@ -2508,7 +2942,7 @@ keycompare (struct line const *a, struct
+@@ -2516,7 +2950,7 @@ keycompare (struct line const *a, struct
else if (key->human_numeric)
diff = human_numcompare (ta, tb);
else if (key->month)
else if (key->random)
diff = compare_random (ta, tlena, tb, tlenb);
else if (key->version)
-@@ -2624,6 +3058,179 @@ keycompare (struct line const *a, struct
+@@ -2632,6 +3066,180 @@ keycompare (struct line const *a, struct
return key->reverse ? -diff : diff;
}
+ if (MBLENGTH == (size_t)-2 || MBLENGTH == (size_t)-1) \
+ STATE = state_bak; \
+ if (!ignore) \
-+ COPY[NEW_LEN++] = TEXT[i++]; \
++ COPY[NEW_LEN++] = TEXT[i]; \
++ i++; \
+ continue; \
+ } \
+ \
/* Compare two lines A and B, returning negative, zero, or positive
depending on whether A compares less than, equal to, or greater than B. */
-@@ -4087,7 +4694,7 @@ main (int argc, char **argv)
+@@ -4095,7 +4702,7 @@ main (int argc, char **argv)
initialize_exit_failure (SORT_FAILURE);
hard_LC_COLLATE = hard_locale (LC_COLLATE);
hard_LC_TIME = hard_locale (LC_TIME);
#endif
-@@ -4108,6 +4715,29 @@ main (int argc, char **argv)
+@@ -4116,6 +4723,29 @@ main (int argc, char **argv)
thousands_sep = -1;
}
have_read_stdin = false;
inittables ();
-@@ -4378,13 +5008,34 @@ main (int argc, char **argv)
+@@ -4386,13 +5016,34 @@ main (int argc, char **argv)
case 't':
{
else
{
/* Provoke with `sort -txx'. Complain about
-@@ -4395,9 +5046,12 @@ main (int argc, char **argv)
+@@ -4403,9 +5054,12 @@ main (int argc, char **argv)
quote (optarg));
}
}
}
break;
-diff -urNp coreutils-8.10-orig/src/unexpand.c coreutils-8.10/src/unexpand.c
---- coreutils-8.10-orig/src/unexpand.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/unexpand.c 2011-02-04 20:13:24.015458014 +0100
+diff -urNp coreutils-8.13-orig/src/unexpand.c coreutils-8.13/src/unexpand.c
+--- coreutils-8.13-orig/src/unexpand.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/unexpand.c 2011-09-09 10:23:14.185647633 +0200
@@ -39,12 +39,29 @@
#include <stdio.h>
#include <getopt.h>
if (have_read_stdin && fclose (stdin) != 0)
error (EXIT_FAILURE, errno, "-");
-diff -urNp coreutils-8.10-orig/src/uniq.c coreutils-8.10/src/uniq.c
---- coreutils-8.10-orig/src/uniq.c 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/src/uniq.c 2011-02-04 20:13:24.018457349 +0100
+diff -urNp coreutils-8.13-orig/src/uniq.c coreutils-8.13/src/uniq.c
+--- coreutils-8.13-orig/src/uniq.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/uniq.c 2011-09-09 10:24:19.631560964 +0200
@@ -21,6 +21,16 @@
#include <getopt.h>
#include <sys/types.h>
@@ -207,7 +233,7 @@ size_opt (char const *opt, char const *m
return a pointer to the beginning of the line's field to be compared. */
- static char *
+ static char * _GL_ATTRIBUTE_PURE
-find_field (struct linebuffer const *line)
+find_field_uni (struct linebuffer *line)
{
match = !different (thisfield, prevfield, thislen, prevlen);
match_count += match;
-@@ -383,6 +612,9 @@ check_file (const char *infile, const ch
+@@ -383,6 +611,9 @@ check_file (const char *infile, const ch
SWAP_LINES (prevline, thisline);
prevfield = thisfield;
prevlen = thislen;
if (!match)
match_count = 0;
}
-@@ -428,6 +660,19 @@ main (int argc, char **argv)
+@@ -428,6 +659,19 @@ main (int argc, char **argv)
atexit (close_stdout);
skip_chars = 0;
skip_fields = 0;
check_chars = SIZE_MAX;
-diff -urNp coreutils-8.10-orig/tests/Makefile.am coreutils-8.10/tests/Makefile.am
---- coreutils-8.10-orig/tests/Makefile.am 2011-02-04 20:12:58.236173903 +0100
-+++ coreutils-8.10/tests/Makefile.am 2011-02-04 20:13:24.020456905 +0100
-@@ -235,6 +235,7 @@ TESTS = \
+diff -urNp coreutils-8.13-orig/tests/Makefile.am coreutils-8.13/tests/Makefile.am
+--- coreutils-8.13-orig/tests/Makefile.am 2011-09-09 10:22:43.352561668 +0200
++++ coreutils-8.13/tests/Makefile.am 2011-09-09 10:23:14.189688942 +0200
+@@ -238,6 +238,7 @@ TESTS = \
misc/sort-debug-keys \
misc/sort-debug-warn \
misc/sort-files0-from \
misc/sort-float \
misc/sort-merge \
misc/sort-merge-fdlimit \
-@@ -505,6 +506,10 @@ TESTS = \
+@@ -518,6 +519,10 @@ TESTS = \
$(root_tests)
pr_data = \
pr/0F \
pr/0FF \
pr/0FFnt \
-diff -urNp coreutils-8.10-orig/tests/misc/cut coreutils-8.10/tests/misc/cut
---- coreutils-8.10-orig/tests/misc/cut 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.10/tests/misc/cut 2011-02-04 20:13:24.021456684 +0100
-@@ -26,7 +26,7 @@ use strict;
+diff -urNp coreutils-8.13-orig/tests/misc/cut coreutils-8.13/tests/misc/cut
+--- coreutils-8.13-orig/tests/misc/cut 2011-09-02 14:08:40.000000000 +0200
++++ coreutils-8.13/tests/misc/cut 2011-09-09 10:23:14.190686793 +0200
+@@ -23,14 +23,15 @@ my $mb_locale = $ENV{LOCALE_FR_UTF8};
+ # Turn off localization of executable's output.
+ @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+-my $mb_locale = $ENV{LOCALE_FR_UTF8};
+-! defined $mb_locale || $mb_locale eq 'none'
+- and $mb_locale = 'C';
++#my $mb_locale = $ENV{LOCALE_FR_UTF8};
++#! defined $mb_locale || $mb_locale eq 'none'
++# and $mb_locale = 'C';
++my $mb_locale = 'C';
+
my $prog = 'cut';
my $try = "Try \`$prog --help' for more information.\n";
my $from_1 = "$prog: fields and positions are numbered from 1\n$try";
my $no_endpoint = "$prog: invalid range with no endpoint: -\n$try";
my @Tests =
-@@ -143,7 +143,7 @@ my @Tests =
+@@ -147,7 +147,7 @@ my @Tests =
# None of the following invalid ranges provoked an error up to coreutils-6.9.
['inval1', qw(-f 2-0), {IN=>''}, {OUT=>''}, {EXIT=>1},
['inval2', qw(-f -), {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
['inval3', '-f', '4,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
['inval4', '-f', '1-2,-', {IN=>''}, {OUT=>''}, {EXIT=>1},
-diff -urNp coreutils-8.10-orig/tests/misc/mb1.I coreutils-8.10/tests/misc/mb1.I
---- coreutils-8.10-orig/tests/misc/mb1.I 1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.10/tests/misc/mb1.I 2011-02-04 20:13:24.022456462 +0100
+diff -urNp coreutils-8.13-orig/tests/misc/mb1.I coreutils-8.13/tests/misc/mb1.I
+--- coreutils-8.13-orig/tests/misc/mb1.I 1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.13/tests/misc/mb1.I 2011-09-09 10:23:14.191687037 +0200
@@ -0,0 +1,4 @@
+Appleï¼ 10
+Bananaï¼ 5
+Citrusï¼ 20
+Cherryï¼ 30
-diff -urNp coreutils-8.10-orig/tests/misc/mb1.X coreutils-8.10/tests/misc/mb1.X
---- coreutils-8.10-orig/tests/misc/mb1.X 1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.10/tests/misc/mb1.X 2011-02-04 20:13:24.023456240 +0100
+diff -urNp coreutils-8.13-orig/tests/misc/mb1.X coreutils-8.13/tests/misc/mb1.X
+--- coreutils-8.13-orig/tests/misc/mb1.X 1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.13/tests/misc/mb1.X 2011-09-09 10:23:14.192581910 +0200
@@ -0,0 +1,4 @@
+Bananaï¼ 5
+Appleï¼ 10
+Citrusï¼ 20
+Cherryï¼ 30
-diff -urNp coreutils-8.10-orig/tests/misc/mb2.I coreutils-8.10/tests/misc/mb2.I
---- coreutils-8.10-orig/tests/misc/mb2.I 1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.10/tests/misc/mb2.I 2011-02-04 20:13:24.024456019 +0100
+diff -urNp coreutils-8.13-orig/tests/misc/mb2.I coreutils-8.13/tests/misc/mb2.I
+--- coreutils-8.13-orig/tests/misc/mb2.I 1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.13/tests/misc/mb2.I 2011-09-09 10:23:14.192581910 +0200
@@ -0,0 +1,4 @@
+Appleï¼ ï¼¡ï¼¡10ï¼ ï¼ 20
+Bananaï¼ ï¼¡ï¼¡5ï¼ ï¼ 30
+Citrusï¼ ï¼¡ï¼¡20ï¼ ï¼ 5
+Cherryï¼ ï¼¡ï¼¡30ï¼ ï¼ 10
-diff -urNp coreutils-8.10-orig/tests/misc/mb2.X coreutils-8.10/tests/misc/mb2.X
---- coreutils-8.10-orig/tests/misc/mb2.X 1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.10/tests/misc/mb2.X 2011-02-04 20:13:24.024456019 +0100
+diff -urNp coreutils-8.13-orig/tests/misc/mb2.X coreutils-8.13/tests/misc/mb2.X
+--- coreutils-8.13-orig/tests/misc/mb2.X 1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.13/tests/misc/mb2.X 2011-09-09 10:23:14.193687456 +0200
@@ -0,0 +1,4 @@
+Citrusï¼ ï¼¡ï¼¡20ï¼ ï¼ 5
+Cherryï¼ ï¼¡ï¼¡30ï¼ ï¼ 10
+Appleï¼ ï¼¡ï¼¡10ï¼ ï¼ 20
+Bananaï¼ ï¼¡ï¼¡5ï¼ ï¼ 30
-diff -urNp coreutils-8.10-orig/tests/misc/sort-mb-tests coreutils-8.10/tests/misc/sort-mb-tests
---- coreutils-8.10-orig/tests/misc/sort-mb-tests 1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.10/tests/misc/sort-mb-tests 2011-02-04 20:13:24.025455797 +0100
+diff -urNp coreutils-8.13-orig/tests/misc/sort-mb-tests coreutils-8.13/tests/misc/sort-mb-tests
+--- coreutils-8.13-orig/tests/misc/sort-mb-tests 1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.13/tests/misc/sort-mb-tests 2011-09-09 10:23:14.194687565 +0200
@@ -0,0 +1,58 @@
+#! /bin/sh
+case $# in
+$xx -t ï¼ -k2 -n misc/mb1.I > misc/mb1.O
+code=$?
+if test $code != 0; then
-+ $echo "Test mb1 failed: $xx return code $code differs from expected value 0" 1>&2
++ $echo "Test mb1 failed: $xx return code $code differs from expected value 0"
+ errors=`expr $errors + 1`
+else
+ cmp misc/mb1.O $srcdir/misc/mb1.X > /dev/null 2>&1
-diff -urNp coreutils-8.11-orig/configure.ac coreutils-8.11/configure.ac
---- coreutils-8.11-orig/configure.ac 2011-04-14 11:05:27.511308852 +0200
-+++ coreutils-8.11/configure.ac 2011-04-14 11:06:05.481433832 +0200
-@@ -132,6 +132,13 @@ if test "$gl_gcc_warnings" = yes; then
+diff -urNp coreutils-8.13-orig/configure.ac coreutils-8.13/configure.ac
+--- coreutils-8.13-orig/configure.ac 2011-09-09 10:29:52.584690353 +0200
++++ coreutils-8.13/configure.ac 2011-09-09 10:30:39.524564991 +0200
+@@ -141,6 +141,13 @@ if test "$gl_gcc_warnings" = yes; then
AC_SUBST([GNULIB_TEST_WARN_CFLAGS])
fi
AC_FUNC_FORK
AC_ARG_ENABLE(pam, AS_HELP_STRING([--disable-pam],
-diff -urNp coreutils-8.11-orig/man/chcon.x coreutils-8.11/man/chcon.x
---- coreutils-8.11-orig/man/chcon.x 2009-09-01 13:01:16.000000000 +0200
-+++ coreutils-8.11/man/chcon.x 2011-04-14 11:06:05.482433878 +0200
+diff -urNp coreutils-8.13-orig/man/chcon.x coreutils-8.13/man/chcon.x
+--- coreutils-8.13-orig/man/chcon.x 2009-09-01 13:01:16.000000000 +0200
++++ coreutils-8.13/man/chcon.x 2011-09-09 10:30:39.524564991 +0200
@@ -1,4 +1,4 @@
[NAME]
-chcon \- change file security context
+chcon \- change file SELinux security context
[DESCRIPTION]
.\" Add any additional description here
-diff -urNp coreutils-8.11-orig/man/runcon.x coreutils-8.11/man/runcon.x
---- coreutils-8.11-orig/man/runcon.x 2009-09-01 13:01:16.000000000 +0200
-+++ coreutils-8.11/man/runcon.x 2011-04-14 11:06:05.483445779 +0200
+diff -urNp coreutils-8.13-orig/man/runcon.x coreutils-8.13/man/runcon.x
+--- coreutils-8.13-orig/man/runcon.x 2009-09-01 13:01:16.000000000 +0200
++++ coreutils-8.13/man/runcon.x 2011-09-09 10:30:39.544686472 +0200
@@ -1,5 +1,5 @@
[NAME]
-runcon \- run command with specified security context
[DESCRIPTION]
Run COMMAND with completely-specified CONTEXT, or with current or
transitioned security context modified by one or more of LEVEL,
-diff -urNp coreutils-8.11-orig/src/chcon.c coreutils-8.11/src/chcon.c
---- coreutils-8.11-orig/src/chcon.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/chcon.c 2011-04-14 11:06:05.489434075 +0200
+diff -urNp coreutils-8.13-orig/src/chcon.c coreutils-8.13/src/chcon.c
+--- coreutils-8.13-orig/src/chcon.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/chcon.c 2011-09-09 10:30:39.562561252 +0200
@@ -356,7 +356,7 @@ Usage: %s [OPTION]... CONTEXT FILE...\n\
"),
program_name, program_name, program_name);
With --reference, change the security context of each FILE to that of RFILE.\n\
\n\
-h, --no-dereference affect symbolic links instead of any referenced file\n\
-diff -urNp coreutils-8.11-orig/src/copy.c coreutils-8.11/src/copy.c
---- coreutils-8.11-orig/src/copy.c 2011-04-12 12:07:43.000000000 +0200
-+++ coreutils-8.11/src/copy.c 2011-04-14 11:06:05.485433752 +0200
-@@ -2179,6 +2179,8 @@ copy_internal (char const *src_name, cha
+diff -urNp coreutils-8.13-orig/src/copy.c coreutils-8.13/src/copy.c
+--- coreutils-8.13-orig/src/copy.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/copy.c 2011-09-09 10:30:39.564562214 +0200
+@@ -2244,6 +2244,8 @@ copy_internal (char const *src_name, cha
{
/* Here, we are crossing a file system boundary and cp's -x option
is in effect: so don't copy the contents of this directory. */
}
else
{
-diff -urNp coreutils-8.11-orig/src/copy.h coreutils-8.11/src/copy.h
---- coreutils-8.11-orig/src/copy.h 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/copy.h 2011-04-14 11:06:05.487340225 +0200
+diff -urNp coreutils-8.13-orig/src/copy.h coreutils-8.13/src/copy.h
+--- coreutils-8.13-orig/src/copy.h 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/copy.h 2011-09-09 10:30:39.565563712 +0200
@@ -158,6 +158,9 @@ struct cp_options
bool preserve_mode;
bool preserve_timestamps;
/* Enabled for mv, and for cp by the --preserve=links option.
If true, attempt to preserve in the destination files any
logical hard links between the source files. If used with cp's
-diff -urNp coreutils-8.11-orig/src/cp.c coreutils-8.11/src/cp.c
---- coreutils-8.11-orig/src/cp.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/cp.c 2011-04-14 11:06:05.488433894 +0200
+diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
+--- coreutils-8.13-orig/src/cp.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/cp.c 2011-09-09 10:30:39.566562062 +0200
@@ -141,6 +141,7 @@ static struct option const long_opts[] =
{"target-directory", required_argument, NULL, 't'},
{"update", no_argument, NULL, 'u'},
case 'S':
make_backups = true;
backup_suffix_string = optarg;
-diff -urNp coreutils-8.11-orig/src/id.c coreutils-8.11/src/id.c
---- coreutils-8.11-orig/src/id.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/id.c 2011-04-14 11:06:05.490435340 +0200
+diff -urNp coreutils-8.13-orig/src/id.c coreutils-8.13/src/id.c
+--- coreutils-8.13-orig/src/id.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/id.c 2011-09-09 10:30:39.567562153 +0200
@@ -107,7 +107,7 @@ int
main (int argc, char **argv)
{
/* If true, output the list of all group IDs. -G */
bool just_group_list = false;
-diff -urNp coreutils-8.11-orig/src/install.c coreutils-8.11/src/install.c
---- coreutils-8.11-orig/src/install.c 2011-04-12 12:07:43.000000000 +0200
-+++ coreutils-8.11/src/install.c 2011-04-14 11:07:58.333433706 +0200
+diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
+--- coreutils-8.13-orig/src/install.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/install.c 2011-09-09 10:30:39.569562422 +0200
@@ -261,6 +261,7 @@ cp_option_init (struct cp_options *x)
x->data_copy_required = true;
x->require_preserve = false;
use_default_selinux_context = false;
break;
case_GETOPT_HELP_CHAR;
-diff -urNp coreutils-8.11-orig/src/ls.c coreutils-8.11/src/ls.c
---- coreutils-8.11-orig/src/ls.c 2011-04-12 12:07:43.000000000 +0200
-+++ coreutils-8.11/src/ls.c 2011-04-14 11:06:05.498436329 +0200
-@@ -159,7 +159,8 @@ enum filetype
+diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
+--- coreutils-8.13-orig/src/ls.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/ls.c 2011-09-09 10:30:39.575562845 +0200
+@@ -166,7 +166,8 @@ enum filetype
symbolic_link,
sock,
whiteout,
};
/* Display letters and indicators for each filetype.
-@@ -276,6 +277,7 @@ static void queue_directory (char const
+@@ -283,6 +284,7 @@ static void queue_directory (char const
static void sort_files (void);
static void parse_ls_color (void);
void usage (int status);
/* Initial size of hash table.
Most hierarchies are likely to be shallower than this. */
-@@ -345,7 +347,7 @@ static struct pending *pending_dirs;
+@@ -352,7 +354,7 @@ static struct pending *pending_dirs;
static struct timespec current_time;
static char UNKNOWN_SECURITY_CONTEXT[] = "?";
/* Whether any of the files has an ACL. This affects the width of the
-@@ -385,7 +387,9 @@ enum format
+@@ -392,7 +394,9 @@ enum format
one_per_line, /* -1 */
many_per_line, /* -C */
horizontal, /* -x */
};
static enum format format;
-@@ -787,6 +791,9 @@ enum
+@@ -794,6 +798,9 @@ enum
SHOW_CONTROL_CHARS_OPTION,
SI_OPTION,
SORT_OPTION,
TIME_OPTION,
TIME_STYLE_OPTION
};
-@@ -832,7 +839,9 @@ static struct option const long_options[
+@@ -839,7 +846,9 @@ static struct option const long_options[
{"time-style", required_argument, NULL, TIME_STYLE_OPTION},
{"color", optional_argument, NULL, COLOR_OPTION},
{"block-size", required_argument, NULL, BLOCK_SIZE_OPTION},
{"author", no_argument, NULL, AUTHOR_OPTION},
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
-@@ -842,12 +851,12 @@ static struct option const long_options[
+@@ -849,12 +858,12 @@ static struct option const long_options[
static char const *const format_args[] =
{
"verbose", "long", "commas", "horizontal", "across",
};
ARGMATCH_VERIFY (format_args, format_types);
-@@ -1289,7 +1298,8 @@ main (int argc, char **argv)
+@@ -1296,7 +1305,8 @@ main (int argc, char **argv)
/* Avoid following symbolic links when possible. */
if (is_colored (C_ORPHAN)
|| (is_colored (C_EXEC) && color_symlink_as_referent)
check_symlink_color = true;
/* If the standard output is a controlling terminal, watch out
-@@ -1336,7 +1346,7 @@ main (int argc, char **argv)
+@@ -1343,7 +1353,7 @@ main (int argc, char **argv)
if (dereference == DEREF_UNDEFINED)
dereference = ((immediate_dirs
|| indicator_style == classify
? DEREF_NEVER
: DEREF_COMMAND_LINE_SYMLINK_TO_DIR);
-@@ -1356,7 +1366,7 @@ main (int argc, char **argv)
+@@ -1363,7 +1373,7 @@ main (int argc, char **argv)
format_needs_stat = sort_type == sort_time || sort_type == sort_size
|| format == long_format
|| print_block_size;
format_needs_type = (! format_needs_stat
&& (recursive
-@@ -1387,7 +1397,7 @@ main (int argc, char **argv)
+@@ -1394,7 +1404,7 @@ main (int argc, char **argv)
}
else
do
while (i < argc);
if (cwd_n_used)
-@@ -1558,7 +1568,7 @@ decode_switches (int argc, char **argv)
+@@ -1565,7 +1575,7 @@ decode_switches (int argc, char **argv)
ignore_mode = IGNORE_DEFAULT;
ignore_patterns = NULL;
hide_patterns = NULL;
/* FIXME: put this in a function. */
{
-@@ -1940,13 +1950,27 @@ decode_switches (int argc, char **argv)
+@@ -1947,13 +1957,27 @@ decode_switches (int argc, char **argv)
break;
case 'Z':
default:
usage (LS_FAILURE);
}
-@@ -2691,8 +2715,10 @@ clear_files (void)
+@@ -2714,8 +2738,10 @@ clear_files (void)
struct fileinfo *f = sorted_file[i];
free (f->name);
free (f->linkname);
}
cwd_n_used = 0;
-@@ -2734,6 +2760,7 @@ gobble_file (char const *name, enum file
+@@ -2757,6 +2783,7 @@ gobble_file (char const *name, enum file
memset (f, '\0', sizeof *f);
f->stat.st_ino = inode;
f->filetype = type;
if (command_line_arg
|| format_needs_stat
-@@ -2843,7 +2870,7 @@ gobble_file (char const *name, enum file
+@@ -2869,7 +2896,7 @@ gobble_file (char const *name, enum file
&& print_with_color && is_colored (C_CAP))
f->has_capability = has_capability (absolute_name);
{
bool have_selinux = false;
bool have_acl = false;
-@@ -2866,7 +2893,7 @@ gobble_file (char const *name, enum file
+@@ -2892,7 +2919,7 @@ gobble_file (char const *name, enum file
err = 0;
}
{
int n = file_has_acl (absolute_name, &f->stat);
err = (n < 0);
-@@ -2885,7 +2912,8 @@ gobble_file (char const *name, enum file
+@@ -2911,7 +2938,8 @@ gobble_file (char const *name, enum file
}
if (S_ISLNK (f->stat.st_mode)
{
char *linkname;
struct stat linkstats;
-@@ -2905,6 +2933,7 @@ gobble_file (char const *name, enum file
+@@ -2931,6 +2959,7 @@ gobble_file (char const *name, enum file
command line are automatically traced if not being
listed as files. */
if (!command_line_arg || format == long_format
|| !S_ISDIR (linkstats.st_mode))
{
/* Get the linked-to file's mode for the filetype indicator
-@@ -2944,7 +2973,7 @@ gobble_file (char const *name, enum file
+@@ -2970,7 +2999,7 @@ gobble_file (char const *name, enum file
block_size_width = len;
}
{
if (print_owner)
{
-@@ -3445,6 +3474,13 @@ print_current_files (void)
+@@ -3471,6 +3500,13 @@ print_current_files (void)
print_long_format (sorted_file[i]);
DIRED_PUTCHAR ('\n');
}
break;
}
}
-@@ -3607,6 +3643,67 @@ format_inode (char *buf, size_t buflen,
+@@ -3633,6 +3669,67 @@ format_inode (char *buf, size_t buflen,
: (char *) "?");
}
/* Print information about F in long format. */
static void
print_long_format (const struct fileinfo *f)
-@@ -3698,9 +3795,15 @@ print_long_format (const struct fileinfo
+@@ -3724,9 +3821,15 @@ print_long_format (const struct fileinfo
The latter is wrong when nlink_width is zero. */
p += strlen (p);
{
DIRED_FPUTS (buf, stdout, p - buf);
-@@ -3713,9 +3816,6 @@ print_long_format (const struct fileinfo
+@@ -3739,9 +3842,6 @@ print_long_format (const struct fileinfo
if (print_author)
format_user (f->stat.st_author, author_width, f->stat_ok);
p = buf;
}
-@@ -4060,9 +4160,6 @@ print_file_name_and_frills (const struct
+@@ -4086,9 +4186,6 @@ print_file_name_and_frills (const struct
: human_readable (ST_NBLOCKS (f->stat), buf, human_output_opts,
ST_NBLOCKSIZE, output_block_size));
size_t width = print_name_with_quoting (f, false, NULL, start_col);
if (indicator_style != none)
-@@ -4266,9 +4363,6 @@ length_of_file_name_and_frills (const st
+@@ -4292,9 +4389,6 @@ length_of_file_name_and_frills (const st
output_block_size))
: block_size_width);
quote_name (NULL, f->name, filename_quoting_options, &name_width);
len += name_width;
-@@ -4707,9 +4801,16 @@ Mandatory arguments to long options are
+@@ -4733,9 +4827,16 @@ Mandatory arguments to long options are
-w, --width=COLS assume screen width instead of current value\n\
-x list entries by lines instead of by columns\n\
-X sort alphabetically by entry extension\n\
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
emit_size_note ();
-diff -urNp coreutils-8.11-orig/src/mkdir.c coreutils-8.11/src/mkdir.c
---- coreutils-8.11-orig/src/mkdir.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/mkdir.c 2011-04-14 11:06:05.499460276 +0200
+diff -urNp coreutils-8.13-orig/src/mkdir.c coreutils-8.13/src/mkdir.c
+--- coreutils-8.13-orig/src/mkdir.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/mkdir.c 2011-09-09 10:30:39.576564256 +0200
@@ -38,6 +38,7 @@
static struct option const longopts[] =
{
{"mode", required_argument, NULL, 'm'},
{"parents", no_argument, NULL, 'p'},
{"verbose", no_argument, NULL, 'v'},
-diff -urNp coreutils-8.11-orig/src/mknod.c coreutils-8.11/src/mknod.c
---- coreutils-8.11-orig/src/mknod.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/mknod.c 2011-04-14 11:06:05.500309648 +0200
+diff -urNp coreutils-8.13-orig/src/mknod.c coreutils-8.13/src/mknod.c
+--- coreutils-8.13-orig/src/mknod.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/mknod.c 2011-09-09 10:30:39.577563177 +0200
@@ -35,7 +35,7 @@
static struct option const longopts[] =
{"mode", required_argument, NULL, 'm'},
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
-diff -urNp coreutils-8.11-orig/src/mv.c coreutils-8.11/src/mv.c
---- coreutils-8.11-orig/src/mv.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/mv.c 2011-04-14 11:06:05.501309664 +0200
+diff -urNp coreutils-8.13-orig/src/mv.c coreutils-8.13/src/mv.c
+--- coreutils-8.13-orig/src/mv.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/mv.c 2011-09-09 10:30:39.578562234 +0200
@@ -118,6 +118,7 @@ cp_option_init (struct cp_options *x)
x->preserve_mode = true;
x->preserve_timestamps = true;
x->reduce_diagnostics = false;
x->data_copy_required = true;
x->require_preserve = false; /* FIXME: maybe make this an option */
-diff -urNp coreutils-8.11-orig/src/runcon.c coreutils-8.11/src/runcon.c
---- coreutils-8.11-orig/src/runcon.c 2011-02-19 18:17:03.000000000 +0100
-+++ coreutils-8.11/src/runcon.c 2011-04-14 11:06:05.502310854 +0200
+diff -urNp coreutils-8.13-orig/src/runcon.c coreutils-8.13/src/runcon.c
+--- coreutils-8.13-orig/src/runcon.c 2011-07-28 12:38:27.000000000 +0200
++++ coreutils-8.13/src/runcon.c 2011-09-09 10:30:39.579564283 +0200
@@ -86,7 +86,7 @@ Usage: %s CONTEXT COMMAND [args]\n\
or: %s [ -c ] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n\
"), program_name, program_name);
With neither CONTEXT nor COMMAND, print the current security context.\n\
\n\
CONTEXT Complete security context\n\
-diff -urNp coreutils-8.11-orig/tests/init.cfg coreutils-8.11/tests/init.cfg
---- coreutils-8.11-orig/tests/init.cfg 2011-04-12 12:07:43.000000000 +0200
-+++ coreutils-8.11/tests/init.cfg 2011-04-14 11:06:05.503308646 +0200
-@@ -231,8 +231,8 @@ require_selinux_()
+diff -urNp coreutils-8.13-orig/tests/init.cfg coreutils-8.13/tests/init.cfg
+--- coreutils-8.13-orig/tests/init.cfg 2011-09-07 18:00:55.000000000 +0200
++++ coreutils-8.13/tests/init.cfg 2011-09-09 10:32:17.031688699 +0200
+@@ -253,8 +253,8 @@ require_selinux_()
# Independent of whether SELinux is enabled system-wide,
# the current file system may lack SELinux support.
- '? .'|'unlabeled .')
+ case `ls -Zd . | cut -f4 -d" "` in
+ '?'|'unlabeled')
- skip_test_ "this system (or maybe just" \
+ skip_ "this system (or maybe just" \
"the current file system) lacks SELinux support"
;;
-diff -urNp coreutils-8.11-orig/tests/misc/selinux coreutils-8.11/tests/misc/selinux
---- coreutils-8.11-orig/tests/misc/selinux 2011-01-31 13:40:38.000000000 +0100
-+++ coreutils-8.11/tests/misc/selinux 2011-04-14 11:06:05.504353757 +0200
+diff -urNp coreutils-8.13-orig/tests/misc/selinux coreutils-8.13/tests/misc/selinux
+--- coreutils-8.13-orig/tests/misc/selinux 2011-08-08 09:42:16.000000000 +0200
++++ coreutils-8.13/tests/misc/selinux 2011-09-09 10:30:39.586563144 +0200
@@ -37,7 +37,7 @@ chcon $ctx f d p ||
# inspect that context with both ls -Z and stat.