From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: Bibtex and latex export Date: Thu, 07 Oct 2010 16:11:32 -0400 Message-ID: <7672.1286482292@gamaville.dokosmarshall.org> References: <4C9122FE.1080306@ccbr.umn.edu> <87aamra78p.fsf@mundaneum.com> <87pqvntldc.wl%ucecesf@ucl.ac.uk> <87d3rni6ea.fsf@Rainer.invalid> <87mxqqpjcf.wl%ucecesf@ucl.ac.uk> <18908.1286458199@gamaville.dokosmarshall.org> <87zkuqdrzr.wl%ucecesf@ucl.ac.uk> <21850.1286461345@gamaville.dokosmarshall.org> <87vd5edqjf.wl%ucecesf@ucl.ac.uk> <22913.1286462272@gamaville.dokosmarshall.org> <87iq1dok6h.wl%ucecesf@ucl.ac.uk> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=42822 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3wof-0008Kg-Eu for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 16:11:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3woe-00037j-Be for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 16:11:49 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:41999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3woe-00037d-5i for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 16:11:48 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L9X00IK9S38BEF0@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 15:11:33 -0500 (CDT) In-reply-to: Message from Eric S Fraga of "Thu\, 07 Oct 2010 20\:51\:50 BST." <87iq1dok6h.wl%ucecesf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Eric S Fraga wrote: > > echo /foo | egrep '^(/|[A-z]:/)' > >=20 > > do you get the bad range end error message? If so, then your egrep > > is indeed stricter than mine. >=20 > I do indeed: >=20 > : egrep: Invalid range end. >=20 > Very strange. >=20 > > > > LC_ALL=3DC texi2dvi ... > > >=20 > > > but this may have unexpected side effects? I'm not sure if any of the > > > latex suite use the locale... > >=20 > > Yeah, perhaps... >=20 > Interestingly, it *is* a locale issue: >=20 > : $ echo /foo | LC_ALL=3DC egrep '^(/|[A-z]:/)' > : /foo >=20 Yup: the egrep man page says ,---- | Within a bracket expression, a range expression consists of two | characters separated by a hyphen. It matches any single character that | sorts between the two characters, inclusive, using the locale=E2=80=99s | collating sequence and character set. For example, in the default C | locale, [a-d] is equivalent to [abcd]. Many locales sort characters in | dictionary order, and in these locales [a-d] is typically not equivalent | to [abcd]; it might be equivalent to [aBbCcDd], for example. 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. `---- So as Achim pointed out, unless texi2dvi explicitly specifies the locale for egrep, that regexp is busted. Even [A-Za-z] is busted in the absence of a locale: it would have to be something like [:alpha:], although I'm not sure what DOS allows/requires as a drive prefix. And even in the C locale, [A-z] allows non-letters which, I'm pretty sure, cannot be used as drive prefixes. Nick