Closed
Bug 153640
Opened 24 years ago
Closed 18 years ago
URL in ISO-2022-JP isn't escaped correctly
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
RESOLVED
WORKSFORME
mozilla1.9alpha1
People
(Reporter: kazhik, Assigned: masayuki)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: intl)
URL in ISO-2022-JP isn't escaped correctly.
http://wazilla.sourceforge.jp/
Click "ニュース" in this page. 2002062110-trunk/Linux escape the URL
as follows.
http://wazilla.sourceforge.jp/#%1B$B%K%e!%3C%9%1B(B
Original report in Bugzilla-jp:
http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=2337
Comment 2•23 years ago
|
||
I have not checked RFC 2396, but I think we can leave characters unescaped if
they are not needed to be escaped.
Status: NEW → ASSIGNED
Comment 3•23 years ago
|
||
*** Bug 160908 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 160908 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 6•23 years ago
|
||
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
| Assignee | ||
Comment 7•23 years ago
|
||
WFM with 2002123008-trunk/WinXP.
Comment 8•22 years ago
|
||
Koike Kazuhiko, is this still an issue on Linux? The original steps to
reproduce no longer work (that text is not a link on http://wazilla.sourceforge.jp/)
Comment 9•21 years ago
|
||
The text *is* actually a link on the page, comment #0 just gives the text in
Shift_JIS (probably the reporter's system charset), and the page is in
ISO-2022-JP (and is declared as such, so it displays as Japanese text
automatically). The link is the leftmost one in the line centered underneath the
top heading banner. If you view this bug page as Shift_JIS you can see the
Japanese appearance of the text in comment #0.
That said, the link WFM on WinXP with Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Comment 10•21 years ago
|
||
That escaping of the link isn't recognized by IE though, so I suppose there
could be an issue where we're escaping the link in a way that's internally
consistent so that it works in Firefox, but the escaping is wrong from the
perspective of some external standard. I have no idea how ISO-2022-JP anchor
escaping is supposed to work so I can't say.
| Assignee | ||
Updated•20 years ago
|
Assignee: nhottanscp → masayuki
Status: REOPENED → NEW
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 11•18 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008041001 SeaMonkey/2.0a1pre
That link is now escaped as http://wazilla.sourceforge.jp/#%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9 with four Unicode codepoints represented each by 3 bytes in UTF-8; that UTF-8 means ニュース which is correct. I checked the page source and the href value is still in iso-2022-jp.
Marking WORKSFORME. If it doesn't work for you on a current build of Firefox 3 or SeaMonkey 2, please paste your user-agent string (from e.g. the about: page) at the top of your comment, as I did here.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 18 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Comment 13•18 years ago
|
||
No, this is not actually fixed. The anchor string in ISO-2022-JP document is still escaped (but not broken). They should be displayed as decoded string.
And we still have |nsTextToSubURI::UnEscapeURIForUI|. That cannot process the complex URI that has two (or more) encodings.
http://lxr.mozilla.org/mozilla/source/intl/uconv/src/nsTextToSubURI.cpp
I think that the current statusbar is not using that. So, I think I should file 2 new bugs for the statusbar display and |nsTextToSubURI::UnEscapeURIForUI| cleaning up (or remove it).
Comment 14•18 years ago
|
||
(In reply to comment #13)
[...]
> I think that the current statusbar is not using that. So, I think I should file
> 2 new bugs for the statusbar display and |nsTextToSubURI::UnEscapeURIForUI|
> cleaning up (or remove it).
>
I think I saw something like that by walking the blocked/blocking bugs starting at this one, but it took me some time; there ought to be a better way to get there.
You need to log in
before you can comment on or make changes to this bug.
Description
•