2 Subject: Patch 6.3.047 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32 with Borland C 5.5 on Windows XP: A new file is created with
12 read-only attributes. (Tony Mechelynck)
13 Solution: Don't use the _wopen() function for Borland.
17 *** ../vim-6.3.046/src/os_win32.c Wed Jun 9 14:56:26 2004
18 --- src/os_win32.c Wed Dec 15 15:35:41 2004
22 mch_open(char *name, int flags, int mode)
27 ! if (enc_codepage >= 0 && (int)GetACP() != enc_codepage
28 ! # ifdef __BORLANDC__
29 ! /* Wide functions of Borland C 5.5 do not work on Windows 98. */
30 ! && g_PlatformId == VER_PLATFORM_WIN32_NT
34 wn = enc_to_ucs2(name, NULL);
38 mch_open(char *name, int flags, int mode)
40 + /* _wopen() does not work with Borland C 5.5: creates a read-only file. */
41 + # ifndef __BORLANDC__
45 ! if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
47 wn = enc_to_ucs2(name, NULL);
52 * the _wopen() fails for missing wide functions. */
57 return open(name, flags, mode);
59 *** ../vim-6.3.046/src/version.c Sat Dec 11 16:14:41 2004
60 --- src/version.c Wed Dec 15 15:35:51 2004
64 { /* Add new patch number below this line */
70 hundred-and-one symptoms of being an internet addict:
71 60. As your car crashes through the guardrail on a mountain road, your first
72 instinct is to search for the "back" button.
74 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
75 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
77 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///