|
Karsten Hopp |
07a4c1 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
07a4c1 |
Subject: Patch 7.2.367
|
|
Karsten Hopp |
07a4c1 |
Fcc: outbox
|
|
Karsten Hopp |
07a4c1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
07a4c1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
07a4c1 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
07a4c1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
07a4c1 |
------------
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
Patch 7.2.367
|
|
Karsten Hopp |
07a4c1 |
Problem: "xxd -r -p" doesn't work as documented.
|
|
Karsten Hopp |
07a4c1 |
Solution: Skip white space. (James Vega)
|
|
Karsten Hopp |
07a4c1 |
Files: src/xxd/xxd.c
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
*** ../vim-7.2.366/src/xxd/xxd.c 2009-06-16 18:29:37.000000000 +0200
|
|
Karsten Hopp |
07a4c1 |
--- src/xxd/xxd.c 2010-02-17 18:25:11.000000000 +0100
|
|
Karsten Hopp |
07a4c1 |
***************
|
|
Karsten Hopp |
07a4c1 |
*** 231,237 ****
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " or\n %s -r [-s [-]offset] [-c cols] [-ps] [infile [outfile]]\n", pname);
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, "Options:\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -a toggle autoskip: A single '*' replaces nul-lines. Default off.\n");
|
|
Karsten Hopp |
07a4c1 |
! fprintf(stderr, " -b binary digit dump (incompatible with -p,-i,-r). Default hex.\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -c cols format <cols> octets per line. Default 16 (-i: 12, -ps: 30).\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -E show characters in EBCDIC. Default ASCII.\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -g number of octets per group in normal output. Default 2.\n");
|
|
Karsten Hopp |
07a4c1 |
--- 231,237 ----
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " or\n %s -r [-s [-]offset] [-c cols] [-ps] [infile [outfile]]\n", pname);
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, "Options:\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -a toggle autoskip: A single '*' replaces nul-lines. Default off.\n");
|
|
Karsten Hopp |
07a4c1 |
! fprintf(stderr, " -b binary digit dump (incompatible with -ps,-i,-r). Default hex.\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -c cols format <cols> octets per line. Default 16 (-i: 12, -ps: 30).\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -E show characters in EBCDIC. Default ASCII.\n");
|
|
Karsten Hopp |
07a4c1 |
fprintf(stderr, " -g number of octets per group in normal output. Default 2.\n");
|
|
Karsten Hopp |
07a4c1 |
***************
|
|
Karsten Hopp |
07a4c1 |
*** 276,286 ****
|
|
Karsten Hopp |
07a4c1 |
if (c == '\r') /* Doze style input file? */
|
|
Karsten Hopp |
07a4c1 |
continue;
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
! #if 0 /* this doesn't work when there is normal text after the hex codes in
|
|
Karsten Hopp |
07a4c1 |
! the last line that looks like hex */
|
|
Karsten Hopp |
07a4c1 |
! if (c == ' ' || c == '\n' || c == '\t') /* allow multiple spaces */
|
|
Karsten Hopp |
07a4c1 |
continue;
|
|
Karsten Hopp |
07a4c1 |
- #endif
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
n3 = n2;
|
|
Karsten Hopp |
07a4c1 |
n2 = n1;
|
|
Karsten Hopp |
07a4c1 |
--- 276,286 ----
|
|
Karsten Hopp |
07a4c1 |
if (c == '\r') /* Doze style input file? */
|
|
Karsten Hopp |
07a4c1 |
continue;
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
! /* Allow multiple spaces. This doesn't work when there is normal text
|
|
Karsten Hopp |
07a4c1 |
! * after the hex codes in the last line that looks like hex, thus only
|
|
Karsten Hopp |
07a4c1 |
! * use it for PostScript format. */
|
|
Karsten Hopp |
07a4c1 |
! if (hextype == HEX_POSTSCRIPT && (c == ' ' || c == '\n' || c == '\t'))
|
|
Karsten Hopp |
07a4c1 |
continue;
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
n3 = n2;
|
|
Karsten Hopp |
07a4c1 |
n2 = n1;
|
|
Karsten Hopp |
07a4c1 |
*** ../vim-7.2.366/src/version.c 2010-02-17 18:20:23.000000000 +0100
|
|
Karsten Hopp |
07a4c1 |
--- src/version.c 2010-02-17 18:26:35.000000000 +0100
|
|
Karsten Hopp |
07a4c1 |
***************
|
|
Karsten Hopp |
07a4c1 |
*** 683,684 ****
|
|
Karsten Hopp |
07a4c1 |
--- 683,686 ----
|
|
Karsten Hopp |
07a4c1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
07a4c1 |
+ /**/
|
|
Karsten Hopp |
07a4c1 |
+ 367,
|
|
Karsten Hopp |
07a4c1 |
/**/
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
--
|
|
Karsten Hopp |
07a4c1 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
07a4c1 |
248. You sign your letters with your e-mail address instead of your name.
|
|
Karsten Hopp |
07a4c1 |
|
|
Karsten Hopp |
07a4c1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
07a4c1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
07a4c1 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
07a4c1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|