projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MARC-8: allow all characters 0x01-0x20 YAZ-650
[yaz-moved-to-github.git]
/
src
/
iconv_encode_marc8.c
diff --git
a/src/iconv_encode_marc8.c
b/src/iconv_encode_marc8.c
index
e8434ff
..
cfdd1be
100644
(file)
--- a/
src/iconv_encode_marc8.c
+++ b/
src/iconv_encode_marc8.c
@@
-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 <= ' ')
+ {
+ *page_chr = ESC "(B";
+ return x;
+ }
r = yaz_write_UTF8_char(x, &utf8_outbuf, &utf8_outbytesleft, &error_code);
if (r == (size_t)(-1))
{