[fpc-devel] Unicode support (yet again)

Sven Barth pascaldragon at googlemail.com
Sun Sep 18 12:26:58 CEST 2011


On 18.09.2011 11:27, Martin Schreiber wrote:
> On Sunday 18 September 2011 10.50:26 Sven Barth wrote:
>>
>> Well... you can now take a look at trunk as well, because the changes
>> from cpstrnew have been merged yesterday.
>>
> [...]
> make[7]: Entering directory `/home/mse/packs/standard/svn/fp/trunk/rtl/linux'
> /home/mse/packs/standard/svn/fp/trunk/compiler/ppc2 -Ur -Ur -Xs -O2 -n -
> Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE. -
> FU/home/mse/packs/standard/svn/fp/trunk/rtl/units/i386-linux -di386 -dRELEASE
> -Us -Sg system.pp
> This binary has no unicodestrings support compiled in.
> Recompile the application with a unicodestrings-manager in the program uses
> clause.
> Fatal: Compilation aborted
> An unhandled exception occurred at $08056B3F :
> ENoWideStringSupport : SIGQUIT signal received.
>    $08056B3F
>    $08092A8C
>    $080926DD
>    $080F121E
>    $080F48D5
>    $080F5CEF
>    $08067532

For now you can apply the following patch as a workaround. The compiler 
(and fpmake) will depend on the C-library then (which should not be the 
case in the final solution).

Regards,
Sven

--- fpc/compiler/pp.pas	2011-06-21 20:29:50.340618090 +0200
+++ fpc-build/compiler/pp.pas	2011-09-18 12:11:46.823598604 +0200
@@ -166,6 +166,9 @@
  {$ifdef profile}
    profile,
  {$endif profile}
+{$ifdef unix}
+  cwstring,
+{$endif}
  {$ifndef NOCATCH}
    {$if defined(Unix) or defined(Go32v2) or defined(Watcom)}
      catch,
--- fpc/packages/fpmkunit/src/fpmkunit.pp	2011-09-18 11:44:03.176488622 
+0200
+++ fpc-build/packages/fpmkunit/src/fpmkunit.pp	2011-09-18 
12:14:34.279871962 +0200
@@ -45,6 +45,9 @@

  uses
    SysUtils, Classes, StrUtils
+{$ifdef unix}
+  ,cwstring
+{$endif}
  {$ifdef HAS_UNIT_PROCESS}
    ,process
  {$endif HAS_UNIT_PROCESS}




More information about the fpc-devel mailing list