Source

uchardet-enhanced / testdata / runtest

Diff from to

testdata/runtest

 do 
   for code in $lang/*
   do 
-    code=`basename $code`
+    code="`basename $code`"
+    ucode="`echo $code | tr a-z A-Z`"
     testfile=$lang/$code/wikitop_${lang}_${code}.txt
     rescode=`../libcharsetdetect/trchardet < $testfile | tail -1`
-    if test X"$code" != X"$rescode"; then
-       echo "Error: $lang $code  -> $rescode"
+    urescode="`echo $rescode | tr a-z A-Z`"
+    if test X"$ucode" != X"$urescode"; then
+       echo "Error: $lang $ucode  -> $urescode"
     fi
   done
 done