Closed Bug 1954649 Opened 1 year ago Closed 1 year ago

Full-width spaces(U+3000) in Subject are replaced.

Categories

(Thunderbird :: Untriaged, defect)

Thunderbird 136
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1259430

People

(Reporter: yoshiaki, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Steps to reproduce:

I wrote a subect contains full-width space (U+3000), and send or save to draft.
For example, β€œγ‚γ€€γ„β€.

Actual results:

U+3000 is converted to a normal space (U+0020).
For example, β€œγ‚ い”.

Expected results:

Please do not convert full-width spaces to half-width spaces.
For Japanese, U+3000 and U+0020 are different characters.

Those are still both space, like in any language.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1259430
Resolution: --- → DUPLICATE

Is this really a duplicate? Isn't it more an issue of "sanitation", see bug 1900708 comment 7.

Sanitation sure, but that's what bug 1259430 is also about.

(In reply to Magnus Melin [:mkmelin] from comment #1)

Those are still both space, like in any language.
*** This bug has been marked as a duplicate of bug 1259430 ***

I don't think it is duplidate.
Sorry, I made a misleading.
This is not a space character conversion problem, but a processing order problem.
If you mime-encode β€œγ‚γ€€γ„β€(U+3042,U+3000,U+3044), you get "=?UTF-8?B?44GC44CA44GE?=". There is no space here.
Non-ASCII characters should be mime-encoded first.

It's about processing after mime-decoding.

(In reply to Magnus Melin [:mkmelin] from comment #3)

Sanitation sure, but that's what bug 1259430 is also about.

https://searchfox.org/comm-central/rev/d5f1fded91abd164980b42748ea72163ad7784db/mailnews/mime/jsmime/jsmime.mjs#328

   token = token.replace(/[\xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/g, " ");

...converts the character into a normal space. Because of Bug 1259430, TB then merges them.

See Also: → 1900708
You need to log in before you can comment on or make changes to this bug.