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=c20c3e982e187e1b9fabc87ea29e8abba5689de1;hb=1346b30779b120691e4145a3578716f77300951e;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/src/iconv_decode_marc8.c b/src/iconv_decode_marc8.c index c20c3e9..86f1246 100644 --- a/src/iconv_decode_marc8.c +++ b/src/iconv_decode_marc8.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -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 {