Patch: force locale when checking version requirements

This commit is contained in:
George Boudreau 2007-12-14 20:30:09 +00:00
parent 81a7fb83ac
commit 56e487e8e0
2 changed files with 6 additions and 0 deletions

View file

@ -101,8 +101,10 @@
<xsl:text>&#xA;</xsl:text>
</xsl:when>
<!-- Select Endian level for uClibc -->
<!--
<xsl:when test="$endian='xbig' and contains(string(),'LITTLE_ENDIAN')"/>
<xsl:when test="$endian='xlittle' and contains(string(),'BIG_ENDIAN')"/>
-->
<!-- Setting $LANG for /etc/profile -->
<xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
contains(string(),'export LANG=')">

View file

@ -77,6 +77,10 @@ inline_doc
check_prerequisites() { #
#----------------------------#
# Avoid translation of version strings
local LC_ALL=C
export LC_ALL
# LFS/HLFS/CLFS prerequisites
check_version "2.6.2" "`uname -r`" "KERNEL"
check_version "3.0" "$BASH_VERSION" "BASH"