summaryrefslogtreecommitdiffstats
path: root/lib/libc/iconv/Makefile.inc
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-11-29 19:44:30 +0000
committergjb <gjb@FreeBSD.org>2013-11-29 19:44:30 +0000
commit79d300c715848b1fff97d4e74e56c9c1b079e5b0 (patch)
tree617b6871ac0e81d0dfbf5a38172aed46e8dc844c /lib/libc/iconv/Makefile.inc
parent3dff623eb742454b39c54adaaca545d1638dcfd8 (diff)
downloadFreeBSD-src-79d300c715848b1fff97d4e74e56c9c1b079e5b0.zip
FreeBSD-src-79d300c715848b1fff97d4e74e56c9c1b079e5b0.tar.gz
MFC r258537, r258587:
r258537 (hrs): Add ICONV_{GET,SET}_ILSEQ_INVALID iconvctl. GNU iconv returns EILSEQ when there is an invalid character in the output codeset while it is valid in the input. However, POSIX requires iconv() to perform an implementation-defined conversion on the character. So, Citrus iconv converts such a character to a special character which means it is invalid in the output codeset. This is not a problem in most cases but some software like libxml2 depends on GNU's behavior to determine if a character is output as-is or another form such as a character entity (&#NNN;). r258587 (peter): Move the iconv wrapper source from libc_nonshared to libc/iconv so that it is all in the one place again. Rename libc/iconv/iconv.c to bsd_iconv.c. Compile the wrappers into libc.a so that WITHOUT_DYNAMICROOT works again. Approved by: re (kib) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libc/iconv/Makefile.inc')
-rw-r--r--lib/libc/iconv/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/iconv/Makefile.inc b/lib/libc/iconv/Makefile.inc
index 0e83902..98012ed 100644
--- a/lib/libc/iconv/Makefile.inc
+++ b/lib/libc/iconv/Makefile.inc
@@ -14,5 +14,9 @@ SRCS+= citrus_bcs.c citrus_bcs_strtol.c citrus_bcs_strtoul.c \
citrus_esdb.c citrus_hash.c citrus_iconv.c citrus_lookup.c \
citrus_lookup_factory.c citrus_mapper.c citrus_memstream.c \
citrus_mmap.c citrus_module.c citrus_none.c citrus_pivot_factory.c \
- citrus_prop.c citrus_stdenc.c iconv.c iconv_compat.c
+ citrus_prop.c citrus_stdenc.c bsd_iconv.c iconv_compat.c
SYM_MAPS+= ${.CURDIR}/iconv/Symbol.map
+
+.if ${MK_ICONV} == yes
+.include "${.CURDIR}/../libc_nonshared/Makefile.iconv"
+.endif
OpenPOWER on IntegriCloud