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
/
siconv.c
diff --git
a/src/siconv.c
b/src/siconv.c
index
596fe25
..
42220e2
100644
(file)
--- a/
src/siconv.c
+++ b/
src/siconv.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.
*/
/**
@@
-32,12
+32,6
@@
struct yaz_iconv_struct {
int my_errno;
int init_flag;
struct yaz_iconv_struct {
int my_errno;
int init_flag;
-#if 0
- size_t (*init_handle)(yaz_iconv_t cd, unsigned char *inbuf,
- size_t inbytesleft, size_t *no_read);
- unsigned long (*read_handle)(yaz_iconv_t cd, unsigned char *inbuf,
- size_t inbytesleft, size_t *no_read);
-#endif
size_t no_read_x;
unsigned long unget_x;
#if HAVE_ICONV_H
size_t no_read_x;
unsigned long unget_x;
#if HAVE_ICONV_H
@@
-70,6
+64,8
@@
static int prepare_encoders(yaz_iconv_t cd, const char *tocode)
return 1;
if (yaz_wchar_encoder(tocode, &cd->encoder))
return 1;
return 1;
if (yaz_wchar_encoder(tocode, &cd->encoder))
return 1;
+ if (yaz_danmarc_encoder(tocode, &cd->encoder))
+ return 1;
return 0;
}
return 0;
}