X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficonv_encode_marc8.c;h=e05874f8d2565a2a7c416af49f108fa7a6360552;hp=f29ccbfc21f5fd6f40056fa1635be415e64da53d;hb=b9e057ce1b31f4cef4364de7c36b5c119cc94cc3;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/src/iconv_encode_marc8.c b/src/iconv_encode_marc8.c index f29ccbf..e05874f 100644 --- a/src/iconv_encode_marc8.c +++ b/src/iconv_encode_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. */ /** @@ -72,6 +72,11 @@ static unsigned long lookup_marc8(yaz_iconv_t cd, size_t utf8_outbytesleft = sizeof(utf8_buf)-1, r; int error_code; + if (x <= ' ' && x != 27) + { + *page_chr = ESC "(B"; + return x; + } r = yaz_write_UTF8_char(x, &utf8_outbuf, &utf8_outbytesleft, &error_code); if (r == (size_t)(-1)) {