9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] UTF-8 handling in non-plan9 app: help finding bug
Date: Sun, 23 Mar 2003 22:01:26 -0500	[thread overview]
Message-ID: <3032e34b48396811828667e33f9592bf@plan9.bell-labs.com> (raw)
In-Reply-To: <20030324114806.78f6cf04.ggm@apnic.net>

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

The base64 string decodes to 9 UTF bytes whose hex values are:

	ec b2 9c eb ac b4 ed 98 b8

Not a comma in there.

This UTF string converts to 3 Unicode characters:

	cc9c bb34 d638

This is in the right range for Korean and there isn't a comma
in there at all.

All the =?charset?encoding?stuff?= is supposed to be treated as a
single symbol so you needn't worry about commas in there anyways.

My best guess is that your gui saw some characters that it couldn't
figure out how to display and stuck in its own goofie looking From:
line.

[-- Attachment #2: Type: message/rfc822, Size: 2521 bytes --]

From: George Michaelson <ggm@apnic.net>
To: 9fans@cse.psu.edu
Subject: [9fans] UTF-8 handling in non-plan9 app: help finding bug
Date: Mon, 24 Mar 2003 11:48:06 +1000
Message-ID: <20030324114806.78f6cf04.ggm@apnic.net>


Not a plan9 bug, but I'd appreciate debug help. I am UTF-8 illiterate.

This From: address appears to render in my gui as 

	From: 'binary meant to be korean', <user@dom.ain>

Is this because the UTF-8 decoder has mapped a 16 byte char into ASCII which
ends with a comma, and the gui hasn't made this SMTP legal? Some people think
From: any crap you like <real@dom.ain> is ok, but 
From: "other crap" <real@dom> is clearly nicer, since you can probably quote 
the trailling ,

equally, the "," may not be there. it might be the UTF-8 decoder or something
else is broken.

so can one of you RUNIC wizards tell me if this is valid hypotheses? Is this
actually a bug their side, sending invalid RFC822/SMTP header? 

-george

	From:    =?UTF-8?B?7LKc66y07Zi4?= <cmh@nic.or.kr>
	To:      "George Michaelson" <ggm@apnic.net>

  parent reply	other threads:[~2003-03-24  3:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21  5:47 [9fans] output of ps(1) memory usage YAMANASHI Takeshi
2003-02-21  5:55 ` Russ Cox
2003-02-21  6:08   ` [9fans] alg to make a good colour palette for a graph George Michaelson
2003-02-21  6:39     ` Eric Grosse
2003-02-21  6:57       ` George Michaelson
2003-02-21  7:46     ` Skip Tavakkolian
2003-02-21 12:56       ` [9fans] " Jim Choate
2003-03-24  1:48         ` [9fans] UTF-8 handling in non-plan9 app: help finding bug George Michaelson
2003-03-24  2:31           ` Russ Cox
2003-03-24  3:01           ` David Presotto [this message]
2003-03-25 16:15           ` Boyd Roberts
2003-03-25 17:04             ` Russ Cox
2003-03-25 17:13               ` Boyd Roberts
2003-03-25 17:05             ` Jack Johnson
2003-03-25 17:14               ` Boyd Roberts
2003-03-25 22:55                 ` George Michaelson

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=3032e34b48396811828667e33f9592bf@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --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).