Displaying 3 results from an estimated 3 matches for "update_map".
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
...[sizeof(pstring)];
-
-static BOOL mapsinited = 0;
-
-static char unix2dos[256];
-static char dos2unix[256];
-
-static void initmaps(void) {
-    int k;
-
-    for (k = 0; k < 256; k++) unix2dos[k] = k;
-    for (k = 0; k < 256; k++) dos2unix[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();
-...
1999 Jun 08
2
Tuýrkish Character Set
...am new to this list. I have  (and all Trukish users of Samba) trouble with
Turkish charactes (iso8859-9)with Samba. I saw some character definition tables
in charcnv.o (in sources). I couldn't understand the logic. A part of the table
for iso8859-2 is
/* MSDOS Code Page 852 -> ISO-8859-2 */
update_map("\241\244\242\364\243\235\244\317\245\225\246\227\247\365");
update_map("\250\371\251\346\252\270\253\233\254\215\256\246\257\275");
update_map("\261\245\262\362\263\210\264\357\265\226\266\230\267\363");
What does these number mean? Could anybody expain please? So th...
2001 Mar 12
0
Hebrew codepage conversion
...dates (e.g.
glibc 2.2) but the patch seems trivial to me enough to send even
though I understand you will probably won't be able to test it
against a hebrew version of windows.
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...