Closed
Bug 125080
Opened 24 years ago
Closed 23 years ago
mailto url with raw non-ASCII subject and mail body is not working
Categories
(MailNews Core :: Internationalization, defect)
MailNews Core
Internationalization
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ji, Assigned: darin.moz)
References
Details
(Keywords: intl, regression, Whiteboard: [adt2 RTM])
Attachments
(3 files)
mailto url with raw Simplified Chinese subject and mail body is working on
Communicator Simplified Chinese 4.51, but is broken on mozilla.
Steps to reproduce:
1. Have a gb2312 page containing a link pointing to a mailto url with raw
Simplified Chinese subject and mail body.
2. Open the page, click on the link, the Chinese subject and mail body are
corrupted on mail compose window.
A test case will be attached later.
![]() |
||
Comment 4•24 years ago
|
||
Is the problem specific to gb2312?
It seems broken with any non-ASCII.
Summary: mailto url with raw Simplified Chinese subject and mail body is not working → mailto url with raw non-ASCII subject and mail body is not working
![]() |
||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
![]() |
||
Comment 8•24 years ago
|
||
it work fine in 2002012806 window build.
so the problem happen after that.
nsbeta1+ per triage meeting.
![]() |
||
Comment 9•24 years ago
|
||
In NS_MakeAbsoluteURIWithCharset(), we generate raw UTF-8 for the mailto URI and
that is expected by the mail code (it was working that way in NS6.2).
Currently, it looks like the string is infrated to PRUnichar* then converted to
UTF-8 in somewhere, so the result seems to be double converted, one character
like 'á' turns to 4 bytes instead of 2 bytes.
It happens somewhere between NS_MakeAbsoluteURIWithCharset() and the mail code
which handles mailto url.
I think it can be avoided by escaping the UTF-8 mailto URI at
NS_MakeAbsoluteURIWithCharset, or find the place where the data is converted
incorrectly, cc to darin.
OS: Windows XP → All
Hardware: PC → All
![]() |
Assignee | |
Comment 10•24 years ago
|
||
my patch for bug 124042 is going to make NS_MakeAbsoluteURIWithCharset obsolete
since necko will start accepting UTF-8 URL strings. this means that all of the
per protocol URL escaping, such as the javascript \uxxxx escaping will be moved
into the respective protocol handlers.
NS_NewURI(const char *aSpec,
nsIURI *aBaseURI)
is becoming:
NS_NewURI(const nsAUTF8String &aSpec,
const char *aOriginCharset,
nsIURI *aBaseURI);
where aOriginCharset corresponds to the charset of the document from which this
URL string originated.
so, you might want to mark this bug as blocked by bug 124042.
![]() |
||
Comment 11•24 years ago
|
||
Is there any special handling needed for mailto URI? I assume not, mailto URI
already in raw (unescaped) UTF-8.
![]() |
Assignee | |
Comment 12•24 years ago
|
||
nhotta: sounds right to me.
![]() |
||
Comment 13•24 years ago
|
||
The test pages works fine with darin's build:
ftp://ftp.mozilla.org/pub/mozilla/nightly/experimental/darin
![]() |
||
Comment 14•24 years ago
|
||
Test pages work fine on 03-06 trunk build / WinME-JA and Mac OS 10.1.3.
![]() |
||
Comment 16•24 years ago
|
||
Fixed in the trunk by bug 124042.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
![]() |
||
Comment 18•23 years ago
|
||
I just tried the latin-1 attachment on Mozilla 1.0 RC3 and also on netscape
6.2.1 both on Win2k, and the extended character e-acute does not get passed to
the subject line in either of these. FYI I'm only here because I was trying to
pass a body text with the same %E9 character and couldn't get it to work.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
![]() |
||
Comment 19•23 years ago
|
||
reporter, could you please attach the problematic mail because i can not see it
happening in 2002-05-24 build.Thanks.
![]() |
Assignee | |
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Target Milestone: mozilla1.0 → mozilla1.0.1
![]() |
||
Comment 20•23 years ago
|
||
removing nsbeta1+, as it was carried over from anothe rcomponent.
ftang - pls work with gagan, and the necko triage team to asses whether this is
work they can resolved for MachV final release.
![]() |
Assignee | |
Comment 22•23 years ago
|
||
WORKSFORME Netscape 7.0 Win98
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 23 years ago
Resolution: --- → WORKSFORME
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•