]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - tack/charset.c
ncurses 5.3
[ncurses.git] / tack / charset.c
index ca0ac6ff20d6f8ce12405c71201322211899ca18..991401f37437479336fa9b93d1a230ddce979516 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <tack.h>
 
-MODULE_ID("$Id: charset.c,v 1.4 2000/03/04 20:30:52 tom Exp $")
+MODULE_ID("$Id: charset.c,v 1.8 2001/06/18 18:44:26 tom Exp $")
 
 /*
        Menu definitions for alternate character set and SGR tests.
@@ -285,10 +285,12 @@ charset_sgr(
        }
        put_crlf();
 
+#ifdef max_attributes 
        if (max_attributes >= 0) {
                sprintf(temp, "(ma) Maximum attributes %d  ", max_attributes);
                ptext(temp);
        }
+#endif
        generic_done_message(t, state, ch);
 }
 
@@ -433,12 +435,12 @@ test_acs(
                                        break;
                                }
                                if (glyph[j].name[0] == '\0') {
-                                       if (isgraph(acs_chars[i])) {
+                                       if (isgraph(UChar(acs_chars[i]))) {
                                                sprintf(temp, "    %c",
                                                        acs_chars[i]);
                                        } else {
                                                sprintf(temp, " 0x%02x",
-                                                       (acs_chars[i] & 0xff));
+                                                       UChar(acs_chars[i]));
                                        }
                                        strcpy(&temp[5], " *** has no mapping ***");
                                        putln(temp);