Closed
Bug 180158
Opened 23 years ago
Closed 23 years ago
Non Latin1 folder name turns to dots in CreateUtf7ConvertedString
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nhottanscp, Assigned: Bienvenu)
References
Details
(Keywords: intl)
Attachments
(1 file)
|
1.06 KB,
patch
|
nhottanscp
:
review+
sspitzer
:
superreview+
|
Details | Diff | Splinter Review |
This happens when I select a folder with non Latin1 name.
The call to ToCString() converts non Latin1 characters into dots (and I get an
assertion).
Can we return UTF-8 instead? But I am not sure the following code can handle
UTF-8 or not.
CreateUtf7ConvertedString(const char * 0x04bafd18, int 0x00000000) line 94
nsImapProtocol::RefreshFolderACLView(const char * 0x04bafd18, nsIMAPNamespace *
0x042f1d48) line 5304 + 12 bytes
nsImapProtocol::RefreshACLForFolder(const char * 0x04bafd18) line 5281
nsImapProtocol::RefreshACLForFolderIfNecessary(const char * 0x04bafd18) line 5256
nsImapProtocol::ProcessSelectedStateURL() line 1914
nsImapProtocol::ProcessCurrentURL() line 1312
nsImapProtocol::ImapThreadMainLoop() line 1114 + 14 bytes
nsImapProtocol::Run(nsImapProtocol * const 0x04b15c04) line 908
nsThread::Main(void * 0x04755f18) line 120 + 26 bytes
_PR_NativeRunThread(void * 0x04970cf0) line 433 + 13 bytes
_threadstartex(void * 0x0446e158) line 212 + 13 bytes
| Reporter | ||
Comment 1•23 years ago
|
||
I don't see any visible problem.
David, what does this part of the code do?
Keywords: intl
| Assignee | ||
Comment 2•23 years ago
|
||
it refreshes the acl for the folder. Most likely, this won't have a visible
effect, unless there's some special acl set for the folder, like you've shared
the folder (highly unlikely).
I doubt utf8 is the right thing to do. The code is wrong as it is, though. Let
me check into the inputs and outputs. This is the only caller of that routine,
which is highly suspicious.
| Assignee | ||
Comment 3•23 years ago
|
||
remove the conversion - we want the folder name to be in imap mod utf7, as it
is. Naoki, can you review? thx.
| Reporter | ||
Updated•23 years ago
|
Attachment #106237 -
Flags: review+
Comment 4•23 years ago
|
||
Comment on attachment 106237 [details] [diff] [review]
proposed fix
sr=sspitzer
Attachment #106237 -
Flags: superreview+
| Assignee | ||
Comment 5•23 years ago
|
||
fix checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
changing qa this appears to be for the international qa
QA Contact: huang → marina
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•