Ralf Wildenhues wrote:
> func_show_eval is also called like this:
>
> | func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S
> "../$outputname" "$outputname" )' 'exit $?'
OK, what about this patch, then? (Untested.)
Bruno
2008-01-20 Bruno Haible <[EMAIL PROTECTED]>
* libltdl/config/ltmain.m4sh (lt_switch_to_user_locale,
lt_switch_to_safe_locale): New variables.
* libltdl/config/general.m4sh (func_show_eval): Use them.
*** libltdl/config/general.m4sh.bak 2008-01-20 17:22:16.000000000 +0100
--- libltdl/config/general.m4sh 2008-01-21 00:41:49.000000000 +0100
***************
*** 1,6 ****
m4_if([general.m4sh -- general shell script boiler plate -*- Autoconf -*-
! Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
Written by Gary V. Vaughan, 2004
This file is part of GNU Cvs-utils.
--- 1,6 ----
m4_if([general.m4sh -- general shell script boiler plate -*- Autoconf -*-
! Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
Written by Gary V. Vaughan, 2004
This file is part of GNU Cvs-utils.
***************
*** 337,344 ****
--- 337,346 ----
}
if ${opt_dry_run-false}; then :; else
+ eval "$lt_switch_to_user_locale"
eval "$my_cmd"
my_status=$?
+ eval "$lt_switch_to_safe_locale"
if test "$my_status" -eq 0; then :; else
eval "(exit $my_status); $my_fail_exp"
fi
*** libltdl/config/ltmain.m4sh.bak 2008-01-20 17:08:53.000000000 +0100
--- libltdl/config/ltmain.m4sh 2008-01-21 00:41:42.000000000 +0100
***************
*** 4,10 ****
# ltmain.sh (GNU @PACKAGE@@TIMESTAMP@) @VERSION@
# Written by Gordon Matzigkeit <[EMAIL PROTECTED]>, 1996
! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--- 4,10 ----
# ltmain.sh (GNU @PACKAGE@@TIMESTAMP@) @VERSION@
# Written by Gordon Matzigkeit <[EMAIL PROTECTED]>, 1996
! # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
***************
*** 96,107 ****
--- 96,111 ----
# Only set LANG and LC_ALL to C if already set.
# These must not be set unconditionally because not all systems understand
# e.g. LANG=C (notably SCO).
+ lt_switch_to_user_locale=
+ lt_switch_to_safe_locale=
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
do
eval "if test \"\${$lt_var+set}\" = set; then
save_$lt_var=\$$lt_var
$lt_var=C
export $lt_var
+ lt_switch_to_user_locale=\"$lt_var=\$save_$lt_var; \$lt_switch_to_user_locale\"
+ lt_switch_to_safe_locale=\"$lt_var=C; \$lt_switch_to_safe_locale\"
fi"
done
_______________________________________________
Bug-libtool mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-libtool