i18n: Handle EINVAL more gracefully. 20100922040502/pspp 20100923040501/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 21 Sep 2010 05:42:17 +0000 (22:42 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 22 Sep 2010 05:11:14 +0000 (22:11 -0700)
commit2b84fc2b70df7767ee9a279fffab5db1b3c8023e
tree8d28f2417e227ee66c1930b34484aa68b3104e84
parent4b7c82a2517519f9cc1a424f26262badae10d525
i18n: Handle EINVAL more gracefully.

EINVAL indicates an invalid multibyte sequence at the end of buffer.  It
seems to me that there is no point in swallowing up a single byte and going
on at that point; instead, one might as well just declare the conversion
done after adding the fallback character.  This is what this commit does.
src/libpspp/i18n.c