]> git.pld-linux.org Git - packages/vim.git/blob - 6.3.028
- added __autoheader
[packages/vim.git] / 6.3.028
1 To: vim-dev@vim.org
2 Subject: Patch 6.3.028
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.3.028
11 Problem:    When appending to a file the BOM marker may be written.  (Alex
12             Jakushev)
13 Solution:   Do not write the BOM marker when appending.
14 Files:      src/fileio.c
15
16
17 *** ../vim-6.3.027/src/fileio.c Sat Sep 18 20:28:07 2004
18 --- src/fileio.c        Sat Sep 18 20:51:58 2004
19 ***************
20 *** 3838,3845 ****
21   #ifdef FEAT_MBYTE
22       /*
23        * The BOM is written just after the encryption magic number.
24        */
25 !     if (buf->b_p_bomb && !write_bin)
26       {
27         write_info.bw_len = make_bom(buffer, fenc);
28         if (write_info.bw_len > 0)
29 --- 3838,3847 ----
30   #ifdef FEAT_MBYTE
31       /*
32        * The BOM is written just after the encryption magic number.
33 +      * Skip it when appending and the file already existed, the BOM only makes
34 +      * sense at the start of the file.
35        */
36 !     if (buf->b_p_bomb && !write_bin && (!append || perm < 0))
37       {
38         write_info.bw_len = make_bom(buffer, fenc);
39         if (write_info.bw_len > 0)
40 *** ../vim-6.3.027/src/version.c        Sat Sep 18 20:28:07 2004
41 --- src/version.c       Sat Sep 18 21:12:43 2004
42 ***************
43 *** 643,644 ****
44 --- 643,646 ----
45   {   /* Add new patch number below this line */
46 + /**/
47 +     28,
48   /**/
49
50 -- 
51 The word "leader" is derived from the word "lead", as in the material that
52 bullets are made out of.  The term "leader" was popularized at about the same
53 time as the invention of firearms.  It grew out of the observation that the
54 person in charge of every organization was the person whom everyone wanted to
55 fill with hot lead.
56    I don't recomment this; it's just a point of historical interest.
57                                 (Scott Adams - The Dilbert principle)
58
59  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
60 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
61 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
62  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
This page took 0.049879 seconds and 3 git commands to generate.