FIX: Cannot replace multibyte characters with characters from the "Replace with" text box when you run a Visual C++ MFC application in Visual Studio 2008


Symptoms


Consider the following scenario:
  • You create a Microsoft Visual C++ Microsoft Foundation Classes (MFC) application that uses the CRichEditView class in Microsoft Visual Studio 2008.
  • You open the project property dialog box, and then you select the Use Multi-Byte Character Set option in the Character Set list.
  • You build the application, and then you run it.
  • You type multibyte characters in a rich edit control.
  • You open the Replace dialog box, and then you type characters in the Find what and Replace with text boxes.

    Notes
    • You can press Ctrl+H to open the Replace dialog box.
    • The rich edit control contains the characters that you typed in the Find what text box.
  • You click Replace to replace the characters in the rich edit control with the characters that you typed in the Replace with text box.
In this scenario, the multibyte characters that are in the rich edit control are not replaced by the characters that you typed in the Replace with text box.

Cause


This issue occurs because of a problem in the string-comparison algorithm.

Resolution


Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have Visual Studio 2008 Service Pack 1 (SP1) installed.

Restart requirement

You do not have to restart the computer after you install the hotfix. We recommend that you close all Visual Studio 2008-related components before you install the hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
File nameFile versionFile sizeDateTimePlatform
Atl90.dll9.0.30729.6276416,07202-Feb-201223:45IA-64
Atl90.dll9.0.30729.6276176,45602-Feb-201223:47x64
Atl90.dll9.0.30729.6276159,04803-Feb-201203:26x86
Mfc90.dll9.0.30729.62765,088,07202-Feb-201223:47x64
Mfc90.dll9.0.30729.62763,767,62403-Feb-201203:26x86
Mfc90chs.dll9.0.30729.627635,66402-Feb-201223:47x64
Mfc90chs.dll9.0.30729.627635,66403-Feb-201203:26x86
Mfc90cht.dll9.0.30729.627636,68802-Feb-201223:47x64
Mfc90cht.dll9.0.30729.627636,68803-Feb-201203:26x86
Mfc90d.dll9.0.30729.62767,423,30402-Feb-201223:47x64
Mfc90d.dll9.0.30729.62765,937,99203-Feb-201203:26x86
Mfc90deu.dll9.0.30729.627663,31202-Feb-201223:47x64
Mfc90deu.dll9.0.30729.627663,31203-Feb-201203:26x86
Mfc90enu.dll9.0.30729.627653,58402-Feb-201223:47x64
Mfc90enu.dll9.0.30729.627653,58403-Feb-201203:26x86
Mfc90esn.dll9.0.30729.627661,77602-Feb-201223:47x64
Mfc90esn.dll9.0.30729.627661,77603-Feb-201203:26x86
Mfc90esp.dll9.0.30729.627661,77602-Feb-201223:47x64
Mfc90esp.dll9.0.30729.627661,77603-Feb-201203:26x86
Mfc90fra.dll9.0.30729.627662,80002-Feb-201223:47x64
Mfc90fra.dll9.0.30729.627662,80003-Feb-201203:26x86
Mfc90ita.dll9.0.30729.627661,26402-Feb-201223:47x64
Mfc90ita.dll9.0.30729.627661,26403-Feb-201203:26x86
Mfc90jpn.dll9.0.30729.627643,34402-Feb-201223:47x64
Mfc90jpn.dll9.0.30729.627643,34403-Feb-201203:26x86
Mfc90kor.dll9.0.30729.627642,83202-Feb-201223:47x64
Mfc90kor.dll9.0.30729.627642,83203-Feb-201203:26x86
Mfc90rus.dll9.0.30729.627659,72802-Feb-201223:47x64
Mfc90rus.dll9.0.30729.627659,72803-Feb-201203:26x86
Mfc90u.dll9.0.30729.62765,107,01602-Feb-201223:47x64
Mfc90u.dll9.0.30729.62763,782,98403-Feb-201203:26x86
Mfc90ud.dll9.0.30729.62767,469,90402-Feb-201223:47x64
Mfc90ud.dll9.0.30729.62765,983,05603-Feb-201203:26x86
Mfcm90.dll9.0.30729.627667,07202-Feb-201223:47x64
Mfcm90.dll9.0.30729.627659,90403-Feb-201203:27x86
Mfcm90d.dll9.0.30729.627693,18402-Feb-201223:47x64
Mfcm90d.dll9.0.30729.627680,89603-Feb-201203:27x86
Mfcm90u.dll9.0.30729.627667,07202-Feb-201223:47x64
Mfcm90u.dll9.0.30729.627659,90403-Feb-201203:27x86
Mfcm90ud.dll9.0.30729.627693,69602-Feb-201223:47x64
Mfcm90ud.dll9.0.30729.627680,89603-Feb-201203:27x86
Mfcmifc80u.dll9.0.30729.627614,09604-Feb-201210:41x86
Microsoft.visualc.stlclr.dll9.0.30729.627648,94404-Feb-201210:41x86
Msvcm90.dll9.0.30729.6276324,09602-Feb-201223:45IA-64
Msvcm90.dll9.0.30729.6276245,76002-Feb-201223:47x64
Msvcm90.dll9.0.30729.6276225,28003-Feb-201203:27x86
Msvcm90d.dll9.0.30729.6276429,56802-Feb-201223:45IA-64
Msvcm90d.dll9.0.30729.6276333,31202-Feb-201223:47x64
Msvcm90d.dll9.0.30729.6276312,83203-Feb-201203:27x86
Msvcp90.dll9.0.30729.62761,466,19202-Feb-201223:45IA-64
Msvcp90.dll9.0.30729.6276853,32802-Feb-201223:47x64
Msvcp90.dll9.0.30729.6276569,68003-Feb-201203:26x86
Msvcp90d.dll9.0.30729.62762,515,28002-Feb-201223:45IA-64
Msvcp90d.dll9.0.30729.62761,120,59202-Feb-201223:47x64
Msvcp90d.dll9.0.30729.6276872,27203-Feb-201203:26x86
Msvcr90.dll9.0.30729.62761,505,61602-Feb-201223:45IA-64
Msvcr90.dll9.0.30729.6276641,36002-Feb-201223:47x64
Msvcr90.dll9.0.30729.6276653,13603-Feb-201203:26x86
Msvcr90d.dll9.0.30729.62763,603,28002-Feb-201223:45IA-64
Msvcr90d.dll9.0.30729.62761,359,18402-Feb-201223:47x64
Msvcr90d.dll9.0.30729.62761,178,44803-Feb-201203:26x86
Vcomp90.dll9.0.30729.6276141,64802-Feb-201223:45IA-64
Vcomp90.dll9.0.30729.627656,65602-Feb-201223:47x64
Vcomp90.dll9.0.30729.627651,02403-Feb-201203:26x86
Vcomp90d.dll9.0.30729.6276316,24002-Feb-201223:45IA-64
Vcomp90d.dll9.0.30729.6276104,78402-Feb-201223:47x64
Vcomp90d.dll9.0.30729.627688,40003-Feb-201203:26x86
Vcomp90ui.dll9.0.30729.627611,53604-Feb-201210:41x86
Vcredist_ia64.exe9.0.30729.57924,683,85603-Feb-201223:07x86
Vcredist_x64.exe9.0.30729.57925,219,91203-Feb-201222:45x86
Vcredist_x86.exe9.0.30729.57924,508,24003-Feb-201223:21x86

References


The CRichEditView class provides the functionality of a rich edit control. For more information about the CRichEditView MFC class, visit the following MSDN website:

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.