It's a bug in the handling of the constant string
## Summary <!-- Summarize the bug encountered concisely --> It's a bug in the handling of the constant string (the code that handles the constant value does not correctly handle the case of the string constant being a Unicode string constant unlike the code for expressions) ## System Information <!-- The more information are provided the easier it is to replicate the bug --> - **Operating system:** <!-- Windows, Linux (if possible, also name the distro), FreeBSD, Android, ... --> Windows - **Processor architecture:** <!-- x86, x86-64, ARM, AARCH64, AVR, RISC-V, PowerPC, ... --> x86, x86-64 - **Compiler version:** <!-- 3.2, 3.2.2, 3.3, trunk, beta, ... (if possible, give also the git hash) -->All - **Device:** <!-- Computer, Tablet, Mobile, Amiga, Microcontroller, ... -->Computer ## Steps to reproduce <!-- How one can reproduce the issue - this is very important! --> ```pascal {$codepage utf8} program project1; var ar: PChar = 'Ёжик'; begin Writeln(strlen(ar)); //Error Writeln(Length(Ar)); //Error ar := 'Ёжик'; Writeln(strlen(ar)); //Ok Writeln(Length(Ar)); //Ok Readln; end. ``` ## Example Project <!-- If possible, please create an example project that exhibits the problematic behavior, and link to it here in the bug report. --> ## What is the current bug behavior? <!-- What actually happens --> ## What is the expected (correct) behavior? <!-- What you should see instead --> Incorrect getting pchar variable value. ## Relevant logs and/or screenshots <!-- Paste any relevant logs - please use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise. You can also use syntax highlighting for Pascal with: ```pascal the code``` For more information see https://docs.gitlab.com/ee/user/markdown.html --> ## Possible fixes <!-- If you can, link to the line of code that might be responsible for the problem -->
issue