sed dumps core in new multibyte code

Issue #78 resolved
Garrett D'Amore repo owner created an issue

This tracks illumos 5158 : http://www.illumos.org/issues/5158

Example script that breaks :

echo x | sed 'y%,%,%'

Root problem is that 4th argument (ps) to mbsrtowcs() is null. This is specifically permitted. We need to assign this to an mbstate variable (static) at this time.

Comments (1)

  1. Log in to comment