]> git.pld-linux.org Git - packages/vim.git/blame - 6.3.028
- new
[packages/vim.git] / 6.3.028
CommitLineData
be561239
AG
1To: vim-dev@vim.org
2Subject: Patch 6.3.028
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 6.3.028
11Problem: When appending to a file the BOM marker may be written. (Alex
12 Jakushev)
13Solution: Do not write the BOM marker when appending.
14Files: 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--
51The word "leader" is derived from the word "lead", as in the material that
52bullets are made out of. The term "leader" was popularized at about the same
53time as the invention of firearms. It grew out of the observation that the
54person in charge of every organization was the person whom everyone wanted to
55fill 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.061239 seconds and 4 git commands to generate.