[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] /kern/welcome is latin1



On 30/12/2012 23:46, Alan Hourihane wrote:
Go ahead and post a fix. I don't see any good reason for it.

Here it is.

welcome.patch
Fixed /kern/welcome to use the standard Atari charset. Contributed by Vincent Riviere.

--
Vincent Rivière
--- freemint.orig/sys/kernget.c	2011-06-16 11:25:05.000000000 +0200
+++ freemint/sys/kernget.c	2012-12-31 13:32:11.596253800 +0100
@@ -78,49 +78,6 @@
 # include "xbios.h"
 
 
-/* Conversion table from `atarist' charset to `latin1' charset.
- * Generated mechanically by GNU recode 3.4.
- *
- * The recoding should be reversible.
- */
-
-uchar const atarist_to_latin1 [256] =
-{
-      0,   1,   2,   3,   4,   5,   6,   7,     /*   0 -   7 */
-      8,   9,  10,  11,  12,  13,  14,  15,     /*   8 -  15 */
-     16,  17,  18,  19,  20,  21,  22,  23,     /*  16 -  23 */
-     24,  25,  26,  27,  28,  29,  30,  31,     /*  24 -  31 */
-     32,  33,  34,  35,  36,  37,  38,  39,     /*  32 -  39 */
-     40,  41,  42,  43,  44,  45,  46,  47,     /*  40 -  47 */
-     48,  49,  50,  51,  52,  53,  54,  55,     /*  48 -  55 */
-     56,  57,  58,  59,  60,  61,  62,  63,     /*  56 -  63 */
-     64,  65,  66,  67,  68,  69,  70,  71,     /*  64 -  71 */
-     72,  73,  74,  75,  76,  77,  78,  79,     /*  72 -  79 */
-     80,  81,  82,  83,  84,  85,  86,  87,     /*  80 -  87 */
-     88,  89,  90,  91,  92,  93,  94,  95,     /*  88 -  95 */
-     96,  97,  98,  99, 100, 101, 102, 103,     /*  96 - 103 */
-    104, 105, 106, 107, 108, 109, 110, 111,     /* 104 - 111 */
-    112, 113, 114, 115, 116, 117, 118, 119,     /* 112 - 119 */
-    120, 121, 122, 123, 124, 125, 126, 127,     /* 120 - 127 */
-    199, 252, 233, 226, 228, 224, 229, 231,     /* 128 - 135 */
-    234, 235, 232, 239, 238, 236, 196, 197,     /* 136 - 143 */
-    201, 230, 198, 244, 246, 242, 251, 249,     /* 144 - 151 */
-    255, 214, 220, 162, 163, 165, 223, 159,     /* 152 - 159 */
-    225, 237, 243, 250, 241, 209, 170, 186,     /* 160 - 167 */
-    191, 190, 172, 189, 188, 161, 171, 187,     /* 168 - 175 */
-    227, 245, 216, 248, 221, 181, 192, 195,     /* 176 - 183 */
-    213, 168, 180, 152, 182, 169, 174, 185,     /* 184 - 191 */
-    166, 193, 194, 156, 142, 143, 146, 128,     /* 192 - 199 */
-    200, 144, 202, 203, 204, 205, 206, 207,     /* 200 - 207 */
-    208, 157, 210, 211, 212, 184, 153, 215,     /* 208 - 215 */
-    253, 217, 218, 219, 154, 167, 222, 158,     /* 216 - 223 */
-    133, 160, 131, 176, 132, 134, 145, 135,     /* 224 - 231 */
-    138, 130, 136, 137, 141, 173, 140, 139,     /* 232 - 239 */
-    240, 177, 149, 155, 147, 164, 247, 148,     /* 240 - 247 */
-    254, 151, 183, 150, 129, 178, 179, 175      /* 248 - 255 */
-};
-
-
 long
 kern_get_unimplemented (SIZEBUF **buffer)
 {
@@ -659,7 +616,7 @@
 				continue;
 			}
 
-			*to++ = (uchar) atarist_to_latin1 [*from.c++];
+			*to++ = *from.c++;
 		}
 	}