search for: setupmaps

Displaying 2 results from an estimated 2 matches for "setupmaps".

Did you mean: setupapi
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
...unix[k] = k; - - mapsinited = True; -} - -static void update_map(char *str) { - char *p; - - for (p = str; *p; p++) { - if (p[1]) { - unix2dos[(unsigned char)*p] = p[1]; - dos2unix[(unsigned char)p[1]] = *p; - p++; - } - } -} - -static void setupmaps(void) -{ - int i; - if (!mapsinited) initmaps(); - - /* Do not map undefined characters to some accidental code */ - for (i = 128; i < 256; i++) - { - unix2dos[i] = CTRLZ; - dos2unix[i] = CTRLZ; - } -} - -static void init_iso8859_1(int codepage) { - - setupmaps(); -...
2001 Mar 12
0
Hebrew codepage conversion
...s. Regards, didi --- samba-2.0.7.orig/source/lib/charcnv.c +++ samba-2.0.7/source/lib/charcnv.c @@ -166,6 +166,20 @@ update_map("\270\353\271\354\272\355\274\356\276\357\277\360"); } +/* Added by Yedidyah Bar-David (didi@tau.ac.il) */ + +static void init_iso8859_8(void) +{ + setupmaps(); + +/* MSDOS Code Page 862 -> ISO-8859-8 (Hebrew) */ + +update_map("\340\200\341\201\342\202\343\203\344\204\345\205\346\206\347\207"); +update_map("\350\210\351\211\352\212\353\213\354\214\355\215\356\216\357\217"); +update_map("\360\220\361\221\362\222\363\223\364\22...