File: skip_setlocale.patch

package info (click to toggle)
libtool 2.2.6b-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 10,740 kB
  • ctags: 1,236
  • sloc: sh: 25,677; ansic: 5,052; makefile: 1,149; pascal: 131; cpp: 121; fortran: 37; f90: 37
file content (22 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	Skip localization test when setlocale is not functional.
	* tests/localization.at (localized compiler messages): Skip
	test when there is a warning about `LC_ALL'.
	* THANKS: Update.
	Report by Maciej Helminiak.

Index: libtool-2.2.6b/tests/localization.at
===================================================================
--- libtool-2.2.6b.orig/tests/localization.at	2009-11-16 13:11:59.000000000 +0000
+++ libtool-2.2.6b/tests/localization.at	2009-12-09 18:49:08.000000000 +0000
@@ -47,6 +47,9 @@
 mv -f stderr expected-stderr
 AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c || exit 1],
 	 [1], [stdout], [stderr])
+# Avoid this error:
+#   /bin/sh: warning: setlocale: LC_ALL: cannot change locale (de_DE)
+AT_CHECK([grep LC_ALL stdout stderr && exit 77], [1])
 AT_CHECK([diff expected-stderr stderr])
 LTBASE=`$ECHO "$LIBTOOL" | sed 's,^.*/,,'`
 AT_CHECK([grep -v "^$LTBASE: compile" stdout | diff expected-stdout -])