X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsiconv.c;h=d2b78be68ac9f2793160689bc7a5ec7ce1253d59;hb=2b929cf75020ee215393a655f0403c849fed5ea9;hp=1420e783f2ad04d8ce5115e72bf8995f8e8a1c1d;hpb=5d13a8684c8637334d17f2b0577fc511aa275477;p=yaz-moved-to-github.git diff --git a/src/siconv.c b/src/siconv.c index 1420e78..d2b78be 100644 --- a/src/siconv.c +++ b/src/siconv.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: siconv.c,v 1.41 2007-05-23 08:50:11 adam Exp $ + * $Id: siconv.c,v 1.42 2007-05-30 08:22:03 adam Exp $ */ /** * \file siconv.c @@ -1718,6 +1718,8 @@ yaz_iconv_t yaz_iconv_open (const char *tocode, const char *fromcode) cd->read_handle = yaz_read_advancegreek; else if (!yaz_matchstr(fromcode, "iso54281984")) cd->read_handle = yaz_read_iso5428_1984; + else if (!yaz_matchstr(fromcode, "iso5428:1984")) + cd->read_handle = yaz_read_iso5428_1984; #if HAVE_WCHAR_H else if (!yaz_matchstr(fromcode, "WCHAR_T")) cd->read_handle = yaz_read_wchar_t; @@ -1752,6 +1754,10 @@ yaz_iconv_t yaz_iconv_open (const char *tocode, const char *fromcode) { cd->write_handle = yaz_write_iso5428_1984; } + else if (!yaz_matchstr(tocode, "iso5428:1984")) + { + cd->write_handle = yaz_write_iso5428_1984; + } #if HAVE_WCHAR_H else if (!yaz_matchstr(tocode, "WCHAR_T")) cd->write_handle = yaz_write_wchar_t;