bug#25336:

2017-01-02 Thread Paul Eggert
Zepp Lu wrote: $ printf '\x53\xef' | grep -aoP '\x53\xef' (no output, returns 1) $ printf '\x53\xc3\xaf' | grep -aoP '\x53\xef' Sï $ printf '\x53\xc3\xef' | grep -aoP '\x53\xef' (no output, returns 1) I don't see a bug here. PCRE patterns like \xef match code points, not bytes, so the PCRE no

bug#25336:

2017-01-02 Thread Zepp Lu
OS: Archlinux grep version: 2.27-1 Bug description: grep behaves weirdly when searching hex values. How to reproduce: $ printf '\x53\xef' | grep -aoP '\x53\xef' (no output, returns 1) $ printf '\x53\xc3\xaf' | grep -aoP '\x53\xef' Sï $ printf '\x53\xc3\xef' | grep -aoP '\x53\xef' (no output, retu