Closed
Bug 1120813
Opened 10 years ago
Closed 9 years ago
MS932 not recognized as a label of Shift_JIS
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla47
People
(Reporter: mizota.toshiki, Assigned: mkmelin)
References
Details
(Keywords: regression, testcase, Whiteboard: [regression:TB31])
Attachments
(4 files, 2 obsolete files)
412.26 KB,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
Details | |
299 bytes,
text/plain
|
Details | |
729.38 KB,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
Details | |
4.57 KB,
patch
|
emk
:
review+
Ms2ger
:
review+
lizzard
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta-
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; rv:11.0) like Gecko
Steps to reproduce:
See a mail.Chose Encording.
Actual results:
Can't chose Encording like some mails.
can chose:
Subject ISO-2022JP / Content-type: iso-2022-jp
can't choose:
Subject Shift_JIS / Content-type: MS932
*When the version 24.6 it worked. After update to 31.3 it doesnot work.
Expected results:
Can chose Encording.
Updated•10 years ago
|
Summary: sjis → Can't choose Japanese encoding sjis (Subject Shift_JIS / Content-type: MS932)
Updated•10 years ago
|
Keywords: regression,
regressionwindow-wanted
Comment 1•10 years ago
|
||
Thanks for repoting this.
Just an observation - if this is a regression starting at version 31.0 (I'm not saying it is), it's hard to understand why this is only now being reported 5 months after release.
Comment 2•10 years ago
|
||
I could confirm this issue with attaching message.
But on my linux box, the issue also exists on thunderbird 24.6.0.
Note that this message does not contain any characters being included only in ms932.
Updated•10 years ago
|
Attachment #8548560 -
Attachment mime type: message/rfc822 → text/plain
Comment 3•10 years ago
|
||
mizota san, thanks for reporting this issue.
I'd like to make sure that ms932 message did show correctly on thunderbird 24.6.
Could you please attach a message which is GOOD on 24.6 but NG on 31.3?
Comment 5•10 years ago
|
||
I can reproduce.
Steps:
1. Save attachment 8548560 [details] as ms932.eml
2. Drag and Drop the ms932.eml into INBOX of local folder
3. Select the message and View > View – Character Encoding
Actual Results:
The menu item is disabled
Actual Results:
The menu item should be enabled.
Regression window
Good:
https://hg.mozilla.org/mozilla-central/rev/c67a79064fd4
https://hg.mozilla.org/comm-central/rev/109486fb2b22
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0a1 ID:20140427030201
Bad:
https://hg.mozilla.org/mozilla-central/rev/4d926af89907
https://hg.mozilla.org/comm-central/rev/c8a51e3fbe7e
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0a1 ID:20140428030201
Pushlog
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c67a79064fd4&tochange=4d926af89907
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=109486fb2b22&tochange=c8a51e3fbe7e
Regressed by: Bug 999881
Blocks: 999881
status-thunderbird35:
--- → affected
status-thunderbird36:
--- → affected
status-thunderbird37:
--- → affected
status-thunderbird_esr31:
--- → affected
tracking-thunderbird36:
--- → ?
tracking-thunderbird37:
--- → ?
tracking-thunderbird_esr31:
--- → ?
Flags: needinfo?(Pidgeot18)
Keywords: regressionwindow-wanted
Updated•10 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•10 years ago
|
Flags: needinfo?(mconley)
Comment 6•10 years ago
|
||
I was misunderstanding "Can't choose" means "failed auto-detection"...
Flags: needinfo?(mizota.toshiki)
Comment 7•10 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #1)
> Just an observation - if this is a regression starting at version 31.0 (I'm
> not saying it is), it's hard to understand why this is only now being
> reported 5 months after release.
Because it requires a message charset whose value is not anything we recognize.
Flags: needinfo?(mconley)
Flags: needinfo?(Pidgeot18)
Comment 8•10 years ago
|
||
I am not sure adding ms932 is a right thing to do.
Assignee: nobody → hiikezoe
Comment 9•10 years ago
|
||
I am guessing the problematic message in attachment 8547985 [details] was sent by a JAVA system.
mizota san, does the messsage surely contain extended characters specified for ms932 (IBM extended)?
If not, windows-31j should be used instead there.
Flags: needinfo?(mizota.toshiki)
Reporter | ||
Comment 10•10 years ago
|
||
> Could you please attach a message which is GOOD on 24.6 but NG on 31.3?
ikezoe san ,I'm sorry this message is a "trade secret" so I can't attach.
I ask the person who send the email to
send a sample mail but they could not send the mail.
I download other version from this site.
http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/
29.0b1 is GOOD and 30.0b1 is NG
Flags: needinfo?(mizota.toshiki)
Reporter | ||
Comment 11•10 years ago
|
||
> mizota san, does the messsage surely contain extended characters specified
> for ms932 (IBM extended)?
> If not, windows-31j should be used instead there.
ikezoe san , how can I check the message is
extended characters specified for ms932.
Reporter | ||
Comment 12•10 years ago
|
||
atached the file when it worked on 24.1.1 -29.0b1
Comment 13•10 years ago
|
||
(In reply to mizota.toshiki from comment #11)
> > mizota san, does the messsage surely contain extended characters specified
> > for ms932 (IBM extended)?
> > If not, windows-31j should be used instead there.
>
> ikezoe san , how can I check the message is
> extended characters specified for ms932.
I misunderstood about ms932. According to a document in wikipedia[1] ms932 means windows-31j in java prior to version 1.4.
[1] http://ja.wikipedia.org/wiki/Microsoft%E3%82%B3%E3%83%BC%E3%83%89%E3%83%9A%E3%83%BC%E3%82%B8932#OEM.E3.82.B3.E3.83.BC.E3.83.89.E3.83.9A.E3.83.BC.E3.82.B8.E3.81.AE.E7.B5.B1.E5.90.88
mizota san, the charset of your system can not be changed to windows-31j?
If the charset can not be changed, I will set review? flag to attachment 8548613 [details] [diff] [review]. There is no other way to fix this issue.
Flags: needinfo?(mizota.toshiki)
Reporter | ||
Comment 14•10 years ago
|
||
I have to see this mail so I will use 24.8.1 at my couple address.
Thanks for support.
Anne, did you go for the intersection rather than the union when including labels in the Encoding Standard? Based on the research you posted, it seems that Presto-Opera recognized ms932 as a label of Shift_JIS.
(In reply to Hiroyuki Ikezoe (:hiro) from comment #13)
> mizota san, the charset of your system can not be changed to windows-31j?
Do you mean in whatever Java program that generated emails labeled as ms932?
Flags: needinfo?(annevk)
Summary: Can't choose Japanese encoding sjis (Subject Shift_JIS / Content-type: MS932) → MS932 not recognized as a label of Shift_JIS
Comment 16•10 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #15)
> Anne, did you go for the intersection rather than the union when including
> labels in the Encoding Standard? Based on the research you posted, it seems
> that Presto-Opera recognized ms932 as a label of Shift_JIS.
>
> (In reply to Hiroyuki Ikezoe (:hiro) from comment #13)
> > mizota san, the charset of your system can not be changed to windows-31j?
>
> Do you mean in whatever Java program that generated emails labeled as ms932?
I am guessing programs built on Java-1.4 and prior versions use ms932 in Japan.
Comment 17•10 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #15)
> Anne, did you go for the intersection rather than the union when including
> labels in the Encoding Standard? Based on the research you posted, it seems
> that Presto-Opera recognized ms932 as a label of Shift_JIS.
Mostly based on what the majority of user agents recognized. We had to be conservative to some extent as e.g. recognizing "shift-jis" as "shift_jis" causes compatibility issues.
Adding "ms932" seems like it might be worth it.
Flags: needinfo?(annevk)
(In reply to Anne (:annevk) from comment #17)
> Adding "ms932" seems like it might be worth it.
Filed https://www.w3.org/Bugs/Public/show_bug.cgi?id=27851
Comment 19•10 years ago
|
||
I'm trying to understand what Thunderbird should do with this. Looking at the discussions in https://www.w3.org/Bugs/Public/show_bug.cgi?id=27851 it looks like this is leaning toward WONTFIX. Is that correct?
Comment 20•10 years ago
|
||
(In reply to Kent James (:rkent) from comment #19)
> I'm trying to understand what Thunderbird should do with this. Looking at
> the discussions in https://www.w3.org/Bugs/Public/show_bug.cgi?id=27851 it
> looks like this is leaning toward WONTFIX. Is that correct?
The W3 argues that adding new labels is probably not a net win, and I would WONTFIX adding ms932.
However, we appear to have a problem that giving an illegal charset as a label causes the charset selector to be disabled... which, if true, is a bug that really ought to be fixed.
Comment 21•10 years ago
|
||
(In reply to Joshua Cranmer [:jcranmer] from comment #20)
...
>
> The W3 argues that adding new labels is probably not a net win, and I would
> WONTFIX adding ms932.
>
> However, we appear to have a problem that giving an illegal charset as a
> label causes the charset selector to be disabled... which, if true, is a bug
> that really ought to be fixed.
If the problem of "the charset selector to be disabled" is fixed, is the message with
charset as ms932 somehow be rendered correctly?
I just noticed a posting in a large Japanese BBS in which one user describes
an issue of receiving such e-mails with ms932 chartype
from automated warehouse management system. It looks that the old Java system used to build the inventory and delivery management system used ms932 instead of
proper label (Windows-31J ???) to send out e-mails in Japanese,
and there is no way the user (the mere recipient of the automatic e-mail from the warehouse) could do.
He was forced to switch to livemail or something, but was not heard from again so far.
TIA
Comment 22•9 years ago
|
||
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27851 has been fixed by adding ms932, so we should do the same. Is mailnews/intl/charsetalias.properties still used, or is it sufficient to add it to dom/encoding/labelsencodings.properties?
Assignee | ||
Comment 23•9 years ago
|
||
If it's added to dom/encoding/labelsencodings.properties that should be sufficient.
mailnews/intl/charsetalias.properties is checked only if there's no match in dom/encoding/labelsencodings.properties
Comment 24•9 years ago
|
||
What's next?
Assignee: hiikezoe → nobody
Flags: needinfo?(mizota.toshiki) → needinfo?(mkmelin+mozilla)
Keywords: testcase
Whiteboard: [regression:TB31]
Comment 25•9 years ago
|
||
(In reply to Wayne Mery (:wsmwk, use Needinfo for questions) from comment #24)
> What's next?
We should add it to make e-mails from legacy e-mail software / applications
readable in thunderbird IMHO.
Comment 26•9 years ago
|
||
(In reply to Wayne Mery (:wsmwk, use Needinfo for questions) from comment #24)
> What's next?
Someone should write a patch to add "ms932" alias to labelsencodings.properties. I'll happily review it.
status-thunderbird35:
affected → ---
status-thunderbird36:
affected → ---
status-thunderbird37:
affected → ---
status-thunderbird_esr31:
affected → ---
tracking-thunderbird36:
? → ---
tracking-thunderbird37:
? → ---
tracking-thunderbird_esr31:
? → ---
Component: Mail Window Front End → Internationalization
Product: Thunderbird → Core
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → mkmelin+mozilla
Flags: needinfo?(mkmelin+mozilla)
Updated•9 years ago
|
status-thunderbird_esr38:
--- → affected
Assignee | ||
Comment 27•9 years ago
|
||
Attachment #8548613 -
Attachment is obsolete: true
Attachment #8718055 -
Flags: review?(VYV03354)
Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 28•9 years ago
|
||
Comment on attachment 8718055 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
Please also change the following files:
/dom/encoding/test/test_TextDecoder.js
/testing/web-platform/tests/tools/html5lib/html5lib/constants.py
/testing/web-platform/tests/encoding/resources/encodings.js
Comment 29•9 years ago
|
||
And here:
/testing/web-platform/tests/dom/nodes/Document-characterSet-normalization.html
Comment 30•9 years ago
|
||
Comment on attachment 8718055 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
Waiting for a patch update.
Attachment #8718055 -
Flags: review?(VYV03354)
Assignee | ||
Comment 31•9 years ago
|
||
Thx for the pointers, and sorry for the delay
Attachment #8718055 -
Attachment is obsolete: true
Attachment #8721354 -
Flags: review?(VYV03354)
Comment 32•9 years ago
|
||
Comment on attachment 8721354 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
LGTM about dom/encodings. Ms2ger, please review wpt changes.
Attachment #8721354 -
Flags: review?(VYV03354)
Attachment #8721354 -
Flags: review?(Ms2ger)
Attachment #8721354 -
Flags: review+
Comment 33•9 years ago
|
||
Comment on attachment 8721354 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
Review of attachment 8721354 [details] [diff] [review]:
-----------------------------------------------------------------
> Bug 1120813 - MS932 not recognized as a label of Shift_JIS. r?emk
"Add support for the MS932 label of Shift_JIS", or something along those lines.
r+ with those changes.
::: testing/web-platform/tests/tools/html5lib/html5lib/constants.py
@@ +3049,5 @@
> 'latin5': 'windows-1254',
> 'latin6': 'iso8859-10',
> 'latin8': 'iso8859-14',
> 'latin9': 'iso8859-15',
> + 'ms932': 'shift_jis',
Please revert this change.
Attachment #8721354 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 34•9 years ago
|
||
(In reply to :Ms2ger from comment #33)
> > + 'ms932': 'shift_jis',
>
> Please revert this change.
May I ask why? E.g. mskanji is also there a few lines down
Comment 35•9 years ago
|
||
The code it changes is part of html5lib, which doesn't accept changes based only on our peer review, unlike the tests in wpt.
Assignee | ||
Comment 36•9 years ago
|
||
OS: Windows 7 → All
Hardware: x86_64 → All
Version: 31 Branch → Trunk
Assignee | ||
Comment 37•9 years ago
|
||
Comment 38•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Assignee | ||
Comment 39•9 years ago
|
||
Comment on attachment 8721354 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
Approval Request Comment
[Feature/regressing bug #]: bug 999881, really bug 943252 I believe
[User impact if declined]: content in ms932 can't be read. Such content is rare but existing.
[Describe test coverage new/current, TreeHerder]: code and tests landed on trunk
[Risks and why]: no risk, just adding an alias
[String/UUID change made/needed]: none
Attachment #8721354 -
Flags: approval-mozilla-release?
Attachment #8721354 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 40•9 years ago
|
||
Comment on attachment 8721354 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
(wrong flag, meant mozilla-beta of course)
Attachment #8721354 -
Flags: approval-mozilla-release? → approval-mozilla-beta?
Comment 41•9 years ago
|
||
Comment on attachment 8721354 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
Too late for 45.
Attachment #8721354 -
Flags: approval-mozilla-beta? → approval-mozilla-beta-
Comment 42•9 years ago
|
||
Marking 46 as affected. This is a regression from some time ago so I don't think we need to track.
status-firefox46:
--- → affected
Comment 43•9 years ago
|
||
Comment on attachment 8721354 [details] [diff] [review]
bug1120813_ms932_shift_jis.patch
OK to uplift to aurora, adds tests, fixes an older regression
Attachment #8721354 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 44•9 years ago
|
||
But effectively we will have to wait until Thunderbird 52 :(
Assignee | ||
Comment 45•9 years ago
|
||
We'll put it in on the "thunderbird 45 version branch" (or whatever we'll call it) - bug 1252508.
Comment 46•9 years ago
|
||
bugherder uplift |
Comment 47•9 years ago
|
||
Landed in THUNDERBIRD_45_VERBRANCH for inclusion in Thunderbird 45:
https://hg.mozilla.org/releases/mozilla-esr45/rev/95e3b775e1ce
You need to log in
before you can comment on or make changes to this bug.
Description
•