[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#210301: locales 2.3.2-6 won't configure



	GOTO Masanori wrote:

> Which shell do you use as /bin/sh ?
> 
> BTW, this bug is easily fixed with your way or use /bin/bash.

My /bin/sh is a link to bash. The version is 2.03.0(1)-release

The bash manpage says about 'unset': 
"The exit status is true unless a name does not exist or is readonly."

So this behavior seen in locale-gen appears to be correct.

I suggest the following patch:

--- locale-gen.orig     Thu Sep 18 11:38:17 2003
+++ locale-gen  Thu Sep 18 11:39:01 2003
@@ -4,7 +4,9 @@
 
 LOCALEGEN=/etc/locale.gen
 LOCALES=/usr/share/i18n/locales
-unset POSIXLY_CORRECT
+if [ -n "$POSIXLY_CORRECT" ]; then
+  unset POSIXLY_CORRECT
+fi
 
 [ -f $LOCALEGEN -a -s $LOCALEGEN ] || exit 0;
 

-- 
  Daniel






Reply to: