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
yaz-iconv: fix typos
[yaz-moved-to-github.git]
/
src
/
iconv_decode_danmarc.c
diff --git
a/src/iconv_decode_danmarc.c
b/src/iconv_decode_danmarc.c
index
0926dae
..
cf9e50c
100644
(file)
--- a/
src/iconv_decode_danmarc.c
+++ b/
src/iconv_decode_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-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-24,7
+24,7
@@
struct decoder_data {
unsigned long x_back;
};
unsigned long x_back;
};
-static unsigned long read_danmarc(yaz_iconv_t cd,
+static unsigned long read_danmarc(yaz_iconv_t cd,
yaz_iconv_decoder_t d,
unsigned char *inp,
size_t inbytesleft, size_t *no_read)
yaz_iconv_decoder_t d,
unsigned char *inp,
size_t inbytesleft, size_t *no_read)
@@
-57,14
+57,12
@@
static unsigned long read_danmarc(yaz_iconv_t cd,
*no_read = 2;
break;
case 0xe5: /* LATIN SMALL LETTER A WITH RING ABOVE */
*no_read = 2;
break;
case 0xe5: /* LATIN SMALL LETTER A WITH RING ABOVE */
- x = 'a';
- data->x_back = 'a';
- *no_read = 1;
+ x = 0xa733;
+ *no_read = 2;
break;
case 0xc5: /* LATIN CAPITAL LETTER A WITH RING ABOVE */
break;
case 0xc5: /* LATIN CAPITAL LETTER A WITH RING ABOVE */
- x = 'A';
- data->x_back = 'a';
- *no_read = 1;
+ x = 0xa732;
+ *no_read = 2;
break;
default:
if (inbytesleft < 5)
break;
default:
if (inbytesleft < 5)
@@
-105,7
+103,7
@@
void destroy_danmarc(yaz_iconv_decoder_t d)
yaz_iconv_decoder_t yaz_danmarc_decoder(const char *fromcode,
yaz_iconv_decoder_t d)
yaz_iconv_decoder_t yaz_danmarc_decoder(const char *fromcode,
yaz_iconv_decoder_t d)
-
+
{
if (!yaz_matchstr(fromcode, "danmarc"))
{
{
if (!yaz_matchstr(fromcode, "danmarc"))
{