Feature request: general switch FPC > 3.0.0 usage of UTF8 or ACP
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
I'm looking for problems with using -dDisableUTF8RTL. Patches should only work, if FPC is higher than FPC 3.0.0. For that case it would be nice, if there is a general switch.
Possible patch attached. It only redefines the lokal
{$IF (FPC_FULLVERSION >= 30000) AND NOT DEFINED(DisableUTF8RTL)}
with a global
+{$IF FPC_FULLVERSION >= 30000}
+ {$IFDEF DisableUTF8RTL}
+ {$DEFINE UseACPRTL}
+ {$ELSE DisableUTF8RTL}
+ {$DEFINE UseUTF8RTL}
+ {$ENDIF DisableUTF8RTL}
+{$ENDIF FPC_FULLVERSION >= 30000}
and delete a old, not longer valid, patch/hack.
Additional information:
Tested with Lazarus 1.5 r50201 FPC 3.1.1 r32215 i386-win32-win32/win64
Mantis conversion info:
- Mantis ID: 28943
- Build: 50201
- Version: 1.5 (SVN)