[arch-projects] [devtools] Last grep detect UTF-x files as binary when locale is unibyte
Hi,
This is new in grep 2.23 (see NEWS). Unfortunately, it breaks our package
submission process for packagers with UTF-8 chars in their PACKAGER var.
The issue happen in makechrootpkg when it uses grep to load variables from
makepkg.conf.
Example 1:
$ extra-x86_64-build
...
==> Building in chroot for [extra] (x86_64)...
/usr/bin/makechrootpkg: line 319: Binary: command not found
==> Creating clean working copy [seblu]...done
Example 2:
$ LANG=C grep '^PACKAGER=' /home/seblu/.makepkg.conf
Binary file /home/seblu/.makepkg.conf matches
Example 3:
$ LANG=en_US.UTF8 grep '^PACKAGER=' /home/seblu/.makepkg.conf
PACKAGER='Sébastien Luttringer
Hi, I think the first option sounds good. This fixed the issue here: sudo sed -i 's/grep/grep -a/g' /usr/bin/makechrootpkg -- Sincerely, Alexander F Rødseth / xyproto
participants (2)
-
Alexander F Rødseth
-
Sébastien Luttringer