[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: Bibtex and latex export
From: |
Eric S Fraga |
Subject: |
Re: [Orgmode] Re: Bibtex and latex export |
Date: |
Fri, 08 Oct 2010 07:23:12 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
On Thu, 07 Oct 2010 16:11:32 -0400, Nick Dokos <address@hidden> wrote:
>
> Eric S Fraga <address@hidden> wrote:
>
> > > echo /foo | egrep '^(/|[A-z]:/)'
> > >
> > > do you get the bad range end error message? If so, then your egrep
> > > is indeed stricter than mine.
> >
> > I do indeed:
> >
> > : egrep: Invalid range end.
> >
> > Very strange.
> >
> > > > > LC_ALL=C texi2dvi ...
> > > >
> > > > but this may have unexpected side effects? I'm not sure if any of the
> > > > latex suite use the locale...
> > >
> > > Yeah, perhaps...
> >
> > Interestingly, it *is* a locale issue:
> >
> > : $ echo /foo | LC_ALL=C egrep '^(/|[A-z]:/)'
> > : /foo
> >
>
> 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’s
> | 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
>
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...
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
- Re: [Orgmode] Re: Bibtex and latex export, (continued)
- Re: [Orgmode] Re: Bibtex and latex export, Nick Dokos, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, Eric S Fraga, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, Nick Dokos, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, Eric S Fraga, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, Nick Dokos, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, Eric S Fraga, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, Nick Dokos, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export,
Eric S Fraga <=
- [Orgmode] Re: Bibtex and latex export, Achim Gratz, 2010/10/07
- Re: [Orgmode] Re: Bibtex and latex export, suvayu ali, 2010/10/08
- Re: [Orgmode] Re: Bibtex and latex export, Eric S Fraga, 2010/10/08
- Re: [Orgmode] Re: Bibtex and latex export, suvayu ali, 2010/10/08
- Re: [Orgmode] Re: Bibtex and latex export, Nick Dokos, 2010/10/08
- Re: [Orgmode] Re: Bibtex and latex export, suvayu ali, 2010/10/08
- Re: [Orgmode] Re: Bibtex and latex export, Nick Dokos, 2010/10/08
- [Orgmode] Re: Bibtex and latex export, Achim Gratz, 2010/10/08
- Re: [Orgmode] Re: Bibtex and latex export, Eric S Fraga, 2010/10/08
- [Orgmode] Re: Bibtex and latex export, Achim Gratz, 2010/10/08