Closed
Bug 92220
Opened 24 years ago
Closed 24 years ago
combine duplicate code in comi18n.cpp and nsMsgImapSearch.cpp that checks if a string is really ASCII
Categories
(MailNews Core :: Internationalization, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla0.9.4
People
(Reporter: sspitzer, Assigned: nhottanscp)
Details
Attachments
(2 files)
1.04 KB,
patch
|
Details | Diff | Splinter Review | |
1.12 KB,
patch
|
Details | Diff | Splinter Review |
combine duplicate code in comi18n.cpp and nsMsgImapSearch.cpp that checks if a
string is really ASCII
see nsMsgSearchOnlineMail::Encode() in nsMsgImapSearch.cpp and the code nhotta
recently added to comi18n.cpp for bug #82591
there might be more, see http://lxr.mozilla.org/mozilla/search?string=0xFF80
Assignee | ||
Comment 1•24 years ago
|
||
nsMsgSearchOnlineMail::Encode can use nsCRT::IsAscii which takes PRUnichar*.
We could also add char* version of IsAscii to nsCRT.
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
r=taka
Comment 4•24 years ago
|
||
I don't understand the code that was there before; this makes the code much
cleaner! Thanks, and r=hwaara
You probably want sspitzer or bienvenu to sr= this.
Reporter | ||
Comment 5•24 years ago
|
||
sr=sspitzer
my only suggestion would be make pchar a nsXPIDLString,
and then do:
rv = searchValue->GetStr(getter_Copies(pchar));
so you can remove the nsCRT::free()
Assignee | ||
Comment 6•24 years ago
|
||
Reporter | ||
Comment 7•24 years ago
|
||
sr=sspitzer
Assignee | ||
Comment 8•24 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla0.9.4
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
•