<div>Byte string regexp patterns containing bytes with the high bit set don&#39;t seem to work properly with any of the regexp procedures that match multiple times. For example...</div><div><br></div><div>This works as expected:</div>
<div><br></div><div>&gt; (regexp-split #rx#&quot;\x7f&quot; #&quot;hello\x7fworld&quot;)</div><div>(#&quot;hello&quot; #&quot;world&quot;)</div><div><br></div><div>But this does not:</div><div><br></div><div><div>&gt; (regexp-split #rx#&quot;\x80&quot; #&quot;hello\x80world&quot;)</div>
<div>(#&quot;hello\200world&quot;)</div><div><br></div><div><br></div><div>Similarly:</div><div><br></div><div><div>&gt; (regexp-match* #rx#&quot;\x7f&quot; #&quot;hello\x7fworld&quot;)</div><div>(#&quot;\177&quot;)</div>
<div><br></div><div>&gt; (regexp-match* #rx#&quot;\x80&quot; #&quot;hello\x80world&quot;)</div><div>()</div><div><br></div><div><br></div><div>This doesn&#39;t affect the procedures that only match once. For example, this works fine:</div>
<div><br></div><div><div>&gt; (regexp-match #rx#&quot;\x80&quot; #&quot;hello\x80world&quot;)</div><div>(#&quot;\200&quot;)</div><div><br></div><div><br></div><div>I can reproduce this behavior in 4.1.5 and 4.2.2.1, both on OS X 10.5.8.</div>
<div><br></div><div>-Jon</div><div><br></div></div></div></div>