From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: Bibtex and latex export Date: Fri, 08 Oct 2010 07:23:12 +0100 Message-ID: <871v81kxtb.wl%ucecesf@ucl.ac.uk> 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> <7672.1286482292@gamaville.dokosmarshall.org> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Oct__8_07:23:12_2010-1" Return-path: Received: from [140.186.70.92] (port=58003 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P47FI-0008IB-H6 for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 03:20:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P47FD-0006hH-BU for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 03:20:00 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:47497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P47FD-0006gt-6M for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 03:19:55 -0400 In-Reply-To: <7672.1286482292@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org --Multipart_Fri_Oct__8_07:23:12_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 07 Oct 2010 16:11:32 -0400, Nick Dokos wrot= e: >=20 > Eric S Fraga wrote: >=20 > > > 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 >=20 > Yup: the egrep man page says >=20 > ,---- > | 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. > `---- >=20 > 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. >=20 > Nick >=20 Okay, I think this has convinced me to file a bug report. I'll start with Debian's system (reporting a bug against the texinfo package) and hope it filters upstream appropriately. texi2dvi definitely does not specify the locale for egrep. [:alpha:] is probably the right choice from the little I know about DOS... --Multipart_Fri_Oct__8_07:23:12_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Fri_Oct__8_07:23:12_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Fri_Oct__8_07:23:12_2010-1--