From: Andrew Bartlett Date: Wed, 26 Aug 2020 00:50:00 +0000 (+1200) Subject: oss-fuzz: Ensure a UTF8 locale is set for the samba build X-Git-Tag: talloc-2.3.2~718 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=830c0206453b41bef87bdc9b309b968f5abd6200;p=thirdparty%2Fsamba.git oss-fuzz: Ensure a UTF8 locale is set for the samba build This ensures that LANG=en_US.UTF8 is set, which Samba's build system needs to operate in UTF8 mode. The change to use flex to generate code meant that this difference between GitLab CI and oss-fuzz was exposed. REF: https://github.com/google/oss-fuzz/pull/4366 Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Aug 26 03:20:46 UTC 2020 on sn-devel-184 --- diff --git a/lib/fuzzing/oss-fuzz/build_samba.sh b/lib/fuzzing/oss-fuzz/build_samba.sh index f798f8feb6a..333e8c38561 100755 --- a/lib/fuzzing/oss-fuzz/build_samba.sh +++ b/lib/fuzzing/oss-fuzz/build_samba.sh @@ -21,6 +21,12 @@ set -e set -x set -u +# It is critical that this script, just as the rest of Samba's GitLab +# CI docker has LANG set to en_US.utf8 (oss-fuzz fails to set this) +. /etc/default/locale +export LANG +export LC_ALL + ADDITIONAL_CFLAGS="$CFLAGS" export ADDITIONAL_CFLAGS CFLAGS=""