From d87fabeacea32abba73d67f991f9e523991369c7 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 27 Jun 2004 13:18:32 +0000 Subject: Sort out error handling everywhere a charset name is converted into an integer charset ID. [originally from svn r4317] --- bk_info.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bk_info.c') diff --git a/bk_info.c b/bk_info.c index 03f8926..d4a4aca 100644 --- a/bk_info.c +++ b/bk_info.c @@ -134,9 +134,7 @@ static infoconfig info_configure(paragraph *source) { sfree(ret.filename); ret.filename = dupstr(adv(p->origkeyword)); } else if (!ustricmp(p->keyword, L"info-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"info-max-file-size")) { ret.maxfilesize = utoi(uadv(p->keyword)); } else if (!ustricmp(p->keyword, L"info-width")) { -- cgit v1.1