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.327 < prev    next >
Encoding:
Internet Message Format  |  2003-02-15  |  3.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.327
  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.327
  11. Problem:    When opening the "mbyte.txt" help file the utf-8 characters are
  12.         unreadable, because the fileencoding is forced to be latin1.
  13. Solution:   Check for utf-8 encoding first in help files. (Daniel Elstner)
  14. Files:        runtime/doc/mbyte.txt, src/fileio.c
  15.  
  16.  
  17. *** ../vim61.326/runtime/doc/mbyte.txt    Fri Mar 22 21:18:37 2002
  18. --- runtime/doc/mbyte.txt    Thu Feb  6 20:46:54 2003
  19. ***************
  20. *** 1,4 ****
  21. ! *mbyte.txt*     For Vim version 6.1.  Last change: 2002 Feb 28
  22.   
  23.   
  24.             VIM REFERENCE MANUAL      by Bram Moolenaar et al.
  25. --- 1,4 ----
  26. ! *mbyte.txt*     For Vim version 6.1.  Last change: 2003 Feb 06
  27.   
  28.   
  29.             VIM REFERENCE MANUAL      by Bram Moolenaar et al.
  30. ***************
  31. *** 29,34 ****
  32. --- 29,37 ----
  33.   10. Using UTF-8                |mbyte-utf8|
  34.   11. Overview of options            |mbyte-options|
  35.   
  36. + NOTE: This file contains UTF-8 characters.  These may show up as strange
  37. + characters or boxes when using another encoding.
  38.   ==============================================================================
  39.   1. Getting started                    *mbyte-first*
  40.   
  41. ***************
  42. *** 991,997 ****
  43.   
  44.   It's possible to have more than one character in the first column.  This works
  45.   like a dead key.  Example: >
  46. !     'a    ß
  47.   Since Vim doesn't know if the next character after a quote is really an "a",
  48.   it will wait for the next character.  To be able to insert a single quote,
  49.   also add this line: >
  50. --- 1011,1017 ----
  51.   
  52.   It's possible to have more than one character in the first column.  This works
  53.   like a dead key.  Example: >
  54. !     'a    ├í
  55.   Since Vim doesn't know if the next character after a quote is really an "a",
  56.   it will wait for the next character.  To be able to insert a single quote,
  57.   also add this line: >
  58. *** ../vim61.326/src/fileio.c    Sun Feb  2 13:41:28 2003
  59. --- src/fileio.c    Sun Feb 16 16:00:46 2003
  60. ***************
  61. *** 708,714 ****
  62.       }
  63.       else if (curbuf->b_help)
  64.       {
  65. !     fenc = (char_u *)"latin1";    /* help files are latin1 */
  66.       fenc_alloced = FALSE;
  67.       }
  68.       else if (*p_fencs == NUL)
  69. --- 708,722 ----
  70.       }
  71.       else if (curbuf->b_help)
  72.       {
  73. !     /* Help files are either utf-8 or latin1.  Try utf-8 first, if this
  74. !      * fails it must be latin1.  Only do this when 'encoding' is utf-8 to
  75. !      * avoid [converted] remarks all the time. */
  76. !     fenc = (char_u *)"latin1";
  77. !     if (enc_utf8)
  78. !     {
  79. !         fenc_next = fenc;
  80. !         fenc = (char_u *)"utf-8";
  81. !     }
  82.       fenc_alloced = FALSE;
  83.       }
  84.       else if (*p_fencs == NUL)
  85. *** ../vim61.326/src/version.c    Sun Feb 16 21:46:15 2003
  86. --- src/version.c    Sun Feb 16 21:52:40 2003
  87. ***************
  88. *** 608,609 ****
  89. --- 612,615 ----
  90.   {   /* Add new patch number below this line */
  91. + /**/
  92. +     327,
  93.   /**/
  94.  
  95. -- 
  96. hundred-and-one symptoms of being an internet addict:
  97. 267. You get an extra phone line so you can get phone calls. 
  98.  
  99.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  100. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  101. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  102.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  103.