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=96a72bd8b771e4ce33299e3938f32a5f9ed481e1;hb=1346b30779b120691e4145a3578716f77300951e;hpb=5787f1e881be090f6bdfe708e179f9f466356bc8 diff --git a/src/iconv_decode_marc8.c b/src/iconv_decode_marc8.c index 96a72bd..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-2008 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -17,7 +17,6 @@ #include #include #include -#include #include #include "iconv-p.h" @@ -63,7 +62,7 @@ static unsigned long read_marc8(yaz_iconv_t cd, yaz_iconv_decoder_t d, *no_read = data->comb_no_read[data->comb_offset]; x = data->comb_x[data->comb_offset]; - /* special case for double-diacritic combining characters, + /* special case for double-diacritic combining characters, INVERTED BREVE and DOUBLE TILDE. We'll increment the no_read counter by 1, since we want to skip over the processing of the closing ligature character @@ -173,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 { @@ -279,7 +278,9 @@ yaz_iconv_decoder_t yaz_marc8_decoder(const char *fromcode, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +