Hello,
The following works fine
var
anarrowstring : pchar = 'this is a "narrow" string';
...
begin
writeln(anarrowstring);
end.
The compiler is, as expected, perfectly happy with that. On the other hand, if pchar is changed to pwidechar, the compiler emits an error stating that variables of that type can neither be read nor written. e,g. the following does not work :
var
awidestring : pwidechar = 'this is a "wide" string';
...
begin
writeln(awidestring);
end.
Did I miss something or is it really the case that writeln cannot write wide characters to the console ? I can always import wprintf from user32.dll but, I'd rather keep things "pascal" if possible.
Thank you for your help.