tbetter labels - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1a8bd157b665a7ef92f490430ba6b1eb7484b1e6
 (DIR) parent 7236e45bbc7a899c48c02b5c03d6f889893d9131
 (HTM) Author: rsc <devnull@localhost>
       Date:   Tue, 14 Feb 2006 19:44:18 +0000
       
       better labels
       
       Diffstat:
         M src/cmd/tcs/html.c                  |       2 +-
         M src/cmd/tcs/tcs.c                   |       9 +++++----
       
       2 files changed, 6 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/tcs/html.c b/src/cmd/tcs/html.c
       t@@ -323,7 +323,7 @@ html_out(Rune *r, int n, long *x)
                        else if((s = findbyrune(*r)) != nil)
                                Bprint(&b, "&%s;", s);
                        else
       -                        Bprint(&b, "&#x%04x;", *r);
       +                        Bprint(&b, "&#%d;", *r);
                }
                Bflush(&b);
        }
 (DIR) diff --git a/src/cmd/tcs/tcs.c b/src/cmd/tcs/tcs.c
       t@@ -119,6 +119,7 @@ void
        usage(void)
        {
                EPR "Usage: %s [-slv] [-f cs] [-t cs] [file ...]\n", argv0);
       +        verbose = 1;
                list();
                EXIT(1, "usage");
        }
       t@@ -426,13 +427,13 @@ struct convert convert[] =
                { "ebcdic", "EBCDIC", Table, (void *)tabebcdic },        /* 6f is recommended bad map */
                { "euc-k", "Korean EUC: ASCII+KS C 5601 1987", From|Func, 0, (Fnptr)uksc_in },
                { "euc-k", "Korean EUC: ASCII+KS C 5601 1987", Func, 0, (Fnptr)uksc_out },
       -        { "gb", "GB2312-80", From|Func, 0, (Fnptr)gb_in },
       -        { "gb", "GB2312-80", Func, 0, (Fnptr)gb_out },
       +        { "gb", "GB2312-80 (Chinese)", From|Func, 0, (Fnptr)gb_in },
       +        { "gb", "GB2312-80 (Chinese)", Func, 0, (Fnptr)gb_out },
                { "html", "HTML", From|Func, 0, (Fnptr)html_in },
                { "html", "HTML", Func, 0, (Fnptr)html_out },
                { "jis", "guesses at the JIS encoding", From|Func, 0, (Fnptr)jis_in },
       -        { "jis-kanji", "ISO 2022-JP", From|Func, 0, (Fnptr)jisjis_in },
       -        { "jis-kanji", "ISO 2022-JP", Func, 0, (Fnptr)jisjis_out },
       +        { "jis-kanji", "ISO 2022-JP (Japanese)", From|Func, 0, (Fnptr)jisjis_in },
       +        { "jis-kanji", "ISO 2022-JP (Japanese)", Func, 0, (Fnptr)jisjis_out },
                { "koi8", "KOI-8 (GOST 19769-74)", Table, (void *)tabkoi8 },
                { "latin1", "ISO 8859-1", Table, (void *)tab8859_1 },
                { "macrom", "Macintosh Standard Roman character set", Table, (void *)tabmacroman },