home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.140 < prev    next >
Encoding:
Internet Message Format  |  2002-07-20  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.140
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.140
  11. Problem:    Cygwin: ":args `ls *.c`" does not work if the shell command
  12.         produces CR NL line separators.
  13. Solution:   Remove the CR characters ourselfs. (Pavol Juhas)
  14. Files:        src/os_unix.c
  15.  
  16.  
  17. *** ../vim61.139/src/os_unix.c    Sat Jun  8 19:05:54 2002
  18. --- src/os_unix.c    Mon Jul 15 21:08:16 2002
  19. ***************
  20. *** 4567,4573 ****
  21.       /*
  22.        * read the names from the file into memory
  23.        */
  24. !     fd = fopen((char *)tempname, "r");
  25.       if (fd == NULL)
  26.       {
  27.       /* Something went wrong, perhaps a file name with a special char. */
  28. --- 4567,4573 ----
  29.       /*
  30.        * read the names from the file into memory
  31.        */
  32. !     fd = fopen((char *)tempname, READBIN);
  33.       if (fd == NULL)
  34.       {
  35.       /* Something went wrong, perhaps a file name with a special char. */
  36. ***************
  37. *** 4603,4608 ****
  38. --- 4603,4618 ----
  39.       return FAIL;
  40.       }
  41.       vim_free(tempname);
  42. + #if defined(__CYGWIN__) || defined(__CYGWIN32__)
  43. +     /* Translate <CR><NL> into <NL>.  Caution, buffer may contain NUL. */
  44. +     p = buffer;
  45. +     for (i = 0; i < len; ++i)
  46. +     if (!(buffer[i] == CR && buffer[i + 1] == NL))
  47. +         *p++ = buffer[i];
  48. +     len = p - buffer;
  49. + # endif
  50.   
  51.       /* file names are separated with Space */
  52.       if (shell_style == STYLE_ECHO)
  53. *** ../vim61.139/src/version.c    Sun Jul 21 21:29:47 2002
  54. --- src/version.c    Sun Jul 21 21:34:53 2002
  55. ***************
  56. *** 608,609 ****
  57. --- 608,611 ----
  58.   {   /* Add new patch number below this line */
  59. + /**/
  60. +     140,
  61.   /**/
  62.  
  63. -- 
  64. hundred-and-one symptoms of being an internet addict:
  65. 21. Your dog has its own home page.
  66.  
  67.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  68. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  69. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  70.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  71.