arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1176906.patch

147e83
commit 7d81e8d6db95c112c297930a8f2f9617c305529a
147e83
Author: Florian Weimer <fweimer@redhat.com>
147e83
Date:   Tue Dec 23 16:16:32 2014 +0100
147e83
147e83
    iconvdata/run-iconv-test.sh: Actually test iconv modules
147e83
    
147e83
    Arjun Shankar noticed that this test case was not testing anything
147e83
    because iconv was invoked without the required arguments.
147e83
147e83
diff --git glibc-2.17-c758a686/iconvdata/run-iconv-test.sh glibc-2.17-c758a686/iconvdata/run-iconv-test.sh
147e83
index 5dfb69f..1d0bf52 100755
147e83
--- glibc-2.17-c758a686/iconvdata/run-iconv-test.sh
147e83
+++ glibc-2.17-c758a686/iconvdata/run-iconv-test.sh
147e83
@@ -189,7 +189,7 @@ printf '\016\377\377\377\377\377\377\377' > $temp1
147e83
 for from in $iconv_modules ; do
147e83
     echo $ac_n "test decoder $from $ac_c"
147e83
     PROG=`eval echo $ICONV`
147e83
-    if $PROG < $temp1 >/dev/null 2>&1 ; then
147e83
+    if $PROG -f $from -t UTF8 < $temp1 >/dev/null 2>&1 ; then
147e83
 	: # fall through
147e83
     else
147e83
 	status=$?