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.509 < prev    next >
Encoding:
Internet Message Format  |  2004-04-27  |  1.6 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.509
  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.509 (after 6.2.508)
  11. Problem:    Crash when $LANG is not set.
  12. Solution:   Add check for NULL pointer. (Ron Aaron)
  13. Files:        src/ex_cmds2.c
  14.  
  15.  
  16. *** ../vim-6.2.508/src/ex_cmds2.c    Tue Apr 27 22:27:24 2004
  17. --- src/ex_cmds2.c    Wed Apr 28 10:12:39 2004
  18. ***************
  19. *** 5510,5517 ****
  20.       if (p == NULL || *p == NUL)
  21.       {
  22.           p = mch_getenv((char_u *)"LANG");
  23. !         if (VIM_ISDIGIT(*p))    /* ignore something like "1043" */
  24. !         p = NULL;
  25.   # if defined(HAVE_LOCALE_H) || defined(X_LOCALE)
  26.           if (p == NULL || *p == NUL)
  27.           p = (char_u *)get_locale_val(LC_CTYPE);
  28. --- 5510,5517 ----
  29.       if (p == NULL || *p == NUL)
  30.       {
  31.           p = mch_getenv((char_u *)"LANG");
  32. !         if (p != NULL && VIM_ISDIGIT(*p))
  33. !         p = NULL;        /* ignore something like "1043" */
  34.   # if defined(HAVE_LOCALE_H) || defined(X_LOCALE)
  35.           if (p == NULL || *p == NUL)
  36.           p = (char_u *)get_locale_val(LC_CTYPE);
  37. *** ../vim-6.2.508/src/version.c    Tue Apr 27 22:27:24 2004
  38. --- src/version.c    Wed Apr 28 12:01:15 2004
  39. ***************
  40. *** 639,640 ****
  41. --- 639,642 ----
  42.   {   /* Add new patch number below this line */
  43. + /**/
  44. +     509,
  45.   /**/
  46.  
  47. -- 
  48. Don't read everything you believe.
  49.  
  50.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  51. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  52. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  53.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  54.