Re: Comand token too long?

2011-08-14 Thread Karl Hammar
Reinhold Kainhofer:
> Am Sunday, 14. August 2011, 03:36:05 schrieb Karl Hammar:
> > Works here:
> Doesn't work here on a German Kubuntu system:
...
> > $ echo $LANG
> > C
> $ echo $LANG
> de_AT.UTF-8

$ LANG=de_AT.UTF-8
$ echo 'z:/' | egrep '^(/|[A-z]:/)'
egrep: Das Ende des angegebenen Intervalls ist nicht gültig
$ echo 'z:/' | egrep '^(/|[A-Za-z]:/)'
z:/
$ export LC_ALL=C
$ echo 'z:/' | egrep '^(/|[A-z]:/)'
z:/
$

So that means that this bug is due to collation order, and as
you wrote yesterday the interval should be changed to A-Za-z.

The egrep thing is there to detect if a filename is absolute,
i.e. starting with "/" as in "/usr/bin/true" (unix style), or
"C:/" (or another device letter) as in
"C:/WINDOWS/SYSTEM32/FILE.DLL" (Dos/Windows style).

As written in "man grep":

 To obtain the traditional interpretation of bracket
 expressions, you can use the C locale by setting the
 LC_ALL environment variable to the value C.

we can go around this bug by setting LC_ALL to C.

This bug is fixed in [1]:

-  echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
+  echo "$command_line_filename" | LC_ALL=C $EGREP '^(/|[A-Za-z]:/)' >&6 \

We might go around the bug with the attaced patch (texi2dvi is called 
from texi2pdf), but I have not had time to test it.

Regards,
/Karl Hammar

[1] http://ftp.gnu.org/gnu/texinfo/texi2dvi

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57

diff --git a/make/doc-i18n-root-rules.make b/make/doc-i18n-root-rules.make
index f510ded..83f2ee6 100644
--- a/make/doc-i18n-root-rules.make
+++ b/make/doc-i18n-root-rules.make
@@ -18,7 +18,7 @@ $(top-build-dir)/Documentation/$(outdir)/%.$(ISOLANG).html: $(outdir)/%.texi $(X
 
 $(top-build-dir)/Documentation/$(outdir)/%.$(ISOLANG).pdf: $(outdir)/%.texi
 	cd $(outdir) && \
-	texi2pdf $(TEXI2PDF_FLAGS) $(TEXINFO_PAPERSIZE_OPTION) $*.texi && \
+	LC_ALL=C texi2pdf $(TEXI2PDF_FLAGS) $(TEXINFO_PAPERSIZE_OPTION) $*.texi && \
 	mkdir -p $(dir $@) && mv $*.pdf $@
 
 $(outdir)/version.%: $(top-src-dir)/VERSION___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Comand token too long?

2011-08-13 Thread Reinhold Kainhofer
Am Sunday, 14. August 2011, 03:36:05 schrieb Karl Hammar:
> Works here:

Doesn't work here on a German Kubuntu system:

> $ echo '/usr/' | egrep '^(/|[A-z]:/)'
> /usr/

$ echo '/usr/' | egrep '^(/|[A-z]:/)'
egrep: Das Ende des angegebenen Intervalls ist nicht gültig

(No output; same result for all the other examples you gave)

> $ egrep --version | head -1
> GNU grep 2.6.3

$ egrep --version | head -1
GNU grep 2.6.3

> $ echo $LANG
> C

$ echo $LANG
de_AT.UTF-8


Cheers,
Reinhold


-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Comand token too long?

2011-08-13 Thread Karl Hammar
Francisco Vila:
> 2011/8/13 Francisco Vila :
> > Hello, does anybody what this error means?
> >
> > cd Documentation/
> > cd ./out-www; texi2pdf -I ./out-www -I ../out -I .. -I .. --quiet  
> > notation.texi
> > egrep: Invalid range end
> 
> This is caused by line 1713 of /usr/bin/texi2dvi  (GNU Texinfo 4.13)
> 1.135 in my system,
> 
>  # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
>   # prepend `./' in order to avoid that the tools take it as an option.
>   echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
>   || command_line_filename="./$command_line_filename"
> 
> and [A-z] is an invalid range.

Works here:

$ echo '/usr/' | egrep '^(/|[A-z]:/)'
/usr/
$ echo 'B:/' | egrep '^(/|[A-z]:/)'
B:/
$ echo 'z:/' | egrep '^(/|[A-z]:/)'
z:/
$ echo 'bin/' | egrep '^(/|[A-z]:/)'
$ egrep --version | head -1
GNU grep 2.6.3
$ echo $LANG 
C
$

[A-z] is a valid range in the C locale. Maybe you have a locale with a
sorting order where z comes before A.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Comand token too long?

2011-08-13 Thread Werner LEMBERG

>> Hello, does anybody what this error means?
>> 
>> cd Documentation/
>> cd ./out-www; texi2pdf -I ./out-www -I ../out -I .. -I .. --quiet 
>> notation.texi egrep: Invalid range end
> 
> Bug in texi2dvi. egrep doesn't like a range [A-z]... Probably needs
> to be changed to [A-Za-z]?

Fixed already in texinfo's CVS (since 2010-03-30).

We might add the CVS version of texi2dvi to lilypond...


Werner

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Comand token too long?

2011-08-13 Thread Reinhold Kainhofer
Am Saturday, 13. August 2011, 21:05:13 schrieb Francisco Vila:
> Hello, does anybody what this error means?
> 
> cd Documentation/
> cd ./out-www; texi2pdf -I ./out-www -I ../out -I .. -I .. --quiet 
> notation.texi egrep: Invalid range end

Bug in texi2dvi. egrep doesn't like a range [A-z]... Probably needs to be 
changed to [A-Za-z]?

> Error (196): Command token too long
> Error (196): Command token too long
> 
> Doc compilation ends successfuly, but an error is an error.

Yes, I tried to debug it a few days ago. The problem is that some of the 
generated PDF files for a system are somehow broken. I haven't found out what 
exactly is the problem. Attached is a stripped down example.

Cheers,
Reinhold

-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
\input texinfo
@comment  @setfilename collated-files.tely.info
@comment  @settitle LilyPond Regression Tests

@documentencoding utf-8

@comment  @node Top, , , (dir)
@comment  @top LilyPond Regression Tests

@c generated from input/regression/page-break-turn-toplevel.ly
@image{lily-1cae1978-4}

@bye


lily-1cae1978-4.pdf
Description: Adobe PDF document
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Comand token too long?

2011-08-13 Thread Francisco Vila
2011/8/13 Francisco Vila :
> Hello, does anybody what this error means?
>
> cd Documentation/
> cd ./out-www; texi2pdf -I ./out-www -I ../out -I .. -I .. --quiet  
> notation.texi
> egrep: Invalid range end

This is caused by line 1713 of /usr/bin/texi2dvi  (GNU Texinfo 4.13)
1.135 in my system,

 # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
  # prepend `./' in order to avoid that the tools take it as an option.
  echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
  || command_line_filename="./$command_line_filename"

and [A-z] is an invalid range.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Comand token too long?

2011-08-13 Thread Francisco Vila
Hello, does anybody what this error means?

cd Documentation/
cd ./out-www; texi2pdf -I ./out-www -I ../out -I .. -I .. --quiet  notation.texi
egrep: Invalid range end
Error (196): Command token too long
Error (196): Command token too long

Doc compilation ends successfuly, but an error is an error.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel