1 Tests for reading and writing files with conversion for Win32.
5 :" make this a dummy test for non-Win32 systems
6 :if !has("win32") | e! test.ok | wq! test.out | endif
9 :" combine three values for 'encoding' with three values for 'fileencoding'
10 :" also write files for read tests
13 :.w! ++enc=utf-8 test.out
14 :.w ++enc=cp1251 >>test.out
15 :.w ++enc=cp866 >>test.out
16 :.w! ++enc=utf-8 Xutf8
19 :.w ++enc=utf-8 >>test.out
20 :.w ++enc=cp1251 >>test.out
21 :.w ++enc=cp866 >>test.out
22 :.w! ++enc=cp1251 Xcp1251
25 :.w ++enc=utf-8 >>test.out
26 :.w ++enc=cp1251 >>test.out
27 :.w ++enc=cp866 >>test.out
28 :.w! ++enc=cp866 Xcp866
30 :" read three 'fileencoding's with utf-8 'encoding'
31 :set encoding=utf-8 fencs=utf-8,cp1251
33 :.w ++enc=utf-8 >>test.out
35 :.w ++enc=utf-8 >>test.out
36 :set fencs=utf-8,cp866
38 :.w ++enc=utf-8 >>test.out
40 :" read three 'fileencoding's with cp1251 'encoding'
41 :set encoding=utf-8 fencs=utf-8,cp1251
43 :.w ++enc=cp1251 >>test.out
45 :.w ++enc=cp1251 >>test.out
46 :set fencs=utf-8,cp866
48 :.w ++enc=cp1251 >>test.out
50 :" read three 'fileencoding's with cp866 'encoding'
51 :set encoding=cp866 fencs=utf-8,cp1251
53 :.w ++enc=cp866 >>test.out
55 :.w ++enc=cp866 >>test.out
56 :set fencs=utf-8,cp866
58 :.w ++enc=cp866 >>test.out
63 1 utf-8 text: Для Vim version 6.2. Последнее изменение: 1970 Jan 01
64 2 cp1251 text: Äëÿ Vim version 6.2. Ïîñëåäíåå èçìåíåíèå: 1970 Jan 01
65 3 cp866 text: „«ï Vim version 6.2. �®á«¥¤¥¥ ¨§¬¥¥¨¥: 1970 Jan 01