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.0.043 < prev    next >
Encoding:
Internet Message Format  |  2001-10-30  |  2.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.043
  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.0.043
  11. Problem:    Patch 6.0.041 was wrong.
  12. Solution:   Use mch_getenv() instead of vim_getenv().
  13. Files:        src/ex_cmds2.c
  14.  
  15.  
  16. *** ../vim60.42/src/ex_cmds2.c    Tue Oct 30 20:43:43 2001
  17. --- src/ex_cmds2.c    Wed Oct 31 10:10:45 2001
  18. ***************
  19. *** 4667,4685 ****
  20.   #ifndef LC_MESSAGES
  21.       if (what == VIM_LC_MESSAGES)
  22.       {
  23. !         p = vim_getenv("LC_ALL");
  24.           if (p == NULL || *p == NUL)
  25.           {
  26. !         p = vim_getenv("LC_MESSAGES");
  27.           if (p == NULL || *p == NUL)
  28. !             p = vim_getenv("LANG");
  29.           }
  30.       }
  31.       else
  32.   #endif
  33. !         p = setlocale(what, NULL);
  34.       if (p == NULL || *p == NUL)
  35. !         p = "Unknown";
  36.       smsg((char_u *)_("Current %slanguage: \"%s\""), whatstr, p);
  37.       }
  38.       else
  39. --- 4667,4685 ----
  40.   #ifndef LC_MESSAGES
  41.       if (what == VIM_LC_MESSAGES)
  42.       {
  43. !         p = mch_getenv((char_u *)"LC_ALL");
  44.           if (p == NULL || *p == NUL)
  45.           {
  46. !         p = mch_getenv((char_u *)"LC_MESSAGES");
  47.           if (p == NULL || *p == NUL)
  48. !             p = mch_getenv((char_u *)"LANG");
  49.           }
  50.       }
  51.       else
  52.   #endif
  53. !         p = (char_u *)setlocale(what, NULL);
  54.       if (p == NULL || *p == NUL)
  55. !         p = (char_u *)"Unknown";
  56.       smsg((char_u *)_("Current %slanguage: \"%s\""), whatstr, p);
  57.       }
  58.       else
  59. *** ../vim60.42/src/version.c    Tue Oct 30 21:18:36 2001
  60. --- src/version.c    Wed Oct 31 10:08:33 2001
  61. ***************
  62. *** 608,609 ****
  63. --- 608,611 ----
  64.   {   /* Add new patch number below this line */
  65. + /**/
  66. +     43,
  67.   /**/
  68.  
  69. -- 
  70. It is illegal for anyone to give lighted cigars to dogs, cats, and other
  71. domesticated animal kept as pets.
  72.         [real standing law in Illinois, United States of America]
  73.  
  74.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  75. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  76.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  77.