X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficonv_decode_marc8.c;h=86f1246cb31d6d19790e804993e640eac0e7bdda;hp=72970b3010342058e0059b6a39e413ee946d4319;hb=1346b30779b120691e4145a3578716f77300951e;hpb=e4d42c8bf05ddaef1e8a60f1179c8b6bc19aaa9d;ds=sidebyside diff --git a/src/iconv_decode_marc8.c b/src/iconv_decode_marc8.c index 72970b3..86f1246 100644 --- a/src/iconv_decode_marc8.c +++ b/src/iconv_decode_marc8.c @@ -172,10 +172,10 @@ static unsigned long yaz_read_marc8_comb(yaz_iconv_t cd, } if (inbytesleft == 0) return 0; - else if (*inp == ' ') + else if (*inp <= ' ') { *no_read += 1; - return ' '; + return *inp; } else {