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.2.470 < prev    next >
Encoding:
Internet Message Format  |  2004-04-13  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.470
  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.2.470
  11. Problem:    The name returned by tempname() may be equal to the file used for
  12.         shell output when ignoring case.
  13. Solution:   Skip 'O' and 'I' in tempname().
  14. Files:        src/eval.c
  15.  
  16.  
  17. *** ../vim-6.2.469/src/eval.c    Wed Apr 14 11:08:53 2004
  18. --- src/eval.c    Wed Apr 14 11:56:43 2004
  19. ***************
  20. *** 7264,7283 ****
  21.   
  22.       retvar->var_type = VAR_STRING;
  23.       retvar->var_val.var_string = vim_tempname(x);
  24. !     /* advance 'x', so that there are at least 26 different names */
  25. !     if (x == 'Z')
  26. !     x = 'A';
  27. !     else
  28.       {
  29. ! #ifdef EBCDIC
  30. !     if (x == 'I')
  31. !         x = 'J';
  32. !     else if (x == 'R')
  33. !         x = 'S';
  34.       else
  35.   #endif
  36. !         ++x;
  37. !     }
  38.   }
  39.   
  40.   /*
  41. --- 7264,7290 ----
  42.   
  43.       retvar->var_type = VAR_STRING;
  44.       retvar->var_val.var_string = vim_tempname(x);
  45. !     /* Advance 'x' to use A-Z and 0-9, so that there are at least 34 different
  46. !      * names.  Skip 'I' and 'O', they are used for shell redirection. */
  47. !     do
  48.       {
  49. !     if (x == 'Z')
  50. !         x = '0';
  51. !     else if (x == '9')
  52. !         x = 'A';
  53.       else
  54. +     {
  55. + #ifdef EBCDIC
  56. +         if (x == 'I')
  57. +         x = 'J';
  58. +         else if (x == 'R')
  59. +         x = 'S';
  60. +         else
  61.   #endif
  62. !         ++x;
  63. !     }
  64. !     } while (x == 'I' || x == 'O');
  65.   }
  66.   
  67.   /*
  68. *** ../vim-6.2.469/src/version.c    Wed Apr 14 14:10:23 2004
  69. --- src/version.c    Wed Apr 14 21:41:07 2004
  70. ***************
  71. *** 639,640 ****
  72. --- 639,642 ----
  73.   {   /* Add new patch number below this line */
  74. + /**/
  75. +     470,
  76.   /**/
  77.  
  78. -- 
  79. Compilation process failed successfully.
  80.  
  81.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  82. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  83. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  84.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  85.