autoconf
[Top][All Lists]
Advanced

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

Re: Issue with AS_TR_CPP, m4_cr_all and EBCDIC codeset


From: Eric Blake
Subject: Re: Issue with AS_TR_CPP, m4_cr_all and EBCDIC codeset
Date: Wed, 07 Apr 2010 06:55:00 -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/06/2010 11:02 PM, Ralf Wildenhues wrote:
> Hello,
> 
> * Eric Blake wrote on Sat, Apr 03, 2010 at 01:32:45AM CEST:
>> +    Fix m4_cr_all for EBCDIC.
>> +    * lib/m4sugar/m4sugar.m4 (m4_cr_all): Swap * and $, so that we
>> +    don't end up with $* in EBCDIC.
>> +    Reported by Steve Goetze.
> 
> thanks for working on this!
> 
>>  m4_define([m4_cr_all],
>>  m4_translit(m4_dquote(m4_format(m4_dquote(m4_for(
>> -  ,1,255,,[[%c]]))m4_for([i],1,255,,[,i]))), [-])-)
>> +  ,1,255,,[[%c]]))m4_for([i],1,255,,[,i]))), [$*-], [*$])-)
> 
> Reading the patch, I wonder why the $* in the second argument to
> m4_translit does not ever get expanded to something undesirable?

Because it is at the top level.  That is, we are NOT inside any
m4_define/AC_DEFUN, but this is being parsed immediately by m4.  $* only
expands into arguments when you are expanding a defined macro that has
arguments.

-- 
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]