From: Adam Dickmeiss Date: Wed, 10 Apr 2013 11:50:10 +0000 (+0200) Subject: MARC 8 encoding: never pass through ESC X-Git-Tag: v4.2.53~2 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=b9e057ce1b31f4cef4364de7c36b5c119cc94cc3;hp=f96a9bc9697b4b6b63ce52055ba0cfbe6cf6652a MARC 8 encoding: never pass through ESC as it is also uesd as escape for MARC-8 itself. --- diff --git a/src/iconv_encode_marc8.c b/src/iconv_encode_marc8.c index cfdd1be..e05874f 100644 --- a/src/iconv_encode_marc8.c +++ b/src/iconv_encode_marc8.c @@ -72,7 +72,7 @@ static unsigned long lookup_marc8(yaz_iconv_t cd, size_t utf8_outbytesleft = sizeof(utf8_buf)-1, r; int error_code; - if (x <= ' ') + if (x <= ' ' && x != 27) { *page_chr = ESC "(B"; return x;