it’s not the debuggers same happens when running standalone.
It’s fine in classic Cocoa, fails on Island; all four individual characters print fine separately,
namespace ConsoleApplication;
type
Program = class
public
class method Main(args: array of String): Int32;
begin
// add your own code here
var x := '└── ';
writeLn($'x {length(x)}');
writeLn($'{ord(x[0])}');
writeLn($'{ord(x[1])}');
writeLn($'{ord(x[2])}');
writeLn($'{ord(x[3])}');
writeLn($'x {x}');
end;
end;
end.
Carlo thinks its somewhere in the UTF8 conversion that happens for outputting to the console, but TextConvert.StringToUTF8(x) is fined too… We’ll get to the bottom of it…
I’m not by my computer at the moment (on my phone) but does '"├── " trigger the error too? I ask because these are characters used in the Linux tree command.
It’s definitely a compiler-side issue of some sort though, because it’s fine in Toffee, and it’s also file when I pass it to NSLog(). only Island’s writeLn() fails, and only for the whole combo.