C Builder incorrectly decodes header under the release configuration for TIdMessage #399
Labels
Element: Email Encoders/Decoders
Issues related to Email parsers and generators
Status: Review Needed
Issue needs further review to decide next status
Type: Bug
Issue is a bug in existing code
Attached with this bug report is a project which demonstrates it:
IndyBug-CPP.zip
RAD studio used is 10.4.2 (Sydney)
Under the Debug configuration program builds and runs fine and properly decodes subject header (note - the same happens for other headers as well as filenames under the body):
Under the Release configuration, the output is garbled.
The only difference in release configuration are the usual to build standalone executable:
The above is in KOI8-R (Russian) encoding but the problem doesn't only appear for that encoding, the same happens for windows-1255 (Hebrew) encoding as well and most likely other encodings.
Code:
So in other words, when exe is statically linked it doesn't work but it works from the debugger config.
Again, the problem occurs both on headers as well as body attachment filenames.
The problem has been present for a long time in Indy.
The text was updated successfully, but these errors were encountered: