I wrote:
(caught on IRC, credit goes to sigzegv)

jhalfs runs commands such as the following in order to find whether the host meets requirements:

check_version "4.1.20" "$(find --version | head -n1 | cut -d" " -f4)"

However, this fails in French locales, because "find --version" prints this:

« find » de GNU version 4.2.31
Built using GNU gnulib version 2007-02-24
Options activées: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION

I.e., because the French language requires spaces around quotes, "de" is picked as a version. So please release a new version of jhalfs that uses the C locale (LC_ALL=C LANGUAGE=C) for the purpose of running such version-checking commands (but not for running lxdialog!), and I will release a new CD with it.


The fix is attached, I will release a CD with it soon.

--
Alexander E. Patrakov
diff -urN jhalfs-2.3.1.orig/common/libs/func_check_version.sh jhalfs-2.3.1/common/libs/func_check_version.sh
--- jhalfs-2.3.1.orig/common/libs/func_check_version.sh	2007-08-02 22:47:23.000000000 +0600
+++ jhalfs-2.3.1/common/libs/func_check_version.sh	2007-11-07 20:13:10.000000000 +0500
@@ -77,6 +77,10 @@
 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"
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to