- if(!jis) throw CodecError("Can't express character in JIS X 0208");
-
- char buf[2]={jis>>8, jis};
- append(buf, 2);
+ if(jis)
+ {
+ char jbuf[2]={jis>>8, jis};
+ buf.append(jbuf, 2);
+ }
+ else
+ error(ucs, buf, "Can't express character in JIS X 0208");