[Top][All Lists]

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

texi2dvi: avoid locale-specific warning from egrep

From: Ralf Wildenhues
Subject: texi2dvi: avoid locale-specific warning from egrep
Date: Sat, 26 Feb 2011 15:09:01 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hi Karl, all,

my updated Debian greeted with me with more localized behavior today,
which uncovered a warning while building some GNU package.  I'm not sure
if you want to sanitize the locale for texi2dvi, but even if you do, I'm
fairly sure you don't want to use A-z as a range.  Hmm, I see this was
fixed upstream already, on 2010-03-30.  But it still isn't right: since
texi2dvi doesn't sanitize the locale, egrep ranges might not be what you
expect; IOW, A-Za-z might include other characters.  I really don't know
if [[:alpha:]] is portable enough now though.  You could use
  LC_ALL=C egrep

instead of egrep, if you don't want the C locale elsewhere.

While I tried to find out whether above was fixed yet, I tried to build
current CVS (when do you enter the new millenium and move to git or bzr
or hg by the way? ;-), only to fail like this:

make[2]: Entering directory `/tmp/texinfo/build/doc'
Updating ../../texinfo/doc/version.texi
restore=: && backupdir=".am$$" && \
        rm -rf $backupdir && mkdir $backupdir && \
        if (..//makeinfo/makeinfo --version) >/dev/null 2>&1; then \
          for f in texinfo texinfo-[0-9] texinfo-[0-9][0-9] texinfo.i[0-9] 
texinfo.i[0-9][0-9]; do \
            if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
          done; \
        else :; fi && \
        if ..//makeinfo/makeinfo   -I ../../texinfo/doc \
         -o texinfo `test -f 'texinfo.txi' || echo 
'../../texinfo/doc/'`texinfo.txi; \
        then \
          rc=0; \
        else \
          rc=$?; \
          $restore $backupdir/* `echo "./texinfo" | sed 's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
../../texinfo/doc/texinfo.txi:10479: Unbekannter Befehl „codequoteundirected“.
../../texinfo/doc/texinfo.txi:10481: Unbekannter Befehl „codequoteundirected“.
../../texinfo/doc/texinfo.txi:10488: Unbekannter Befehl „codequotebacktick“.
../../texinfo/doc/texinfo.txi:10490: Unbekannter Befehl „codequotebacktick“.
makeinfo: Entferne Ausgabe-Datei „texinfo“ wegen Fehler; --force benutzen, um 
diese beizubehalten.
make[2]: *** [texinfo] Fehler 1
make[2]: Leaving directory `/tmp/texinfo/build/doc'

"Unbekannter Befehl" means "unknown command", and I suppose you can
infer the rest.

Cheers, and thanks for your ongoing maintenance of Texinfo,

reply via email to

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