projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
419a8eb
)
Fixed UTF-8 reading (for 3 byte sequences).
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 10 Feb 2006 12:45:39 +0000
(12:45 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 10 Feb 2006 12:45:39 +0000
(12:45 +0000)
src/siconv.c
patch
|
blob
|
history
diff --git
a/src/siconv.c
b/src/siconv.c
index
9caf28c
..
8e062aa
100644
(file)
--- a/
src/siconv.c
+++ b/
src/siconv.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: siconv.c,v 1.16 2005-11-06 01:55:06 adam Exp $
+ * $Id: siconv.c,v 1.17 2006-02-10 12:45:39 adam Exp $
*/
/**
* \file siconv.c
@@
-133,7
+133,7
@@
static unsigned long yaz_read_UTF8 (yaz_iconv_t cd, unsigned char *inp,
else if (inp[0] <= 0xef && inbytesleft >= 3)
{
x = ((inp[0] & 0x0f) << 12) | ((inp[1] & 0x3f) << 6) |
- (inp[1] & 0x3f);
+ (inp[2] & 0x3f);
if (x >= 0x800)
*no_read = 3;
else