From 2465d6db8c6b6ee61f63369d1914ac592141a9c5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 21 Jun 2012 14:35:08 +0200 Subject: [PATCH] record_render: simplify a bit --- src/record_render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/record_render.c b/src/record_render.c index 06c1184..c48406c 100644 --- a/src/record_render.c +++ b/src/record_render.c @@ -34,7 +34,7 @@ static yaz_iconv_t iconv_create_charset(const char *record_charset, yaz_iconv_t cd = 0; char *from_set1 = 0; char *from_set2 = 0; - char *to_set = 0; + char *to_set = "utf-8"; if (record_charset && *record_charset) { char *cp = charset_buf; @@ -62,11 +62,11 @@ static yaz_iconv_t iconv_create_charset(const char *record_charset, } if (from_set1) - cd = yaz_iconv_open(to_set ? to_set : "UTF-8", from_set1); + cd = yaz_iconv_open(to_set, from_set1); if (cd2) { if (from_set2) - *cd2 = yaz_iconv_open(to_set ? to_set : "UTF-8", from_set2); + *cd2 = yaz_iconv_open(to_set, from_set2); else *cd2 = 0; } -- 1.7.10.4