On Thu, Nov 19, 2009 at 5:18 PM, Paolo Bonzini <[email protected]> wrote: > --binary is strictly for Windows support. There is already one such > mode, it's called LANG=C.
I didn't think about that. Thanks. > From http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html > > "A period ( '.' ), when used outside a bracket expression, is a BRE > that shall match any character in the supported character set except > NUL." My point here is that current implementation of regexes makes '.' NOT match some sequences. And that is very nasty, because it is expected that period will match anything. $ printf 'aaa\x80bbb' | sed -e 's/^.*$/x/g' | xxd - 0000000: 6161 6180 6262 62 aaa.bbb The line contained '\x80' => no match. Dmitri -- main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if (j){printf("%d\n",i);}}} /*Dmitri Gribenko <[email protected]>*/ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

