Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong char decoding with PS_NOWIDESTRING undefined #237

Open
Dmitro25 opened this issue Aug 1, 2020 · 0 comments
Open

Wrong char decoding with PS_NOWIDESTRING undefined #237

Dmitro25 opened this issue Aug 1, 2020 · 0 comments

Comments

@Dmitro25
Copy link

Dmitro25 commented Aug 1, 2020

Hi!
As a result of executing this code:
var c: char; begin c := #$96; end;
the variable "c" will have a value chr($3F), but not chr($96) as expected.
The reason for this is that an incorrect assignment s := tbtstring(w); (where "s" is String and "w" is WideString) is made inside "TPSPascalCompiler.ReadString" function.

This behavior is noted when the program is compiled with Delphi7 and PS_NOWIDESTRING is undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant