bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 2010-05-24; autogen.sh from CVS fails with 'redirection


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 2010-05-24; autogen.sh from CVS fails with 'redirection unexpected'
Date: Thu, 27 May 2010 18:13:59 +0200

* David Engster (2010-05-24) writes:

> The autogen.sh from a current CVS checkout fails:
>
> [...]
> echo @set VERSION 2010-05-24�che <address@hidden> >version.texi
> /bin/sh: Syntax error: redirection unexpected
> make: *** [version.texi] Error 2
> Error running make in doc
>
>
> The reason for this is that I'm working in a UTF-8 environment, but the
> ChangeLog file has iso-8859-1 encoding. Due to the special characters
> in the committer's name the sed-script fails.
>
> One could solve this issue by setting LANG when calling sed, for example:
>
>     AUCTEXDATE=`LANG=en_US.iso88591 sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' 
> ChangeLog`
>
> But maybe there's a better solution?

Something like

$ grep -m 1 -o '^[-0-9][-0-9]*' ChangeLog

seems to work.  But IIRC we avoid grep because it is not as commonly
available as sed.

At the moment I think it is not necessary to change autogen.sh because
the problem will go away when the next check-in is made by a person with
a name without non-ascii characters.  And we currently don't have many
contributors with non-ascii characters in their names.

-- 
Ralf



reply via email to

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