[Bug 11676] New: sed: RE error: illegal byte sequence

bugzilla at busybox.net bugzilla at busybox.net
Fri Feb 15 16:27:25 UTC 2019


https://bugs.busybox.net/show_bug.cgi?id=11676

            Bug ID: 11676
           Summary: sed: RE error: illegal byte sequence
           Product: Busybox
           Version: 1.30.x
          Hardware: All
                OS: Mac OS
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: busybox at ryandesign.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Hello,

After downloading the busybox 1.30.1 source code any running `make menuconfig`,
exiting it, and then running `make`, the first output is:

sed: RE error: illegal byte sequence
sed: RE error: illegal byte sequence
sed: RE error: illegal byte sequence
sed: RE error: illegal byte sequence

This error is produced by the `sed` bundled with recent versions of macOS if
you are operating on files that are not in the UTF-8 encoding. In that case,
you should tell `sed` what the encoding of each file is, by setting the
`LC_CTYPE` environment variable to the correct locale, for example
`LC_CTYPE=en_US.ISO8859-1` if the files are in American English ISO 8859-1
encoding.

Alternately, if you're operating on binary files or on files whose encoding is
unknown, and you only want to replace ASCII characters, you can specify the `C`
locale.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list