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
Windows: one NSI file again YAZ-848
[yaz-moved-to-github.git]
/
src
/
iconv_encode_danmarc.c
diff --git
a/src/iconv_encode_danmarc.c
b/src/iconv_encode_danmarc.c
index
467008a
..
200e2f5
100644
(file)
--- a/
src/iconv_encode_danmarc.c
+++ b/
src/iconv_encode_danmarc.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-25,7
+25,7
@@
static size_t write_danmarc(yaz_iconv_t cd, yaz_iconv_encoder_t en,
{
unsigned char *outp = (unsigned char *) *outbuf;
{
unsigned char *outp = (unsigned char *) *outbuf;
- if (x == '@' || x == '*' || x == 0xa4)
+ if (x == '@' || x == '*')
{
if (*outbytesleft < 2)
{
{
if (*outbytesleft < 2)
{
@@
-34,7
+34,7
@@
static size_t write_danmarc(yaz_iconv_t cd, yaz_iconv_encoder_t en,
}
*outp++ = '@';
(*outbytesleft)--;
}
*outp++ = '@';
(*outbytesleft)--;
- *outp++ = x;
+ *outp++ = (unsigned char) x;
(*outbytesleft)--;
}
else if (x <= 255)
(*outbytesleft)--;
}
else if (x <= 255)
@@
-44,7
+44,7
@@
static size_t write_danmarc(yaz_iconv_t cd, yaz_iconv_encoder_t en,
yaz_iconv_set_errno(cd, YAZ_ICONV_E2BIG);
return (size_t)(-1);
}
yaz_iconv_set_errno(cd, YAZ_ICONV_E2BIG);
return (size_t)(-1);
}
- *outp++ = x;
+ *outp++ = (unsigned char) x;
(*outbytesleft)--;
}
else
(*outbytesleft)--;
}
else