Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/citrus/modules revert previous, it causes other pro...
details: https://anonhg.NetBSD.org/src/rev/667579e7d452
branches: trunk
changeset: 326100:667579e7d452
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 18 15:21:41 2014 +0000
description:
revert previous, it causes other problem and I cannot easily debug it.
diffstat:
lib/libc/citrus/modules/citrus_euc.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r e5e7b0f2c59c -r 667579e7d452 lib/libc/citrus/modules/citrus_euc.c
--- a/lib/libc/citrus/modules/citrus_euc.c Sat Jan 18 15:15:16 2014 +0000
+++ b/lib/libc/citrus/modules/citrus_euc.c Sat Jan 18 15:21:41 2014 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index