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.210 < prev    next >
Encoding:
Internet Message Format  |  2002-02-10  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.210
  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.210
  11. Problem:    After patch 6.0.167 it's no longer possible to edit a help file in
  12.         another encoding than latin1.
  13. Solution:   Let the "++enc=" argument overrule the encoding.
  14. Files:        src/fileio.c
  15.  
  16.  
  17. *** ../vim60.209/src/fileio.c    Sun Feb  3 17:33:39 2002
  18. --- src/fileio.c    Mon Feb 11 13:46:55 2002
  19. ***************
  20. *** 670,685 ****
  21.       /*
  22.        * Decide which 'encoding' to use first.
  23.        */
  24. !     if (curbuf->b_help)
  25. !     {
  26. !     fenc = (char_u *)"latin1";    /* help files are latin1 */
  27. !     fenc_alloced = FALSE;
  28. !     }
  29. !     else if (eap != NULL && eap->force_enc != 0)
  30.       {
  31.       fenc = enc_canonize(eap->cmd + eap->force_enc);
  32.       fenc_alloced = TRUE;
  33.       }
  34.       else if (curbuf->b_p_bin)
  35.       {
  36.       fenc = (char_u *)"";        /* binary: don't convert */
  37. --- 681,696 ----
  38.       /*
  39.        * Decide which 'encoding' to use first.
  40.        */
  41. !     if (eap != NULL && eap->force_enc != 0)
  42.       {
  43.       fenc = enc_canonize(eap->cmd + eap->force_enc);
  44.       fenc_alloced = TRUE;
  45.       }
  46. +     else if (curbuf->b_help)
  47. +     {
  48. +     fenc = (char_u *)"latin1";    /* help files are latin1 */
  49. +     fenc_alloced = FALSE;
  50. +     }
  51.       else if (curbuf->b_p_bin)
  52.       {
  53.       fenc = (char_u *)"";        /* binary: don't convert */
  54. *** ../vim60.209/src/version.c    Mon Feb 11 12:01:33 2002
  55. --- src/version.c    Mon Feb 11 13:53:06 2002
  56. ***************
  57. *** 608,609 ****
  58. --- 608,611 ----
  59.   {   /* Add new patch number below this line */
  60. + /**/
  61. +     210,
  62.   /**/
  63.  
  64. -- 
  65.     [clop clop]
  66. ARTHUR:  Old woman!
  67. DENNIS:  Man!
  68. ARTHUR:  Man, sorry.  What knight lives in that castle over there?
  69. DENNIS:  I'm thirty seven.
  70. ARTHUR:  What?
  71. DENNIS:  I'm thirty seven -- I'm not old!
  72.                                   The Quest for the Holy Grail (Monty Python)
  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.