annotate src/testdir/test52.in @ 3149:35f098371af6 v7.3.345

updated for version 7.3.345
author Bram Moolenaar <bram@vim.org>
date Thu, 20 Oct 2011 21:41:09 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Tests for reading and writing files with conversion for Win32.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so mbyte.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :" make this a dummy test for non-Win32 systems
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :if !has("win32") | e! test.ok | wq! test.out | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :" write tests:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :" combine three values for 'encoding' with three values for 'fileencoding'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :" also write files for read tests
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 /^1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :set encoding=utf-8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :.w! ++enc=utf-8 test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :.w ++enc=cp1251 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :.w ++enc=cp866 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :.w! ++enc=utf-8 Xutf8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 /^2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :set encoding=cp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :.w ++enc=utf-8 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :.w ++enc=cp1251 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :.w ++enc=cp866 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 :.w! ++enc=cp1251 Xcp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 /^3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :set encoding=cp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 :.w ++enc=utf-8 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :.w ++enc=cp1251 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 :.w ++enc=cp866 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :.w! ++enc=cp866 Xcp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :" read three 'fileencoding's with utf-8 'encoding'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 :set encoding=utf-8 fencs=utf-8,cp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :e Xutf8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 :.w ++enc=utf-8 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :e Xcp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 :.w ++enc=utf-8 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 :set fencs=utf-8,cp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :e Xcp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :.w ++enc=utf-8 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 :" read three 'fileencoding's with cp1251 'encoding'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :set encoding=utf-8 fencs=utf-8,cp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :e Xutf8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 :.w ++enc=cp1251 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 :e Xcp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 :.w ++enc=cp1251 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :set fencs=utf-8,cp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :e Xcp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 :.w ++enc=cp1251 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :" read three 'fileencoding's with cp866 'encoding'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 :set encoding=cp866 fencs=utf-8,cp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :e Xutf8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 :.w ++enc=cp866 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 :e Xcp1251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 :.w ++enc=cp866 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 :set fencs=utf-8,cp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 :e Xcp866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 :.w ++enc=cp866 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 1 utf-8 text: Для Vim version 6.2. Последнее изменение: 1970 Jan 01
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 2 cp1251 text: Vim version 6.2. : 1970 Jan 01
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 3 cp866 text: Vim version 6.2. ᫥ : 1970 Jan 01