Re: [Rd] texi2dvi / egrep issue shows (a.o.) up in R-alpha

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue, 22 Mar 2011 09:02:58 +0000 (GMT)

After some offline checks, another workaround is to set LC_COLLATE=C, and we'll arrange for tools::texi2dvi() to do that.

On Tue, 22 Mar 2011, Tobias Verbeke wrote:

> On 03/22/2011 08:41 AM, Martin Maechler wrote:

>>>>>>> Tobias Verbeke<tobias.verbeke_at_openanalytics.eu>
>>>>>>> on Mon, 21 Mar 2011 23:45:33 +0100 writes:
>>
>> > L.S. I noticed weird tools::texi2dvi behaviour on R-alpha
>> > when specifying an absolute path to the .tex file.
>>
>> > The same phenomenon also appears to occur on R-2.12.2, so
>> > maybe the issue is independent of R.
>>
>> Yes. I think it's independent of R.
>>
>> In any case, there's been a bug in the (Unix/Linux/teTeX/....)
>> texi2dvi sh script,
>> a bug which I think typically only bites if you work in non-ASCII
>> locales -- as you and I, eg.
>>
>> Here's the patch that I have had in place for quite a while :
>>
>> MM_at_lynne$ diff -ubBw /usr/bin/texi2dvi /usr/local/bin/scripts/texi2dvi
>> --- /usr/bin/texi2dvi 2011-01-11 15:33:52.000000000 +0100
>> +++ /usr/local/bin/scripts/texi2dvi 2010-07-09 08:32:36.000025000 +0200
>> @@ -33,7 +33,7 @@
>> set -e
>>
>> # This string is expanded by rcs automatically when this file is checked
>> out.
>> -rcs_revision='$Revision: 1.135 $'
>> +rcs_revision='$Revision: 1.135__mod.SfS_ETHZ $'
>> rcs_version=`set - $rcs_revision; echo $2`
>> program=`echo $0 | sed -e 's!.*/!!'`
>>
>> @@ -1683,7 +1683,7 @@
>>
>> # 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-Za-z]:/)'>&6 \
>> + echo "$command_line_filename" | $EGREP '^(/|[[:alpha:]]:/)'>&6 \
>> || command_line_filename="./$command_line_filename"
>>
>> # See if the file exists. If it doesn't we're in trouble since, even
>> MM_at_lynne$
>
> Many thanks, Martin. That was indeed the issue and the patch
> works perfectly fine.
>
> Kind regards,
> Tobias
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 22 Mar 2011 - 09:06:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 22 Mar 2011 - 20:00:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive