Closed Bug 260725 Opened 20 years ago Closed 20 years ago

quoting a message for a reply must maintain user's display encoding selection

Categories

(MailNews Core :: Internationalization, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: eyalroz1, Assigned: eyalroz1)

References

(Blocks 1 open bug)

Details

(Keywords: intl)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040817 Build Identifier: (this is part of a split-up of dupe bug 260706 into non-dupe pieces to be tracked from bug 254868) If you have manually set an encoding of a message in messenger to some value and press 'reply to', the encoding inferrence 3-step logic (see bug 260706) is run again, disregarding your manual setting; this is often the wrong choice, since the user's selection of a different encoding usually means that Mozilla's inferrence was wrong. And since changing the encoding in composer no longer has any effect on the quoted message (this could be a bug in itself), we must not countermand the user's choice. Note that this entirely independent of the persistence requested in bug 208917 - there the case is remembering previous user choices when moving from message to message; here the concern is only the current choice, which need be noted by the new composition session. A note regarding encoding coercion: In the case where the "always apply default encoding" preference is set, it would be more reasonable, in the case of replying to a message, to only perform 'relaxing' coercions, that is, assume that the current encoding in messenger is correct, to note the Unicode ranges appearing in the messages, and finally to coerce to the default encoding only if all message characters are represented within it, and otherwise to use UTF-8. Reproducible: Always Steps to Reproduce:
Blocks: 254868
An explanatory note: the coercion has nothing to do with the encoding the message is quoted in. The quoting of the original message is as unicode, and it is not affected by changes to the encoding in the composer window (except that when you try to send, if you have chars from the quoted message which cannot be represented in your selected encoding you'll get a warning). So for the sake of this bug proper, you can entirely disregard "A note regarding encoding coercion".
Attached patch fix v1 (deleted) — Splinter Review
only the charset for _sending_ the new message is in is now effected by send_default_charset - not the charset for _quoting_ the original message.
Assignee: smontagu → eyalroz
Status: UNCONFIRMED → ASSIGNED
Attachment #159718 - Flags: superreview?(bienvenu)
Attachment #159718 - Flags: review?(smontagu)
Comment on attachment 159718 [details] [diff] [review] fix v1 looks OK - I'd like to have jshin look at this, however...
Attachment #159718 - Flags: superreview?(bienvenu) → superreview+
(In reply to comment #0) > If you have manually set an encoding of a message in messenger to some value and > press 'reply to', the encoding inferrence 3-step logic (see bug 260706) is run > again, disregarding your manual setting; this is often the wrong choice, since Are you sure about this? The mail composition window for reply comes up with the character encoding you manually selected in the message view window unless you turn on 'always use this default character encoding when replying to a message'.
Keywords: intl
jshin is correct; comment #0 is incorrect. However, the fix is still valid, since when 'always use this default character encoding when replying to a message' is checked, the current code quotes the original message with the default encoding for composing messages rather than with the encoding in which the message is currently displayed. Renaming bug accordingly.
Summary: replying to a message must maintain user's encoding selection → quoting a message for a reply must maintain user's display encoding selection
Comment on attachment 159718 [details] [diff] [review] fix v1 r=smontagu, but I second comment 3. If jshin is happy, I'll check this in.
Attachment #159718 - Flags: review?(smontagu) → review+
I also noticed this problem (revised :-) in comment #4) while working on bug 258856. I'm happy with and grateful to the patch.
patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 159718 [details] [diff] [review] fix v1 asking for a to branches. Scott, can you check this into aviary-1.0? This should be safe enough.
Attachment #159718 - Flags: approval1.7.x?
Attachment #159718 - Flags: approval-aviary?
Comment on attachment 159718 [details] [diff] [review] fix v1 a=mkaply for branches
Attachment #159718 - Flags: approval1.7.x?
Attachment #159718 - Flags: approval1.7.x+
Attachment #159718 - Flags: approval-aviary?
Attachment #159718 - Flags: approval-aviary+
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: