[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash prints numeric values of unicode characters instead of their UT

From: Yuri
Subject: Re: bash prints numeric values of unicode characters instead of their UTF8 representations
Date: Tue, 28 Jun 2016 02:14:54 -0700
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0

On 02/07/2016 13:14, Chet Ramey wrote:
Sorry, I misread the autoconf macro.  This isn't the cause.  You should
look at config.log to see what happens when configure tests for iconv.


Sorry for the delay.

Unicode characters without the nls option in bash-4.3.46 are still a problem.

config.log seems to find iconv declaration fine, but it doesn't test for the actual library, see the log below. HAVE_ICONV is undefined. I think it comes from AM_GNU_GETTEXT.

The problem is that bash shouldn't even have an optional HAVE_ICONV. Since Unicode characters are the major feature, you iconv presence should be an unconditional requirement.
You probably need to use AM_ICONV and fail when it isn't present.

Please fix this bug.

---begin config.log---

configure:8117: checking for iconv
configure:8139: cc -o conftest -O2 -pipe -fno-omit-frame-pointer -DUSE_MKTEMP=1 -DUSE_MKSTEMP=1 -DIMPORT_FUNCTIONS_DEF=0 -Wl,-export-dynamic -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -DLIBICONV_PLUG -I/usr/local/include -fstack-protector conftest.c >&5
configure:8139: $? = 0
configure:8171: result: yes
configure:8192: checking for iconv declaration
configure:8221: cc -c -O2 -pipe -fno-omit-frame-pointer -DUSE_MKTEMP=1 -DUSE_MKSTEMP=1 -DIMPORT_FUNCTIONS_DEF=0 -Wl,-export-dynamic -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -DLIBICONV_PLUG conftest.c >&5
cc: warning: -Wl,-export-dynamic: 'linker' input unused
configure:8221: $? = 0
configure:8231: result:
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure:8243: checking for nl_langinfo and CODESET
---end config.log---


reply via email to

[Prev in Thread] Current Thread [Next in Thread]