Closed Bug 181559 Opened 22 years ago Closed 22 years ago

MfcEmbed: Find in this page does not find Non-Ascii characters

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.3alpha

People

(Reporter: teruko, Assigned: tetsuroy)

Details

(Keywords: intl, topembed+)

Attachments

(1 file, 2 obsolete files)

MfcEmbed: Find in this page does not find Non-Ascii characters.

Steps of reproduce
1. Launch MfcEmbed build
2. Go to Japanese web page, for example, http://www.yahoo.co.jp
3. Select menu Edit | Find This page
4. Type Japanese characters which you see in the page

Actual result:
The error "The text you entered was not found" message dialog will displayed.

Expected result:
The text you entered is found correctly.

Tested 11-22 branch and trunk Mfcembed build.
Changed QA contact to myself.
QA Contact: depstein → teruko
I forgot to mention that I used Win2k Japanese.
Marking Topembed+. Assigning to ftang - Frank please reassign as needed.
Assignee: adamlock → ftang
Keywords: topembedtopembed+
Attached patch call MultiByteToWideChar() (obsolete) — Splinter Review
Data corruption occured by calling nsString::AssignWithConversion().

Note: mfcembed is not an unicode application. Though we can enter the 
      non-locale text, we won't be able to find string.  Only the text
      matching the system locale is valid. 
      (ie.  Korean in Japanese OS is not supported)
Attached patch fixing the indent (obsolete) — Splinter Review
Attachment #107967 - Attachment is obsolete: true
assign to myself and cc reviewers.
Assignee: ftang → yokoyama
Comment on attachment 107968 [details] [diff] [review]
fixing the indent

can you review?
Attachment #107968 - Flags: review?(shanjian)
Target Milestone: --- → mozilla1.3alpha
Attachment #107968 - Flags: review?(shanjian) → review+
Comment on attachment 107968 [details] [diff] [review]
fixing the indent

chak: can you super review?
( not sure if you have
 the privilage.  If not, 
 then please let me know
 and recommend someone )
Attachment #107968 - Flags: superreview?(chak)
It may be clearer to use the ATL/MFC macros for this conversion, e.g.

USES_CONVERSION;
finder->SetSearchString(T2W(dlg->GetFindString().GetBuffer(0)));

This should mean the code will still work even if mfcEmbed is built in Unicode mode.
Comment on attachment 107968 [details] [diff] [review]
fixing the indent

classical sr refers to people on http://www.mozilla.org/hacking/reviewers.html
Attachment #107968 - Flags: superreview?(chak) → superreview?(kin)
Using MFC MBCS/Unicode Conversion Macros
Attachment #107968 - Attachment is obsolete: true
Comment on attachment 108047 [details] [diff] [review]
use USES_CONVERSION

review for me again?
Attachment #108047 - Flags: review?(shanjian)
Attachment #108047 - Flags: review?(shanjian) → review+
Comment on attachment 108047 [details] [diff] [review]
use USES_CONVERSION

kin: can you super review?
Attachment #108047 - Flags: superreview?(kin)
Comment on attachment 108047 [details] [diff] [review]
use USES_CONVERSION

sr=kin@netscape.com
Attachment #108047 - Flags: superreview?(kin) → superreview+
Attachment #107968 - Flags: superreview?(kin)
checked into the trunk.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
I verified as fixed in 2002-12-5 Mfcembed trunk build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: