X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fadvancegreek.c;h=a207ca44f41fb36272a4465930653a0233301fec;hp=7c953d48070d098efc62908f49f40050921cac26;hb=5c0e243664a63c8522d400abbda6dc892cae4349;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/src/advancegreek.c b/src/advancegreek.c index 7c953d4..a207ca4 100644 --- a/src/advancegreek.c +++ b/src/advancegreek.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ /** @@ -357,7 +357,7 @@ static size_t write_advancegreek(yaz_iconv_t cd, yaz_iconv_encoder_t w, case 0x03c4 : out[k++]=0x94; break; case 0x03c5 : out[k++]=0x95; break; case 0x03c6 : out[k++]=0x96; break; - case 0x03c7 : out[k++]=0x96; break; + case 0x03c7 : out[k++]=0x97; break; case 0x03c8 : out[k++]=0x98; break; case 0x03c9 : out[k++]=0x99; break; default: @@ -366,7 +366,7 @@ static size_t write_advancegreek(yaz_iconv_t cd, yaz_iconv_encoder_t w, yaz_iconv_set_errno(cd, YAZ_ICONV_EILSEQ); return (size_t) -1; } - out[k++] = x; + out[k++] = (unsigned char ) x; break; } *outbytesleft -= k; @@ -399,7 +399,9 @@ yaz_iconv_decoder_t yaz_advancegreek_decoder(const char *name, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +