u8-istream: Fix handling of UTF-8 byte order marks.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 25 Apr 2013 05:14:01 +0000 (22:14 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Thu, 25 Apr 2013 05:26:34 +0000 (22:26 -0700)
commit0697a4277a80981c438518e844ae8174ea9b8453
treee79829f6fb0e63d813968659760fa53fbbe1334b
parentdd165516976c8801fbf7917c78f739b64e37b204
u8-istream: Fix handling of UTF-8 byte order marks.

The UTF-8 special case state didn't skip over an initial byte order mark.
This fixes it.

Reported by Dr. Holger Handstein <post@handundstein.de>.
Signed-off-by: Ben Pfaff <blp@cs.stanford.edu>
src/libpspp/u8-istream.c
tests/libpspp/u8-istream.at