utf-8 encoding will "just work" (unless the gnu folk are
rearranging characters with the bucky bit set) or if
the result depends on knowing the width of a character,
e.g. in

a)      a character class
b)      matching a single character with ".".

for example for a file "fu" with these lines

        α0
        β0
        α1

(no leading tab) i get these results with no
local settings at all.

        ; grep δ fu
        δ0

works because as far as grep is concerned, the string
i asked for 03 b4 is in there.  this works, too

        ; egrep '(ε|δ)0' fu
        ε0
        δ0

and this works because there is a character before
"0" on the line:

        ; egrep '.0' fu
        ε0
        δ0

but this doesn't

        ; egrep '[αβ]0' fu
        ; egrep '^.0' fu

this is for gnu grep version

        ; egrep --version
        egrep (GNU grep) 2.5.1


- erik

Reply via email to