[arch-projects] [devtools] Last grep detect UTF-x files as binary when locale is unibyte
Sébastien Luttringer
seblu at seblu.net
Thu Feb 18 02:16:02 UTC 2016
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 <seblu at seblu.net>'
I see these way of fixing this:
- add --text to grep calls in devtools
- replace LANG=C by LANG=en_US.UTF8 in lib/common.sh
What's do you thinK?
Cheers,
--
Sébastien "Seblu" Luttringer
https://seblu.net | Twitter: @seblu42
GPG: 0x2072D77A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: This is a digitally signed message part
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20160218/9ec47d7a/attachment.asc>
More information about the arch-projects
mailing list