summaryrefslogtreecommitdiff
path: root/bk_man.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-06-27 13:18:32 +0000
committerSimon Tatham <anakin@pobox.com>2004-06-27 13:18:32 +0000
commitd87fabeacea32abba73d67f991f9e523991369c7 (patch)
tree2107cd344ecdf683140efcf9503a23677f55141c /bk_man.c
parent037337dcc8cc4e7f2f8a628ab73b1b461dae7171 (diff)
downloadhalibut-d87fabeacea32abba73d67f991f9e523991369c7.zip
halibut-d87fabeacea32abba73d67f991f9e523991369c7.tar.gz
halibut-d87fabeacea32abba73d67f991f9e523991369c7.tar.bz2
halibut-d87fabeacea32abba73d67f991f9e523991369c7.tar.xz
Sort out error handling everywhere a charset name is converted into
an integer charset ID. [originally from svn r4317]
Diffstat (limited to 'bk_man.c')
-rw-r--r--bk_man.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bk_man.c b/bk_man.c
index 7271428..d2607d9 100644
--- a/bk_man.c
+++ b/bk_man.c
@@ -69,9 +69,7 @@ static manconfig man_configure(paragraph *source) {
ret.th = snewn(ep - wp + 1, wchar_t);
memcpy(ret.th, wp, (ep - wp + 1) * sizeof(wchar_t));
} else if (!ustricmp(p->keyword, L"man-charset")) {
- char *csname = utoa_dup(uadv(p->keyword), CS_ASCII);
- ret.charset = charset_from_localenc(csname);
- sfree(csname);
+ ret.charset = charset_from_ustr(&p->fpos, uadv(p->keyword));
} else if (!ustricmp(p->keyword, L"man-headnumbers")) {
ret.headnumbers = utob(uadv(p->keyword));
} else if (!ustricmp(p->keyword, L"man-mindepth")) {