[fpc-devel] Unicode String Manager on darwin
Sven Barth
pascaldragon at googlemail.com
Tue Mar 5 14:01:31 CET 2013
Am 03.03.2013 22:23, schrieb Louis Salkind:
> With the fpc 2.7.1 trunk, the following simple program does not work
> under darwin unless I also include the unit cwstring:
>
> program project1;
> {$mode objfpc}{$H+}
> uses sysutils; // also needs the unit cwstring to work
> under darwin
>
> function toupper(const s: WideString): WideString;
> begin
> result := WideUpperCase(s);
> end;
>
> begin
> writeln(toupper('hello world'));
> end.
>
> ---
>
> Is this the intended behavior?
>
Yes, this is intended behavior on Unix based systems, because this will
cause the code to link to the C library (though one can debate whether
this makes any difference on Mac OS X, where we link to the C library
anyway...).
Regards,
Sven
More information about the fpc-devel
mailing list