summaryrefslogtreecommitdiffstats
path: root/lib/libiconv_modules/BIG5
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-04-01 10:36:11 +0000
committertijl <tijl@FreeBSD.org>2014-04-01 10:36:11 +0000
commit88044d5054a5a9ee1908c6ad4008b13d3884c0e1 (patch)
treef9b134d1c2e9aeb112253f7bcccc6d87c34301b9 /lib/libiconv_modules/BIG5
parent129b50ccf040c8abde55cf17aa9543018ae9caa8 (diff)
downloadFreeBSD-src-88044d5054a5a9ee1908c6ad4008b13d3884c0e1.zip
FreeBSD-src-88044d5054a5a9ee1908c6ad4008b13d3884c0e1.tar.gz
- In the libiconv module for ISO 2022 restore the original order of the
fields of a private struct such that variables of this type are initialised correctly. Fixes conversion from ISO 2022. Also do this in the BIG5 module to prevent similar errors in the future. - In the libiconv module for EUC-TW replace 2^cs with 1<<cs. Fixes conversion from EUC-TW. - Synchronise iconv code with NetBSD. In most cases this only updates the RCS id because the changes are already there or are NetBSD specific. + libc/iconv/citrus_csmapper.c: Add a comment. + libc/iconv/citrus_db_factory.c: Remove put16(). + libc/iconv/citrus_iconv.c: Return EINVAL on error. + libc/iconv/citrus_mapper.c: Return EINVAL on error. + libc/iconv/citrus_memstream.c: Fix type of a variable. + libc/iconv/citrus_prop.h: Sync definition of _CITRUS_PROP_HINT_END. + libc/iconv/citrus_stdenc.c: Return EINVAL on error. + libiconv_modules/mapper_std/citrus_mapper_std.c: Plug memory leak. Obtained from: NetBSD MFC after: 2 weeks
Diffstat (limited to 'lib/libiconv_modules/BIG5')
-rw-r--r--lib/libiconv_modules/BIG5/citrus_big5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libiconv_modules/BIG5/citrus_big5.c b/lib/libiconv_modules/BIG5/citrus_big5.c
index d0e7047..a8376eb 100644
--- a/lib/libiconv_modules/BIG5/citrus_big5.c
+++ b/lib/libiconv_modules/BIG5/citrus_big5.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $NetBSD: citrus_big5.c,v 1.12 2008/06/14 16:01:07 tnozaki Exp $ */
+/* $NetBSD: citrus_big5.c,v 1.13 2011/05/23 14:53:46 joerg Exp $ */
/*-
* Copyright (c)2002, 2006 Citrus Project,
@@ -92,8 +92,8 @@ typedef struct {
typedef struct _BIG5Exclude {
TAILQ_ENTRY(_BIG5Exclude) entry;
- wint_t end;
wint_t start;
+ wint_t end;
} _BIG5Exclude;
typedef TAILQ_HEAD(_BIG5ExcludeList, _BIG5Exclude) _BIG5ExcludeList;
@@ -358,7 +358,7 @@ _citrus_BIG5_wcrtomb_priv(_BIG5EncodingInfo * __restrict ei,
size_t n, wchar_t wc, _BIG5State * __restrict psenc __unused,
size_t * __restrict nresult)
{
- unsigned char l;
+ size_t l;
int ret;
/* check invalid sequence */
OpenPOWER on IntegriCloud