u8-istream: Fix handling of UTF-8 byte order marks.
[pspp] / tests / libpspp / u8-istream.at
index 842e77336d0f1364ab479009bb1b91c19fa70f10..9757f9605b7b77fd9d1cf55b3db1403ac479f9f0 100644 (file)
@@ -109,6 +109,11 @@ Auto mode
 entrée
 UTF-8 mode
 ])
+AT_CHECK([printf '\357\273\277entr\303\251e\n' | u8-istream-test read - Auto], [0], [dnl
+UTF-8 mode
+entrée
+UTF-8 mode
+])
 AT_CLEANUP
 
 AT_SETUP([read ISO-8859-1 as Auto,ISO-8859-1])