From 3a5ace8027006dd40c3d8c467dd39751161c5146 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 18 Jan 2014 15:21:41 +0000 Subject: [PATCH] revert previous, it causes other problem and I cannot easily debug it. --- lib/libc/citrus/modules/citrus_euc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libc/citrus/modules/citrus_euc.c b/lib/libc/citrus/modules/citrus_euc.c index 92fb79e49d27..acb2bfa68c65 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 #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 @@ -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)