]> git.pld-linux.org Git - packages/coreutils.git/commitdiff
- updated to 6.9
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Mar 2007 15:01:28 +0000 (15:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    coreutils-fmt-wchars.patch -> 1.3

coreutils-fmt-wchars.patch

index 5636a55d3f59ae0dad4ee505d875f990c8aa592f..d67aafc4eb381c9665e6aa27a6706e6b2e8d80af 100644 (file)
        c = get_prefix (f);
      }
  
-@@ -601,23 +638,23 @@
+@@ -601,26 +638,26 @@
     that failed to match the prefix.  In the latter, C is \n or EOF.
     Return the character (\n or EOF) ending the line.  */
  
 +  const wchar_t *s;
  
    out_column = 0;
--  if (in_column > next_prefix_indent && c != '\n' && c != EOF)
-+  if (in_column > next_prefix_indent && c != L'\n' && c != WEOF)
+-  if (in_column > next_prefix_indent || (c != '\n' && c != EOF))
++  if (in_column > next_prefix_indent || (c != L'\n' && c != WEOF))
      {
        put_space (next_prefix_indent);
        for (s = prefix; out_column != in_column && *s; out_column++)
 -      putchar (*s++);
+-      if (c != EOF && c != '\n')
 +      putwchar (*s++);
-       put_space (in_column - out_column);
++      if (c != WEOF && c != L'\n')
+       put_space (in_column - out_column);
+-      if (c == EOF && in_column >= next_prefix_indent + prefix_length)
+-      putchar ('\n');
++      if (c == WEOF && in_column >= next_prefix_indent + prefix_length)
++      putwchar (L'\n');
      }
 -  while (c != '\n' && c != EOF)
 +  while (c != L'\n' && c != WEOF)
        check_punctuation (word_limit);
  
        /* Scan inter-word space.  */
-@@ -677,48 +717,48 @@
+@@ -677,46 +717,46 @@
        start = in_column;
        c = get_space (f, c);
        word_limit->space = in_column - start;
          flush_paragraph ();
        }
        word_limit++;
--      if (c == EOF)
--      return EOF;
-+      if (c == WEOF)
-+      return WEOF;
      }
--  while (c != '\n');
-+  while (c != L'\n');
+-  while (c != '\n' && c != EOF);
++  while (c != L'\n' && c != WEOF);
    return get_prefix (f);
  }
  
This page took 0.222386 seconds and 4 git commands to generate.