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.

{code}
Subject: =?windows-1250?B?QUVJT1UgYWVpb3UgwcnN09rdIOHp7fP6/SDCRc7UVSDiZe70dSBBTk8g?=
	=?windows-1250?B?YW5vIMTLSdbcWSDk62n2/HkgitDIxo4gmvDo5p4gISA/IMfnIE8gbyDf?=
	=?windows-1250?B?IG8gYSBPIG8gQWEgQSBhID8/ID8/IKsguyCLIJsgLCdjIEwggCBZIGYg?=
	=?windows-1250?B?pCD3ILAgsSC1IIkgMSAxIDMgqSCuIJkglSCnIIYghyCWIJc=?=
{code}

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:

{code}
IdMessage1->LoadFromFile("file.txt",false);
Memo1->Text = IdMessage1->Subject;
{code}

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:

http://img139.imageshack.us/img139/7939/52511718.png
http://i52.tinypic.com/2h4av5d.png
0
John
11/20/2010 4:41:43 PM
embarcadero.cppbuilder.install 385 articles. 0 followers. Follow

0 Replies
1554 Views

Similar Articles

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

Reply: