Using {$codepage UTF8} and string case of clause together causes compiler to report : "Constant and CASE types do not match"
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
This error happens when using a (constant) string which contains characters with umlauts.
See Steps To Reproduce, Additional Information and attached files for more info.
Steps to reproduce:
- Compile attached project. Observe the error message.
- Comment out line 4 and recompile the project. No error message is shown.
Additional information:
Lazarus revision 51194 FPC revision 32854 FPC make commands: clean all install OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dTEST_WIN32_SEH COMPILER_OPTIONS=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -O- -Xs- -Si- -vbq -dTEST_WIN32_SEH OS_TARGET=win32 CPU_TARGET=i386 REVSTR=32854 UPXPROG=echo IDE=1 NOWPOCYCLE=1 INSTALL_PREFIX=f:\free_pascal_and_lazarus_new4\fpc\i386\win32\binary\3.1.1\fpc_trunk\trunk Lazarus make commands: clean all OPT=-gw2 -godwarfsets -godwarfmethodclassprefix -gl -gh -O- -Si- -vb -dHEAPTRC_WINDOW -dDBG_WITH_DEBUGGER_DEBUG UPXPROG=echo USESVN2REVISIONINC=0
---
Compile attached project with these command line options: &LtPos;pre> -MObjFPC -Scghi -gw2 -godwarfsets -gl -l -vewnhibq -Filib\i386-win32-win32-30101 -Fu. -FUlib\i386-win32-win32-30101 -FEbin\i386-win32-win32-30101\ -godwarfmethodclassprefix&LtPos;/pre>
Mantis conversion info:
- Mantis ID: 29353
- OS: Server 2008 R2
- OS Build: 6.1.7601 (SP1)
- Build: r32854
- Platform: Windows
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 32970 (#a65ab73e)