summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-01-18 15:21:41 +0000
committerchristos <christos@NetBSD.org>2014-01-18 15:21:41 +0000
commitb5ccdd779d7a46c57ffe7cbf7de93e28ed2602d7 (patch)
tree59bce91c31af3805c115c9c063439a5232e16541 /lib
parent033884f514446381ce03a462c2200fae0c4248c9 (diff)
revert previous, it causes other problem and I cannot easily debug it.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/citrus/modules/citrus_euc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/citrus/modules/citrus_euc.c b/lib/libc/citrus/modules/citrus_euc.c
index 92fb79e49d2..acb2bfa68c6 100644
--- a/lib/libc/citrus/modules/citrus_euc.c
+++ b/lib/libc/citrus/modules/citrus_euc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: citrus_euc.c,v 1.16 2014/01/16 20:28:51 christos Exp $ */
+/* $NetBSD: citrus_euc.c,v 1.17 2014/01/18 15:21:41 christos Exp $ */
/*-
* Copyright (c)2002 Citrus Project,
@@ -60,7 +60,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_euc.c,v 1.16 2014/01/16 20:28:51 christos Exp $");
+__RCSID("$NetBSD: citrus_euc.c,v 1.17 2014/01/18 15:21:41 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
@@ -273,8 +273,7 @@ _citrus_EUC_mbrtowc_priv(_EUCEncodingInfo *ei, wchar_t *pwc, const char **s,
wchar = 0;
while (len-- > 0)
wchar = (wchar << 8) | (*s1++ & 0xff);
- if (wchar != (wchar & ~ei->mask) | ei->bits[cs])
- goto encoding_error;
+ wchar = (wchar & ~ei->mask) | ei->bits[cs];
psenc->chlen = 0;
if (pwc)