bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] trying to run gnu-apl on a Mac


From: Jeff Derby
Subject: Re: [Bug-apl] trying to run gnu-apl on a Mac
Date: Wed, 17 Apr 2019 19:49:24 -0400

Jürgen,

thanks very much for the response to my queries.  i think the problem with trying to )IN my .atf files may have been how the apl characters were encoded using ascii codepoints by ibm apl2 and this may have resulted in some confusion, since in some cases i may have tried to edit a .atf file and introduced some utf8-encodings.  i'll write an apl function to edit binary versions of the .atf files to at least replace all the ascii with utf8, and see what happens.  i'll let you know.

i also finally seem to have the union keyboard that i'd been using forever with apl2 working properly for gnu-apl on my mac

best regards

Jeff H. Derby
------
IBM Corporation
RTP, NC  USA
Cell: (919) 672-0962
Internet:  address@hidden




From:        "Dr. Jürgen Sauermann" <address@hidden>
To:        Jeff Derby <address@hidden>, address@hidden
Date:        04/13/2019 17:08
Subject:        Re: [Bug-apl] trying to run gnu-apl on a Mac




Hi Jeff,

regarding )IN if I remember correctly then (relative) file names of .atf files are from some root directory
as shown by )LIBS. If that does not work then try absolute file names (i.e. starting with / ).

The .atf files read by )IN are not supposed to be utf-8 encoded. )IN also does some translation
from the IBM code pages to the proper unicode characters, I was able to read some IBM APL2
files that were shipped with the APL2 evaluation package, e.g. workspace DISPLAY.

On the other hand ⎕FIO[49] probably assumes an utf-8 encoded text file. For reading bytes,
⎕FIO[41] may be a better choice.

I would assume that using )IN is much simpler than using ⎕FIO[49] and if that fails then
I would like to know about and fix it.

If you need more help, please don't hesitate to ask.

Best Regards,
Jürgen Sauermann



On 4/13/19 10:47 PM, Jeff Derby wrote:
hello,

i'm trying to get gnu-apl running on a Mac under macOS Mojave 10.14.4,  i installed it using brew.  i have a large number of .atf files that were generated using ibm apl2 under windows.  when i try to )in one of them i get 'no such file or directory'.  if i try to read a transfeer file with ⎕FIO[49] i get an (almost) endless stream of 'truncated UTF8 string' errors.  is there an assumption that a .atf file is UTF8-encoded?  is there some other problem


any help would be greatly appreciated.  thanks in advance


Jeff H. Derby
------
IBM Corporation
RTP, NC  USA
Cell: (919) 672-0962
Internet:  
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]