sed: RE error: illegal byte sequence
I get this error when building pavucontrol 6.0 on macOS:
/opt/local/bin/meson --internal exe --capture doc/README -- /opt/local/var/macports/build/_Users_user_.ports_audio_pavucontrol/pavucontrol/work/pavucontrol-6.0/doc/./html2txt doc/README.html
--- stderr ---
sed: RE error: illegal byte sequence
This is due to sed choking on some non-UTF8 character. The line where it fails:
Kazakh, Norwegian Bokm?l, Sinhala, Slovenian
As you can see lynx botches the UTF-8 character. To resolve this issue and ensure lynx produces a UTF-8 file, I changed lynx --dump
in html2txt
to lynx --dump --display-charset utf-8
.