[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-devel] Changes to qemacs/charset.c
From: |
Charlie Gordon |
Subject: |
[Qemacs-devel] Changes to qemacs/charset.c |
Date: |
Mon, 09 May 2005 02:21:49 -0400 |
Index: qemacs/charset.c
diff -u qemacs/charset.c:1.2 qemacs/charset.c:1.3
--- qemacs/charset.c:1.2 Wed May 4 19:40:26 2005
+++ qemacs/charset.c Mon May 9 06:21:49 2005
@@ -65,6 +65,7 @@
table_utf8[i] = ESCAPE_CHAR;
qe_register_charset(&charset_8859_1);
+ qe_register_charset(&charset_vt100);
qe_register_charset(&charset_utf8);
qe_register_charset(&charset_7bit);
}
@@ -108,6 +109,33 @@
};
/********************************************************/
+/* vt100 */
+
+static void decode_vt100_init(CharsetDecodeState *s)
+{
+ s->table = table_idem;
+}
+
+static unsigned char *encode_vt100(QECharset *charset,
+ unsigned char *p, int c)
+{
+ if (c <= 0xff) {
+ *p++ = c;
+ return p;
+ } else {
+ return NULL;
+ }
+}
+
+QECharset charset_vt100 = {
+ "vt100",
+ NULL,
+ decode_vt100_init,
+ NULL,
+ encode_vt100,
+};
+
+/********************************************************/
/* 7 bit */
static unsigned char *encode_7bit(QECharset *charset,
- [Qemacs-devel] Changes to qemacs/charset.c,
Charlie Gordon <=