}
else
{
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
sjis2euc(buf2);
#endif
sprintf(buf, "t%c%c%c%c%s", x+1, y+1, len, col, buf2);
switch (id)
{
case 't': /* 通常 */
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
euc2sjis(mesg);
#endif
update_term_size(x, y, len);