4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When appending to a file the BOM marker may be written. (Alex
13 Solution: Do not write the BOM marker when appending.
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
23 * The BOM is written just after the encryption magic number.
25 ! if (buf->b_p_bomb && !write_bin)
27 write_info.bw_len = make_bom(buffer, fenc);
28 if (write_info.bw_len > 0)
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.
36 ! if (buf->b_p_bomb && !write_bin && (!append || perm < 0))
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
45 { /* Add new patch number below this line */
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
56 I don't recomment this; it's just a point of historical interest.
57 (Scott Adams - The Dilbert principle)
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 ///