Work around build issues with custom LC_COLLATE values.

Some users use a customized LC_COLLATE value, which is known to
be a source of script breakage.
This patch makes sure that LC_COLLATE is set to C (the default)
when building.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-10-12 13:30:04 +00:00
parent cad2731d34
commit 18d3f37956
2 changed files with 6 additions and 0 deletions

View file

@ -33,4 +33,5 @@ enhancements:
starting the build process.
* Reworked the options selection menu to avoid seeing only a truncated set
of the actual options.
* Work around build issues caused by custom LC_COLLATE values.
+--------------------------+

View file

@ -3133,6 +3133,11 @@ build_package() {
[[ $BUILDOPTIONS ]] && eval "export $BUILDOPTIONS"
fi
export OUTPUT=$SB_OUTPUT
# Custom LC_COLLATE settings can break scripts (since some
# expressions, like [A-Z], don't behave as expected -- for
# example, LC_COLLATE=fr_FR expands it to AbBcC..zZ).
# See also the comment in /etc/profile.d/lang.sh
export LC_COLLATE=C
if [[ $CLEANUP ]]; then
# We want to remove all the build residuals after running the
# SlackBuild script. To do that reliably (i.e. without