5242791e4876112e25930bc6027b1a9902ba54ec
[openwrt/svn-archive/archive.git] / net / samba / patches / 103-cp775.patch
1 --- ./source/lib/charcnv.c 2009-07-01 13:42:20.000000000 +0300
2 +++ ./source/lib.new/charcnv.c 2009-07-01 13:53:19.000000000 +0300
3 @@ -166,6 +166,28 @@
4 update_map("\270\353\271\354\272\355\274\356\276\357\277\360");
5 }
6
7 +/* init for Baltic Rim */
8 +/* Patch from Zintis Petersons. */
9 +
10 +static void init_iso8859_13(void) {
11 +
12 + setupmaps();
13 +
14 + /* MSDOS Code Page 775 -> ISO-8859-13 */
15 +update_map("\240\377\241\246\242\226\243\234\244\237\245\367\246\247\247\365");
16 +update_map("\250\235\251\250\252\212\253\256\254\252\255\360\256\251\257\222");
17 +update_map("\260\370\261\361\262\375\263\374\264\362\265\346\266\364\267\372");
18 +update_map("\270\233\271\373\272\213\273\257\274\254\275\253\276\363\277\221");
19 +update_map("\300\265\301\275\302\240\303\200\304\216\305\217\306\267\307\355");
20 +update_map("\310\266\311\220\312\215\313\270\314\225\315\350\316\241\317\352");
21 +update_map("\320\276\321\343\322\356\323\340\324\342\325\345\326\231\327\236");
22 +update_map("\330\306\331\255\332\227\333\307\334\232\335\243\336\317\337\341");
23 +update_map("\340\320\341\324\342\203\343\207\344\204\345\206\346\322\347\211");
24 +update_map("\350\321\351\202\352\245\353\323\354\205\355\351\356\214\357\353");
25 +update_map("\360\325\361\347\362\354\363\242\364\223\365\344\366\224\367\366");
26 +update_map("\370\326\371\210\372\230\373\327\374\201\375\244\376\330\377\357");
27 +}
28 +
29 /* Init for russian language (koi8) */
30
31 static void init_koi8_r(void)
32 @@ -306,6 +328,8 @@
33 init_iso8859_5();
34 } else if (strequal (str, "iso8859-7")) {
35 init_iso8859_7();
36 + } else if (strequal (str, "iso8859-13")) {
37 + init_iso8859_13();
38 } else if (strequal (str, "koi8-r")) {
39 init_koi8_r();
40 } else if (strequal (str, "1251u")) {