Attachment 'vimcolor-utf8.diff'
Download 1 178c178
2 < import os, tempfile
3 ---
4 > import os, tempfile, codecs
5 181c181
6 < open(vstemp,'w').write(VIM_MARK_RC)
7 ---
8 > codecs.open(vstemp,'w','utf-8').write(VIM_MARK_RC)
9 188c188
10 < sh=open(shtemp,'w')
11 ---
12 > sh=codecs.open(shtemp,'w', 'utf-8')
13 194c194,196
14 < %(filetype)s:source %(vstemp)s
15 ---
16 > %(filetype)s:set encoding=utf-8
17 > :source %(vstemp)s
18 > :set fileencoding=utf-8
19 204c206
20 < lines=open(outtemp,'r').readlines()
21 ---
22 > lines=codecs.open(outtemp,'r', 'utf-8').readlines()
23 262a265
24 > import codecs
25 264c267
26 < f=open(fn,'w')
27 ---
28 > f=codecs.open(fn,'w','utf-8')
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.