Closed
Bug 61100
Opened 24 years ago
Closed 24 years ago
Cannot import non-Latin1 folder name in Outlook Express
Categories
(MailNews Core :: Internationalization, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: m_kato, Assigned: m_kato)
Details
(Keywords: intl)
Attachments
(4 files)
12.90 KB,
patch
|
Details | Diff | Splinter Review | |
17.86 KB,
patch
|
Details | Diff | Splinter Review | |
21.62 KB,
patch
|
Details | Diff | Splinter Review | |
47.37 KB,
patch
|
Details | Diff | Splinter Review |
releted to bug 58897. But this problem is other. I think that this bug is very very critical for Japanese User. Hotta-san, I hanve fix code. please review... REPRO STEP ========== 1. Run Mozilla mail 2. select Import 3. select Outlook Express 4. select [ok] and [next]
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Summary: Cannot inport non-Latin1 folder name in Outlook Express → Cannot import non-Latin1 folder name in Outlook Express
Assignee | ||
Comment 2•24 years ago
|
||
Updated•24 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 4•24 years ago
|
||
My comments for the patch. * Please use nsICharsetConverterManager2 instead of nsICharsetConverterManager. * Please check the return value of SystemStringFromUnicode in ConvertToUnicode. * Release the encoder in nsImportService destructor.
Comment 5•24 years ago
|
||
Let me know when you post new patches with Naoki's changes and I'll look at super reviewing that patch. Thanks!
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•24 years ago
|
||
Comment 7•24 years ago
|
||
Couple comments, in nsMsgFolder we should be using a nsXPIDLString for the variable: folderName. Can you change that: PRUnichar *folderName = nsnull; should be nsXPDILString folderName. Then you can get rid of the two nsMemory::Free(folderName) calls that you had to add. I didn't understand the comment in this line: if (!gService || NS_FAILED(rv)) // XXX bad cast what was the bad cast? I don't see anything that looked strange. Everyting else looks good to me.
Comment 8•24 years ago
|
||
In the patch (11/29), there are still no return value checks for SystemStringToUnicode() and SystemStringFromUnicode() in nsImportMail.cpp. Please added those checks. About Scott's comment, that's a fallback when charset conversion not available. It could be a bad cast for non Latin1 but it's okay for Latin1. So you may want to add more words in the comment or change to "fallback to Latin1".
Assignee | ||
Comment 9•24 years ago
|
||
mscott, is this no problem by the following code?? nsMsgFolder.cpp : : if(NS_SUCCEEDED(rv)) { nsXPIDLString folderName; rv = folder->GetName(getter_Copies(folderName)); // case-insensitive compare is probably LCD across OS filesystems if (NS_SUCCEEDED(rv) && nsCRT::strcasecmp(folderName, uniName.GetUnicode()) == 0) { *aChild = folder; NS_ADDREF(*aChild); return NS_OK; } } And nsString::AssignWithConversion occurs bad cast when string is no-latin1 string. These codes uses in many parts (mailnews, widget etc)
Comment 10•24 years ago
|
||
Thanks for making the change to use nsXPIDLString. These changes look good to me. sr=mscott. I think you still need a final r= from Naoki though.
Comment 11•24 years ago
|
||
Where is the new patch (after 11/29)? I need to see the patch in order to review.
Assignee | ||
Comment 12•24 years ago
|
||
Assignee | ||
Comment 13•24 years ago
|
||
I already send via mail (Date: Thu, 07 Dec 2000 02:13:43 +0900). But I attach this bug. Hotta-san, please review
Comment 14•24 years ago
|
||
As I mentioned before, return value checks are needed for SystemStringToUnicode() and SystemStringFromUnicode() in nsImportMail.cpp. I don't think I recived the patch by e-mail. Anyway, it's good to attach the patch to bug report. See the mozilla code review page for detail. http://www.mozilla.org/hacking/reviewers.html
Comment 15•24 years ago
|
||
I put r=nhotta to reduce an extra review process, please include the error check before you check in.
Assignee | ||
Comment 16•24 years ago
|
||
check in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 17•24 years ago
|
||
** Checked with 1/7/2001 Win32 build ** Th original problem reported was the following: 1. Have Japanese or other non-Latin 1 Outlook Express with mail folders names using non-Latin 1 folder names, e.g. Japanese. 2. Start Mozilla Mail and engage File | Import menu and choose Mail. 3. From the selection window, choose Outlook Express and start importing. 4. It seems to import the folders but when you look at the imported folder names, the ones with non-Latin 1 names are unreadable. 5. When you re-start Mozilla, the unreadable folder names are gone. 6. Therefore it seems what you see in step 5 is just a temporary situation. The folders seem to be there but not really and they disappear upon re-starting. With the above new build, not only the import succeeds but we can also read the Japanese or non-ASCII names and they stay in the imported account after a re-start. Marking the fix as verified as fixed.
Status: RESOLVED → VERIFIED
Comment 18•24 years ago
|
||
CC'ing IQA people.
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•