[fpc-pascal] FPC Unicode / CodePage aware strings
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Thu Dec 10 11:35:41 CET 2015
On 2015-12-10 10:22, Vincent Snijders wrote:
> And mode DelphiUnicode?
Oh, yet another compiler mode. Okay, just tried, and got these warnings,
but the project at least compiled and generated a binary.
Compile Project, Target: project1: Success, Warnings: 5
project1.lpr(37,47) Warning: Implicit string type conversion with
potential data loss from "UnicodeString" to "AnsiString"
project1.lpr(38,50) Warning: Implicit string type conversion with
potential data loss from "UnicodeString" to "AnsiString"
project1.lpr(41,36) Warning: Implicit string type conversion from "Char"
to "UnicodeString"
project1.lpr(41,47) Warning: Implicit string type conversion with
potential data loss from "UnicodeString" to "AnsiString"
project1.lpr(42,50) Warning: Implicit string type conversion with
potential data loss from "UnicodeString" to "AnsiString"
Now I try and run the binary and get the following error.
[t2]$ ./project1
This binary has no unicodestrings support compiled in.
Recompile the application with a unicodestrings-manager in the program
uses clause.
An unhandled exception occurred at $000000000044354D:
ENoWideStringSupport: SIGQUIT signal received.
$000000000044354D
Okay, so I add the "unicodestrings-manager" unit to the program unit's
uses clause, as the above message suggests.
Now I can't compile the project...
project1.lpr(10,43) Fatal: Cannot find unicodestrings used by project1
of the Project Inspector.
Yeah, my experience with FPC Unicode is going really well. ;-)
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal
mailing list