From 8508799fc20ead07aae07f5f29604719e96b4dda Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 5 Oct 2007 15:11:36 +0000 Subject: [PATCH] Changed blank (0x20) handling conversion to MARC-8. The conversion to MARC-8 now always escapes the BLANK character outside Basic ASCII. This is stricly speaking not necessary - blank is part of "all" pages (sets). But some tools cannot handle it. YAZ, however, treats blank as blank in all pages when MARC-8 is read (converted from). --- src/siconv.c | 4 +--- test/marccol1.u8.2.lst | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/siconv.c b/src/siconv.c index a770a6c..9e59038 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.45 2007-09-24 12:51:10 adam Exp $ + * $Id: siconv.c,v 1.46 2007-10-05 15:11:36 adam Exp $ */ /** * \file siconv.c @@ -1443,8 +1443,6 @@ static unsigned long lookup_marc8(yaz_iconv_t cd, cd->my_errno = YAZ_ICONV_EILSEQ; return 0; } - else if (x == ' ') - return x; else { unsigned char *inp; diff --git a/test/marccol1.u8.2.lst b/test/marccol1.u8.2.lst index 339b87d..557fdef 100644 --- a/test/marccol1.u8.2.lst +++ b/test/marccol1.u8.2.lst @@ -1,4 +1,4 @@ -01121cam a2200277 a 4500 +01127cam a2200277 a 4500 001 70813420 /AJ/r86 003 DLC 005 19871006084439.0 @@ -21,7 +21,7 @@ 880 4 $6 651-03/$1 $a 半田市 (Japan) 880 4 $6 651-04/$1 $a 半田市 (Japan) $x History $x Sources. -00879nam a2200229 a 4500 +00885nam a2200229 a 4500 001 75840215 /ACN/r86 003 DLC 005 19870219000000.0 -- 1.7.10.4