This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Critical Aix bootstrap error...


On Mon, 24 Aug 1998, Stefan Westerfeld wrote:
> echo nix | egrep '//|[  _]_IO|CTRL|^#define.NULL|^#e[nl][ds][ief]*[     ]+[!-.0-~]|^#[el]*if.*[^a-zA-Z0-9_][_a-ce-km-zA-Z][a-zA-Z0-9]'
> 
> on an Aix machine like that will result in an error message. The thing that
> is strange is that I only get error messages when I have set the locale
> to german (as I usually do) [LANG=de_DE].
> 
> You then get the message:
> 
>   Ungültiger Bereich innerhalb eines Ausdrucks zwischen [].

Indeed I could reproduce this on rs6000-ibm-aix3.2.5. For those
interested, the English version  of this error message is

  invalid range expression


A minimal test case is 

  echo nix | egrep '[0-~]'

i.e., the "~" seems to be the problem.


Finally, note that `man grep` on that AIX box says

  In an expression such as [a-z], the - (minus sign) cmlspecifies a range,
  according to the current collating sequence. A collating sequence may
  define equivalence classes for use in character ranges.

and fixincludes has

  # [!-.0-~] does not work properly on AIX 4.1.


Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]