Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

Problems exporting if var contains ⎕UCS 0 #450

Closed mbaas2 closed 2 years ago

mbaas2 commented 2 years ago

To Reproduce ⎕se.Link.Version 3.0.4

      a←2 2⍴'xx' 'bbb' (,⎕UCS 0) 1
      ]link.export a c:\tmp\ -overwrite
Exported: #.t2.a →  c:/tmp/a.apla 
       aa←2 2⍴'xx' 'bbb' (,⎕UCS 0) (,⎕UCS 0)
      ]link.export aa c:\tmp\ -overwrite
>> Output from ⎕SE.Link.U.Warn[6]
Link Warning: Cannot get source of #.t2.aa: Array cannot be serialised
ERRORS ENCOUNTERED: Export failed: #.t2.aa

Expected behaviour aa should have exported in the same way a was

Desktop (please complete the following information):

Dyalog 18.2.45049 64-bit Unicode, BuildID 1191f7a1
OS Windows 10 or Windows Server 2016 (10.0.19044) 64-bit
SALT 2.9, Link: 3.0.4
UCMD 2.51
.NET .NET Core 3.1.22
WS 18.2

(reported by J.Wiedemann)