Array of Widechar isn't useable with -FcCP1252
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
If I want to compile a project with my default codepage 1252 (compiler option -FcCP1252), at the assigning of a string to a widechar the compiler stops working.
If I use -FcUTF8 or no compiler option the project is compiled.
Steps to reproduce:
Compile a project with -FcCP1252
program project1;
Type
WideArray = array [0..3] of Widechar;
var
Test: WideArray;
begin
Test := 'hmmm';
end.
You can also try to compile the attached project.
Additional information:
The result is:
C:\03 Project CP\Sicherung\2>fpc project1.pas -FcCP1252
Free Pascal Compiler version 3.0.0rc2 [2015/10/11] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling project1.pas
Fatal: Compilation aborted
Error: C:\FreepascalRC\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
Mantis conversion info:
- Mantis ID: 28934
- OS: 64bit
- Build: RC2
- Platform: Windows7
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 32202 (#4decb81a)
- Target version: 3.0.0