9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <miller@hamnavoe.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: [9fans] reading email encoded in ISO-2022-JP
Date: Sat,  8 Nov 2003 19:20:54 +0000	[thread overview]
Message-ID: <b228e8d3dea4bbec9ced2bef91e5bedd@hamnavoe.com> (raw)
In-Reply-To: <20031108.1802230523@jkk77jkk-yahoo.co.jp     >

jkk77jkk@yahoo.co.jp said:

>                       ※  未承諾広告 ※ご迷惑な方は削除してください。
>    当広告を受信拒否の方は次のメールアドレスに〔受信拒否〕
>   として送信してください。その日のうちに削除いたします。ご迷惑でしょうがよろしくお願いいたします 
>     jk78jkjp@yahoo.co.jp   販売者 ギフト 所在地 京都府城陽市寺田8-2
>                                 代表者 山本しおり  TEL  0774-56-6428            
>       5000円で開業しませんか!!

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", },
  };
  
  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 = x + len;
  			m->ballocd = 1;
  		}
+ 	} else if(cistrcmp(s_to_c(m->charset), "iso-2022-jp") == 0){
+ 		len = xtoutf("jis", &x, m->body, m->bend);
+ 		if(len != 0){
+ 			if(m->ballocd)
+ 				free(m->body);
+ 			m->body = x;
+ 			m->bend = x + len;
+ 			m->ballocd = 1;
+ 		}
  	} else if(cistrcmp(s_to_c(m->charset), "windows-1257") == 0
  			|| cistrcmp(s_to_c(m->charset), "windows-1252") == 0){
  		len = is8bit(m);


-- Richard Miller



      reply	other threads:[~2003-11-08 19:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-08 18:02 [9fans] 未承諾広告※ 5000円開業パック 
2003-11-08 19:20 ` Richard Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b228e8d3dea4bbec9ced2bef91e5bedd@hamnavoe.com \
    --to=miller@hamnavoe.demon.co.uk \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).