Critical Aix bootstrap error...

Gerald Pfeifer
Tue Aug 25 11:48:00 GMT 1998

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 Pfeifer (Jerry)      Vienna University of Technology

More information about the Gcc-patches mailing list