PostScript StandardEncoding might occasionally come in handy. While
[sgt/charset] / iso2022.c
index a570860..353f19b 100644 (file)
--- a/iso2022.c
+++ b/iso2022.c
@@ -169,7 +169,7 @@ enum {
     DOCSCTEXT  /* DOCSed into a COMPOUND_TEXT extended segment */
 };
 
-#if 1
+#if 0
 #include <stdio.h>
 static void dump_state(charset_state *s)
 {
@@ -195,7 +195,7 @@ static void designate(charset_state *state, int container,
     assert(container >= 0 && container <= 3);
     assert(type == S4 || type == S6 || type == M4 || type == M6);
 
-    for (i = 0; i <= lenof(iso2022_subcharsets); i++) {
+    for (i = 0; i < lenof(iso2022_subcharsets); i++) {
        if (iso2022_subcharsets[i].type == type &&
            iso2022_subcharsets[i].i == ibyte &&
            iso2022_subcharsets[i].f == fbyte) {
@@ -217,7 +217,6 @@ static void do_utf8(long int input_chr,
                    void *emitctx)
 {
     charset_state ustate;
-    charset_spec const *utf8;
 
     ustate.s1 = 0;
     ustate.s0 = state->s0 & 0x03ffffffL;
@@ -264,7 +263,7 @@ struct ctext_encoding {
 };
 
 /*
- * In theory, this list is in <http://ftp.x.org/pub/docs/registry>,
+ * In theory, this list is in <ftp://ftp.x.org/pub/DOCS/registry>,
  * but XLib appears to have its own ideas, and encodes these three
  * (as of X11R6.8.2)
  */