aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tcs
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-02-14 19:44:18 +0000
committerrsc <devnull@localhost>2006-02-14 19:44:18 +0000
commit1a8bd157b665a7ef92f490430ba6b1eb7484b1e6 (patch)
treefabae7f2e3c04c200f238014bb3484637a5630ba /src/cmd/tcs
parent7236e45bbc7a899c48c02b5c03d6f889893d9131 (diff)
downloadplan9port-1a8bd157b665a7ef92f490430ba6b1eb7484b1e6.tar.gz
plan9port-1a8bd157b665a7ef92f490430ba6b1eb7484b1e6.tar.bz2
plan9port-1a8bd157b665a7ef92f490430ba6b1eb7484b1e6.zip
better labels
Diffstat (limited to 'src/cmd/tcs')
-rw-r--r--src/cmd/tcs/html.c2
-rw-r--r--src/cmd/tcs/tcs.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/src/cmd/tcs/html.c b/src/cmd/tcs/html.c
index d0f08006..8a27f1c2 100644
--- a/src/cmd/tcs/html.c
+++ b/src/cmd/tcs/html.c
@@ -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);
}
diff --git a/src/cmd/tcs/tcs.c b/src/cmd/tcs/tcs.c
index 9ea97220..37753765 100644
--- a/src/cmd/tcs/tcs.c
+++ b/src/cmd/tcs/tcs.c
@@ -119,6 +119,7 @@ void
usage(void)
{
EPR "Usage: %s [-slv] [-f cs] [-t cs] [file ...]\n", argv0);
+ verbose = 1;
list();
EXIT(1, "usage");
}
@@ -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 },