diff options
author | Andrew Bartlett <abartlet@samba.org> | 2020-08-26 12:50:00 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2020-08-26 03:20:45 +0000 |
commit | 830c0206453b41bef87bdc9b309b968f5abd6200 (patch) | |
tree | 39b5d6a593394ddb2dc16094029ea965fdaf5f8c /lib/fuzzing/oss-fuzz/build_samba.sh | |
parent | 49f58b2b093b962e2f3e060b1322a4e61be678a1 (diff) | |
download | samba-830c0206453b41bef87bdc9b309b968f5abd6200.tar.gz |
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 <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Aug 26 03:20:46 UTC 2020 on sn-devel-184
Diffstat (limited to 'lib/fuzzing/oss-fuzz/build_samba.sh')
-rwxr-xr-x | lib/fuzzing/oss-fuzz/build_samba.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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="" |