From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu From: Richard Miller In-Reply-To: <20031108.1802230523@jkk77jkk-yahoo.co.jp > MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Subject: [9fans] reading email encoded in ISO-2022-JP Date: Sat, 8 Nov 2003 19:20:54 +0000 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 836c7e62-eacc-11e9-9e20-41e7f4b1d025 jkk77jkk@yahoo.co.jp said: > =E2=80=BB =E6=9C=AA=E6=89=BF=E8=AB=BE=E5=BA=83=E5= =91=8A=E3=80=80=E2=80=BB=E3=81=94=E8=BF=B7=E6=83=91=E3=81=AA=E6=96=B9=E3=81= =AF=E5=89=8A=E9=99=A4=E3=81=97=E3=81=A6=E3=81=8F=E3=81=A0=E3=81=95=E3=81=84= =E3=80=82 > =E3=80=80=E3=80=80=E3=80=80=E5=BD=93=E5=BA=83=E5=91=8A=E3=82=92=E5=8F=97= =E4=BF=A1=E6=8B=92=E5=90=A6=E3=81=AE=E6=96=B9=E3=81=AF=E6=AC=A1=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=82=A2=E3=83=89=E3=83=AC=E3=82=B9=E3=81=AB=E3=80= =94=E5=8F=97=E4=BF=A1=E6=8B=92=E5=90=A6=E3=80=95 > =E3=80=80=E3=80=80=E3=81=A8=E3=81=97=E3=81=A6=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=A6=E3=81=8F=E3=81=A0=E3=81=95=E3=81=84=E3=80=82=E3=81=9D=E3=81=AE=E6= =97=A5=E3=81=AE=E3=81=86=E3=81=A1=E3=81=AB=E5=89=8A=E9=99=A4=E3=81=84=E3=81= =9F=E3=81=97=E3=81=BE=E3=81=99=E3=80=82=E3=81=94=E8=BF=B7=E6=83=91=E3=81=A7= =E3=81=97=E3=82=87=E3=81=86=E3=81=8C=E3=82=88=E3=82=8D=E3=81=97=E3=81=8F=E3= =81=8A=E9=A1=98=E3=81=84=E3=81=84=E3=81=9F=E3=81=97=E3=81=BE=E3=81=99=E3=80= =80 > =E3=80=80=E3=80=80=E3=80=80=E3=80=80jk78jkjp@yahoo.co.jp =E3=80=80=E3=80= =80=E8=B2=A9=E5=A3=B2=E8=80=85=E3=80=80=E3=82=AE=E3=83=95=E3=83=88=E3=80=80= =E6=89=80=E5=9C=A8=E5=9C=B0=E3=80=80=E4=BA=AC=E9=83=BD=E5=BA=9C=E5=9F=8E=E9= =99=BD=E5=B8=82=E5=AF=BA=E7=94=B0=EF=BC=98=EF=BC=8D=EF=BC=92 > =E4=BB=A3=E8=A1=A8=E8=80=85=E3=80=80=E5= =B1=B1=E6=9C=AC=E3=81=97=E3=81=8A=E3=82=8A=E3=80=80=E3=80=80TEL 0774-56-= 6428=E3=80=80=E3=80=80=E3=80=80=E3=80=80=E3=80=80=E3=80=80=E3=80=80=E3=80= =80=E3=80=80=E3=80=80=E3=80=80=E3=80=80 > =E3=80=80=E3=80=80=E3=80=80=E3=80=80=E3=80=80=E3=80=805000=E5=86=86=E3=81= =A7=E9=96=8B=E6=A5=AD=E3=81=97=E3=81=BE=E3=81=9B=E3=82=93=E3=81=8B=EF=BC=81= =EF=BC=81 No, I don't know what it means - except that something seems to be on offer for 5000 yen. But if you want to be able to see the original message, which was encoded in iso-2022-jp, just make the following changes to upas/fs: *** /n/sources/plan9//sys/src/cmd/upas/fs/fs.c Thu Sep 18 15:55:47 2003 --- /sys/src/cmd/upas/fs/fs.c Sat Nov 8 19:07:01 2003 *************** *** 1362,1367 **** --- 1362,1368 ---- { "iso-8859-1", 10, 1, nil, }, { "iso-8859-2", 10, 2, "8859-2", }, { "big5", 4, 2, "big5", }, + { "iso-2022-jp", 11, 2, "jis", }, }; =20 int *** /n/sources/plan9//sys/src/cmd/upas/fs/mbox.c Thu Sep 18 05:20:49 2003 --- /sys/src/cmd/upas/fs/mbox.c Sat Nov 8 19:08:24 2003 *************** *** 1115,1120 **** --- 1115,1129 ---- m->bend =3D x + len; m->ballocd =3D 1; } + } else if(cistrcmp(s_to_c(m->charset), "iso-2022-jp") =3D=3D 0){ + len =3D xtoutf("jis", &x, m->body, m->bend); + if(len !=3D 0){ + if(m->ballocd) + free(m->body); + m->body =3D x; + m->bend =3D x + len; + m->ballocd =3D 1; + } } else if(cistrcmp(s_to_c(m->charset), "windows-1257") =3D=3D 0 || cistrcmp(s_to_c(m->charset), "windows-1252") =3D=3D 0){ len =3D is8bit(m); -- Richard Miller