Memo issue

When I open a text file on Mac with the Mac text editor, select some lines, copy them and paste them into a TMS FMX memo, the lines are unreadable.


This happen only when the file is in Unix/OSX format ($0a as linefeed), not when it is in Windows format ($0d$0a as linefeed)


What Delphi version do you use? Internally, the TTMSFMXMemo uses the Delphi RTL function AdjustLineBreaks that should handle the line breaks specific to the operating system, but perhaps, if you use an older version of Delphi, there is still an issue with this AdjustLineBreaks RTL method?

I use Delphi Pro 10.1 Berlin Update 2.

No issue when using a normal TMemo.
No issue on with Windows as target platform.

Did not notice that earlier because I used files from Windows, which all had $d$a as line feed. A couple of customer sent me screenshots about issues with this, so I learned about it.

Any update on this? Getting more and more emails from customer complaining.

It's on our todolist to reopen & reinvestigate.

Hi, 


Issue is resolved, the next version will address this.

Great, thanks. Any chance I can apply the changes to get the memo working before the next update?

Hi, 


In the PasteFromClipboard there is a function AdjustLineBreaks that needs to change to the following code:

AdjustLineBreaks(Buff);

to

Buff := AdjustLineBreaks(Buff, tlbsCRLF);