Setting text encoding to "Japanese" in TB's compose window doesn't work
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird69 fixed, thunderbird70 fixed)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(1 file, 3 obsolete files)
943 bytes,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1565888 +++
See bug 1565888 comment #5:
[4232, Main Thread] WARNING: 'NS_FAILED(rv)', file c:/mozilla-source/comm-central/editor/libeditor/TextEditor.cpp, line 215
*** Failed to get string japanese in bundle: chrome://communicator/content/labelsencodings.properties
JavaScript error: chrome://global/content/elements/stringbundle.js, line 45: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]
TextEditor.cpp, line 215 is EditorBase::SetDocumentCharacterSet(). So it looks like more work is required here, I'll file a new bug. The resulting message is stored in UTF-8 :-(
![]() |
Assignee | |
Comment 1•6 years ago
|
||
Masatoshi-san, could you advise us here. Should we set the charset to Shift_JIS here? What about people who want ISO-2022-JP? Or should we hand-roll the menu and replace Japanese with the original three options Shift_JIS, ISO-2022-JP and EUC-JP?
![]() |
Assignee | |
Comment 2•6 years ago
|
||
The spot to do it is here in fixCharset():
https://searchfox.org/comm-central/rev/e9439ba2501591b8d9890bd6973d74bd3c06da3f/mailnews/compose/src/nsMsgCompose.cpp#1484
Note that we did some charset-specific stuff there already:
https://hg.mozilla.org/comm-central/rev/71c50d951771a03efa9f2ec5731cef0846fa52d1#l1.10
![]() |
Assignee | |
Comment 3•6 years ago
|
||
Uff, this doesn't work, the resulting message is still in UTF-8 :-(
![]() |
Assignee | |
Comment 4•6 years ago
|
||
It's still unclear how people would get ISO-2022-JP.
Comment 5•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #1)
Masatoshi-san, could you advise us here. Should we set the charset to Shift_JIS here? What about people who want ISO-2022-JP? Or should we hand-roll the menu and replace Japanese with the original three options Shift_JIS, ISO-2022-JP and EUC-JP?
Sorry, I don't know. Firefox doesn't have to fallback to other encodings than Shift_JIS for Japanese.
![]() |
Assignee | |
Updated•6 years ago
|
![]() |
Assignee | |
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
I re-read the discussion in bug 1543077. According to the discussion, I think TB can use "ISO-2022-JP" instead of "Shift_JIS" here.
![]() |
Assignee | |
Comment 8•6 years ago
|
||
Right, see bug 1543077 comment #33 and above.
![]() |
Assignee | |
Comment 9•6 years ago
|
||
![]() |
Assignee | |
Comment 10•6 years ago
|
||
Why do I always mistype "Japanese" as "Japanse" or "Japaneses" :-(
Updated•6 years ago
|
![]() |
Assignee | |
Updated•6 years ago
|
![]() |
Assignee | |
Updated•6 years ago
|
![]() |
Assignee | |
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/20a4ced7e73f
Replace Japanese with ISO-2022-JP in SetDocumentCharacterSet(). r=mkmelin
![]() |
Assignee | |
Comment 12•6 years ago
|
||
Description
•