Wrong usage of ECHO_N and ECHO_C in icu-config

Description

Hi,

when I call "icu-config --version" I get the following result:

This is because during configure-time the shell is changed from native bourne-shell ("sh") [is also used for icu-config|which] to "bash":

but icu-config is executed only in pure "sh". The echo built into "bash" knows "-n", wheres the bourne shell just calls /usr/bin/echo which requires "\c" instead of "-n":

This is all on Solaris 9 Sparc where /usr/bin/sh is not bash.

Activity

Show:

UnicodeBot July 1, 2018 at 12:05 AM

Trac Comment 5 by —2016-10-05T23:14:06.988Z

Milestone 4.5.1 deleted

UnicodeBot July 1, 2018 at 12:05 AM

Trac Comment 3 by —2010-06-17T23:35:20.000Z

The problem seems to be how we are getting ECHO_N and ECHO_C from autoconf. I added a new check that is similar to the way autoconf is doing it but uses `/bin/sh -c "echo ..."` instead of `echo ...` to determine which ECHO_N/ECHO_C to use in the icu-config script.

Fixed

Details

Assignee

Reporter

Components

Priority

Time Needed

Hours

Fix versions

Created June 28, 2018 at 5:17 PM
Updated October 3, 2018 at 10:55 PM
Resolved July 1, 2018 at 8:52 PM