#!/bin/sh

echo -n $0: 'Unicode entities... '

cat >test.html <<eof
abc…&#x2026;def
eof

cat >test.ref <<eof
abc……def

eof

LC_CTYPE=en_US.UTF-8 sh ./test/run test.html >test.data

if cmp test.ref test.data
then
  rm -f test.*
  echo passed
else
  echo failed
  exit 1
fi
