BUG (or issue) with Indy, C++ Builder 2010 and C++ Builder XE [Edit]

To reproduce this issue you need a clean installation (from scratch, no additional components installed, no Indy update) of C++ Builder 2010 or XE. It uses Indy 10.5.5 (with 2010) or 10.5.7 (with XE). Note: although it uses Indy to reproduce the issue, the version of Indy and Indy itself is not the one that causes this problem but the linking of C++ binary probably.

Steps to reproduce:

1. Create a simple text file with the following content. Save it as "file.txt" or any other name. It can be also full email message but the text below is enough.

Subject: =?windows-1250?B?QUVJT1UgYWVpb3UgwcnN09rdIOHp7fP6/SDCRc7UVSDiZe70dSBBTk8g?=

2. Create a new VCL (C++ Builder) application and drop Memo, Button and IdMessage to the form

3. In OnClick event for button load the above file like this:

Memo1->Text = IdMessage1->Subject;

4. When the program is built statically ("Build with runtime packages" unchecked) the letters are not decoded properly. šđčćž ŠĐČĆŽ and some others depending on version of Windows should decode improperly.

5. On XE the same applies for both static or dynamic builds (with default installation and no Indy update).

6. Try the same with Delphi 2010 application or Delphi XE application - the letters are decoded properly as they should be.

See the following screenshots for expected / unexpected output produced:

11/20/2010 4:41:43 PM
embarcadero.cppbuilder.install 385 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 56
Get it on Google Play
Get it on Apple App Store