Closed Bug 62437 Opened 24 years ago Closed 23 years ago

Japanese message filter/folder names can't be migrated correctly

Categories

(MailNews Core :: Internationalization, defect, P2)

x86
Windows 98

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: kazhik, Assigned: naving)

References

Details

(Keywords: intl, Whiteboard: [nsbeta1+ ,PDT+)

Attachments

(3 files)

Japanese message filter names are converted as garbage
on installer's profile migration.

On filter rules dialog, Japanese folder names in Action section
are also converted as garbage.

This problem was reported on Bugzilla-jp.
http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=521
cc alecf and sspitzer.
Seth, do we do the OS charset to UTF-8 conversion when migrating filter names?
saving sspitzer from the bugzilla spam, because this isn't a migration issue
we are supposed to do the conversion the first time we open the filter file..
bienvenu probably knows where that is.

adding gayatrib (the new filters owner) and varada (covering for gayatrib right now)
gayatrib may already have a bug on this.
Reassign to varada.

This probably needs Japanese system to reproduce. My machine can be used for
debug/testing.
Assignee: nhotta → varada
adding intl keyword
Keywords: intl
Severity: normal → major
Added myself to CC.
QA contact to ji.
QA Contact: momoi → ji
adding nsbeta1 and jen to the copy list
Keywords: nsbeta1
marking nsbeta1+, moving to mozilla0.9 and reassigning to gayatrib.
Assignee: varada → gayatrib
Priority: P3 → P2
Whiteboard: [nsbeta1+]
Target Milestone: --- → mozilla0.9
marking nsbeta1- and moving to future milestone.
Keywords: nsbeta1nsbeta1-
Whiteboard: [nsbeta1+] → [nsbeta1+ 2/21]
Target Milestone: mozilla0.9 → Future
Jenn - this looks pretty bad froma UE, trying to migrate folder names. would we
allow the US-EN version to ship this way? 
reassigning to naving
Assignee: gayatrib → naving
Marking as nsCatFood, as this look like a migration issue (e.g. Project Goal)
Keywords: nsCatFood
Xianglan, 
can you please test to give us a status on this bug. Does it still persist?
Jen, sorry for the late reply. I was on vacation.
Yes, it's still happening on 07/06 branch build.
Besides the Japanese keyword in a filter is not migrated.
For example, in a filter, if you put a Japanese word in a criteria, like 
subject contains XXXX (X here stands for a Japanese char)
after migration, XXXX is gone. the heyword field is empty.
Keywords: nsBranch
bringing this back from the future milestone into a more reasonable one for Mach
V work.
Target Milestone: Future → mozilla0.9.6
Blocks: 99230
Marking nsbranch- as it was decided in the August bug triage that we wouldn't
have eenough time in eMojo to fix this.  Let's revisit for MachV.

Keywords: nsbranch-
cleaning up nsbranch keywords. 
Keywords: nsbeta1-, nsbranch
No longer blocks: 99230
Attached patch proposed fix.Splinter Review
This is the fix for the filter folder non-ascii names for both imap and 
local. For imap convert to utf7 name from unicode. For local convert unicode 
to mod-utf7. 

david, please review. 
I looked at our mozilla filters and it looks like we are using the imap mod-utf7
for the filter target name, so it looks like you're doing the right thing here.
r=bienvenu, good job. Please get an sr, though, thanks.
Comment on attachment 49932 [details] [diff] [review]
proposed fix.

sr=sspitzer
Attachment #49932 - Flags: superreview+
Comment on attachment 49932 [details] [diff] [review]
proposed fix.

this has r=bienvenu
Attachment #49932 - Flags: review+
fixed on trunk.
Status: NEW → ASSIGNED
Keywords: nsbranch-nsbranch
Mscott/Navin - Pls bring this one to PDT today.
Blocks: 99508
Checked 0920 trunk build. The Japanese filter name is still not migrated
properly. After migration, the Japanese filter name and keyword in criteria are
garbled, and Japanese folder name in the action definition is displayed as raw
utf7 bits. Will attach a screen shot later.
check it in - PDT+
Whiteboard: [nsbeta1+ 2/21] → [nsbeta1+ ,PDT+
Copied comments from another bug:
Please note that the Japanese folder name in the filter definition is displayed
 as raw utf-7 string after migration. We may need to convert it to utf-8 for 
correct display.
Attached patch proposed fix, v2Splinter Review
The fix is to convert to unicode based on the platform charset. 
r=bienvenu
Comment on attachment 50188 [details] [diff] [review]
proposed fix, v2

sr=sspitzer
Attachment #50188 - Flags: superreview+
fix checked on the trunk. hopefully should be fixed. 
ji, I think this issue is covered in a separate bug 70246

>Please note that the Japanese folder name in the filter definition is displayed
> as raw utf-7 string after migration. We may need to convert it to utf-8 for 
>correct display.>

Verified with 09/21 trunk builds. It's fixed. The Japanese filter name, keyword 
and foldername are migrated correctly.
Navin, bug 70246 doesn't apply to this case, that is about the display problem 
of new created folder on filter window.
fixed on branch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified with 09/24 branch builds. It's fixed. Thanks.
Status: RESOLVED → VERIFIED
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: