X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/529a6c8362cf2786be0538848a26ec233d2189ec..0960a3d8eaea25ca71e3165556979b41ab10cb2b:/bk_man.c 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")) {