autoconf
[Top][All Lists]
Advanced

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

Re: git-version-gen not EBCDIC compatible


From: Eric Blake
Subject: Re: git-version-gen not EBCDIC compatible
Date: Mon, 26 Apr 2010 09:01:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4

On 04/26/2010 07:16 AM, Steve Goetze wrote:
> The following line in m4-1.4.14/build-aux/git-version-gen causes a build
> failure on z/OS (EBCDIC codeset):
> 
> # Omit the trailing newline, so that m4_esyscmd can use the result directly.
> echo "$v" | tr -d '\012'
> 
> Octal 12 does not represent new line in EBCDIC.  Is there a reason that this
> can't be:
> 
> # Omit the trailing newline, so that m4_esyscmd can use the result directly.
> echo "$v" | tr -d '\n'

Superficially, because /bin/tr on Solaris does not understand '\n'.  But
that's not a fatal limitation, as Solaris does ship with other tr that
do understand it.  It's just more work to make sure you are using a
working tr.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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