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] --- input.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 4eb1d8c..b31d583 100644 --- a/input.c +++ b/input.c @@ -86,9 +86,7 @@ static void input_configure(input *in, paragraph *cfg) { assert(cfg->type == para_Config); if (!ustricmp(cfg->keyword, L"input-charset")) { - char *csname = utoa_dup(uadv(cfg->keyword), CS_ASCII); - in->charset = charset_from_localenc(csname); - sfree(csname); + in->charset = charset_from_ustr(&cfg->fpos, uadv(cfg->keyword)); } } -- cgit v1.1