From 2cdfde517e53ae2c7c3393a505e1f127e714fc59 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 19 Jul 2005 22:25:43 +0000 Subject: Fixes - Fixed several errors in doxygen documentation - Initializing locale in rcclocale (if setlocale return 'C') - Calling Configure before anything else in rccRecode --- src/recode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/recode.c') diff --git a/src/recode.c b/src/recode.c index 435e1a6..4016186 100644 --- a/src/recode.c +++ b/src/recode.c @@ -153,6 +153,7 @@ char *rccSizedTo(rcc_context ctx, rcc_class_id class_id, const rcc_string buf, s } char *rccSizedRecode(rcc_context ctx, rcc_class_id from, rcc_class_id to, const char *buf, size_t len, size_t *rlen) { + int err; rcc_string stmp; char *result; const char *from_charset, *to_charset; @@ -183,6 +184,8 @@ char *rccSizedRecode(rcc_context ctx, rcc_class_id from, rcc_class_id to, const } } + err = rccConfigure(ctx); + if (err) return NULL; from_charset_id = rccIConvAuto(ctx, from, buf, len); if (from_charset_id != (rcc_charset_id)-1) { -- cgit v1.2.3