X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficonv_encode_wchar.c;h=70dae3df372403c22747b50c19e15490c587f379;hp=7145055fbe8f9a79c1848deb9705d7ce0e23afab;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hpb=7b27a8f378d73a86e8ff5e4fa3285117362481c5 diff --git a/src/iconv_encode_wchar.c b/src/iconv_encode_wchar.c index 7145055..70dae3d 100644 --- a/src/iconv_encode_wchar.c +++ b/src/iconv_encode_wchar.c @@ -52,7 +52,7 @@ static size_t write_wchar_t(yaz_iconv_t cd, yaz_iconv_encoder_t en, yaz_iconv_encoder_t yaz_wchar_encoder(const char *tocode, yaz_iconv_encoder_t e) - + { #if HAVE_WCHAR_H if (!yaz_matchstr(tocode, "wchar_t")) @@ -70,7 +70,7 @@ static unsigned long read_wchar_t(yaz_iconv_t cd, yaz_iconv_decoder_t d, size_t inbytesleft, size_t *no_read) { unsigned long x = 0; - + if (inbytesleft < sizeof(wchar_t)) { yaz_iconv_set_errno(cd, YAZ_ICONV_EINVAL); /* incomplete input */ @@ -89,7 +89,7 @@ static unsigned long read_wchar_t(yaz_iconv_t cd, yaz_iconv_decoder_t d, yaz_iconv_decoder_t yaz_wchar_decoder(const char *fromcode, yaz_iconv_decoder_t d) - + { #if HAVE_WCHAR_H if (!yaz_matchstr(fromcode, "wchar_t"))