namespace Msp {
-void Iso646Fi::Encoder::encode_char(wchar_t c)
+void Iso646Fi::Encoder::encode_char(wchar_t c_)
{
+ // Win32 has typedef unsigned short wchar_t
+ int c=c_;
+
if((c>=0 && c<=0x5A) || c==0x5F || (c>=0x61 && c<=0x7A))
append(c);
else if(c==0xC4)
else if(c==0xFC)
append(0x7E);
else
- throw CodecError("Can't express character in ISO-646-FI");
+ error("Can't express character in ISO-646-FI");
}
void Iso646Fi::Decoder::decode_char(const string &str, string::const_iterator &i)
else if(c<=0x7F)
append(c);
else
- throw CodecError("Invalid ISO-646-FI string (undefined character)");
+ error("Invalid ISO-646-FI string (undefined character)");
}
}