X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Futf8.cpp;h=b0431eb4f49e3d595ddefd44e5dfca57e421d060;hp=f56ba546064ee0c234f8d47af5a2d4fc25d0fb04;hb=3e3868860d4f4ca1bbe55fbf271c804307cea3c9;hpb=02794ef3620d0d9cc3b8f1c0d8f2995c825fdf4f diff --git a/source/stringcodec/utf8.cpp b/source/stringcodec/utf8.cpp index f56ba54..b0431eb 100644 --- a/source/stringcodec/utf8.cpp +++ b/source/stringcodec/utf8.cpp @@ -44,7 +44,7 @@ void Utf8::Encoder::transliterate(unichar, string &buf) unichar Utf8::Decoder::decode_char(const string &str, string::const_iterator &i) { if(i==str.end()) - return error("No input"); + return -1; if((*i&0xC0)==0x80) {