Re: [Oorexx-devel] Rethinking error messages.
Sounds good, I tried building on Haiku OS and missing gencat utility was my first failure. ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
[Oorexx-devel] Rethinking error messages.
The purpose of the rexx.cat file is (in theory), that by having separation between the executables and the error texts, we can easily translate the error messages. In reality, there has never been any attempt at having multiple versions of the messages, and I suspect we have really been misusing the catopen() mechanisms in a way that would really prevent multiple languages from happening. The move toward the USB execution only complicates this since we desire to pick up a specific rexx.cat file rather than using the DLPATH capabilities. In addition, the Windows version makes no attempt at implementing NLS support. The error messages are bound into the rexx dll as string resources. To do any sort of translation, you need to rebuild the interpreter with a different .rc file. There is no switching. As I'm working on code to locate the specific .cat file, it occurred to be that it would be a trivial matter to implement something like Windows uses and have an internal message table rather than have this external artifact that needs to be located. Rick ___ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel
Re: [Oorexx-devel] A crash (not finding rexx.iimg?) (Re: Experimental "standalone" ooRexx interpreters
This is not an acceptable patch because it imposes a directory structure that is not necessary and is not necessarily what will be used on the other platforms. Just make the simple one-line change to the CMakeLists.txt file to install rexx.img in the same directory as librexxapi as it intended. Rick On Wed, Jan 9, 2019 at 1:21 PM Rony G. Flatscher wrote: > On 08.01.2019 21:57, Rick McGuire wrote: > > If you are splitting things up into separate bin and lib directories, then > rexx.img needs to be co-located with librexxapi in order for the image file > to be located without it being on the path or the current directory. > > After generating ooRexx for MacOS from the trunk version of CMakeList.txt > and the "make install" step, here is the resulting directory structure of > "~/Applications/ooRexx5.0.0" and the files placed in them: > > share: > total 0 > drwxr-xr-x 42 rony staff 1344 Jan 9 13:55 ooRexx > drwxr-xr-x 3 rony staff96 Jan 9 13:55 man > drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. > drwxr-xr-x 4 rony staff 128 Jan 9 13:55 . > ... cut (Rexx samples are in "ooRexx", man page files in "man/man1") ... > *lib*: > total 5688 > lrwxr-xr-x 1 rony staff 24 Jan 9 13:55 librxunixsys.dylib -> > librxunixsys.5.0.0.dylib > -rwxr-xr-x 1 rony staff52392 Jan 9 13:55 librxunixsys.5.0.0.dylib > lrwxr-xr-x 1 rony staff 21 Jan 9 13:55 librxsock.dylib -> > librxsock.5.0.0.dylib > -rwxr-xr-x 1 rony staff52996 Jan 9 13:55 librxsock.5.0.0.dylib > lrwxr-xr-x 1 rony staff 23 Jan 9 13:55 librxregexp.dylib -> > librxregexp.5.0.0.dylib > -rwxr-xr-x 1 rony staff35116 Jan 9 13:55 librxregexp.5.0.0.dylib > lrwxr-xr-x 1 rony staff 21 Jan 9 13:55 librxmath.dylib -> > librxmath.5.0.0.dylib > -rwxr-xr-x 1 rony staff29556 Jan 9 13:55 librxmath.5.0.0.dylib > lrwxr-xr-x 1 rony staff 23 Jan 9 13:55 librexxutil.dylib -> > librexxutil.5.0.0.dylib > -rwxr-xr-x 1 rony staff80884 Jan 9 13:55 librexxutil.5.0.0.dylib > lrwxr-xr-x 1 rony staff 22 Jan 9 13:55 librexxapi.dylib -> > librexxapi.5.0.0.dylib > -rwxr-xr-x 1 rony staff 146528 Jan 9 13:55 librexxapi.5.0.0.dylib > lrwxr-xr-x 1 rony staff 19 Jan 9 13:55 librexx.dylib -> > librexx.5.0.0.dylib > -rwxr-xr-x 1 rony staff 2317664 Jan 9 13:55 librexx.5.0.0.dylib > lrwxr-xr-x 1 rony staff 25 Jan 9 13:55 liborxncurses.dylib -> > liborxncurses.5.0.0.dylib > -rwxr-xr-x 1 rony staff 156248 Jan 9 13:55 liborxncurses.5.0.0.dylib > lrwxr-xr-x 1 rony staff 22 Jan 9 13:55 libhostemu.dylib -> > libhostemu.5.0.0.dylib > -rwxr-xr-x 1 rony staff26640 Jan 9 13:55 libhostemu.5.0.0.dylib > drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. > drwxr-xr-x 20 rony staff 640 Jan 9 13:55 . > > include: > total 584 > -rw-r--r-- 1 rony staff3436 Dec 14 2017 rexxplatformdefs.h > -rw-r--r-- 1 rony staff4701 Sep 30 2014 rexxplatformapis.h > -rw-r--r-- 1 rony staff3743 Dec 11 17:21 rexxapitypes.h > -rw-r--r-- 1 rony staff 15376 Dec 23 15:13 rexxapidefs.h > -rw-r--r-- 1 rony staff 40135 Dec 23 15:13 rexx.h > -rw-r--r-- 1 rony staff 55634 Dec 21 15:25 oorexxerrors.h > -rw-r--r-- 1 rony staff 167334 Dec 30 12:59 oorexxapi.h > drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. > drwxr-xr-x 9 rony staff 288 Jan 9 13:55 . > *bin*: > total 4896 > -rw-r--r-- 1 rony staff18460 Jan 9 13:52 streamsocket.cls > -rw-r--r-- 1 rony staff31703 Jan 9 13:52 socket.cls > -rw-r--r-- 1 rony staff18662 Jan 9 13:52 smtp.cls > -rwxr-xr-x 1 rony staff13692 Jan 9 13:55 rxsubcom > -rw-r--r-- 1 rony staff 3525 Jan 9 13:52 rxregexp.cls > -rwxr-xr-x 1 rony staff18580 Jan 9 13:55 rxqueue > -rw-r--r-- 1 rony staff65447 Jan 9 13:52 rxftp.cls > -rwxr-xr-x 1 rony staff 104264 Jan 9 13:55 rxapi > -rwxr-xr-x 1 rony staff14965 Jan 9 13:52 rexxtry.rex > -rwxr-xr-x 1 rony staff13676 Jan 9 13:55 rexxc > -r-xr-xr-x 1 rony staff 1936904 Jan 9 13:54 rexx.img > -r-xr-xr-x 1 rony staff44667 Jan 9 13:54 rexx.cat > -rwxr-xr-x 1 rony staff17700 Jan 9 13:55 rexx > -rw-r--r-- 1 rony staff31791 Jan 9 13:52 ncurses.cls > -rw-r--r-- 1 rony staff11444 Jan 9 13:52 mime.cls > -rwxr-xr-x 1 rony staff14236 Jan 9 13:55 libwpipe3.dylib > -rwxr-xr-x 1 rony staff13408 Jan 9 13:55 libwpipe2.dylib > -rwxr-xr-x 1 rony staff13932 Jan 9 13:55 libwpipe1.dylib > -rw-r--r-- 1 rony staff13955 Jan 9 13:52 json.cls > -rw-r--r-- 1 rony staff24957 Jan 9 13:52 csvStream.cls > -rwxr-xr-x 1 rony staff17608 Jan 9 13:55 callrexx2 > -rwxr-xr-x 1 rony staff21540 Jan 9 13:55 callrexx1 > drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. > drwxr-xr-x 24 rony staff 768 Jan 9 13:55 . > > > It seems to be the standard on Unix, that applications/tools place their > binaries/commands in a "bin" direc
Re: [Oorexx-devel] A crash (not finding rexx.iimg?) (Re: Experimental "standalone" ooRexx interpreters
On 08.01.2019 21:57, Rick McGuire wrote: > If you are splitting things up into separate bin and lib directories, then > rexx.img needs to be > co-located with librexxapi in order for the image file to be located without > it being on the path > or the current directory. After generating ooRexx for MacOS from the trunk version of CMakeList.txt and the "make install" step, here is the resulting directory structure of "~/Applications/ooRexx5.0.0" and the files placed in them: share: total 0 drwxr-xr-x 42 rony staff 1344 Jan 9 13:55 ooRexx drwxr-xr-x 3 rony staff96 Jan 9 13:55 man drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. drwxr-xr-x 4 rony staff 128 Jan 9 13:55 . ... cut (Rexx samples are in "ooRexx", man page files in "man/man1") ... *lib*: total 5688 lrwxr-xr-x 1 rony staff 24 Jan 9 13:55 librxunixsys.dylib -> librxunixsys.5.0.0.dylib -rwxr-xr-x 1 rony staff52392 Jan 9 13:55 librxunixsys.5.0.0.dylib lrwxr-xr-x 1 rony staff 21 Jan 9 13:55 librxsock.dylib -> librxsock.5.0.0.dylib -rwxr-xr-x 1 rony staff52996 Jan 9 13:55 librxsock.5.0.0.dylib lrwxr-xr-x 1 rony staff 23 Jan 9 13:55 librxregexp.dylib -> librxregexp.5.0.0.dylib -rwxr-xr-x 1 rony staff35116 Jan 9 13:55 librxregexp.5.0.0.dylib lrwxr-xr-x 1 rony staff 21 Jan 9 13:55 librxmath.dylib -> librxmath.5.0.0.dylib -rwxr-xr-x 1 rony staff29556 Jan 9 13:55 librxmath.5.0.0.dylib lrwxr-xr-x 1 rony staff 23 Jan 9 13:55 librexxutil.dylib -> librexxutil.5.0.0.dylib -rwxr-xr-x 1 rony staff80884 Jan 9 13:55 librexxutil.5.0.0.dylib lrwxr-xr-x 1 rony staff 22 Jan 9 13:55 librexxapi.dylib -> librexxapi.5.0.0.dylib -rwxr-xr-x 1 rony staff 146528 Jan 9 13:55 librexxapi.5.0.0.dylib lrwxr-xr-x 1 rony staff 19 Jan 9 13:55 librexx.dylib -> librexx.5.0.0.dylib -rwxr-xr-x 1 rony staff 2317664 Jan 9 13:55 librexx.5.0.0.dylib lrwxr-xr-x 1 rony staff 25 Jan 9 13:55 liborxncurses.dylib -> liborxncurses.5.0.0.dylib -rwxr-xr-x 1 rony staff 156248 Jan 9 13:55 liborxncurses.5.0.0.dylib lrwxr-xr-x 1 rony staff 22 Jan 9 13:55 libhostemu.dylib -> libhostemu.5.0.0.dylib -rwxr-xr-x 1 rony staff26640 Jan 9 13:55 libhostemu.5.0.0.dylib drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. drwxr-xr-x 20 rony staff 640 Jan 9 13:55 . include: total 584 -rw-r--r-- 1 rony staff3436 Dec 14 2017 rexxplatformdefs.h -rw-r--r-- 1 rony staff4701 Sep 30 2014 rexxplatformapis.h -rw-r--r-- 1 rony staff3743 Dec 11 17:21 rexxapitypes.h -rw-r--r-- 1 rony staff 15376 Dec 23 15:13 rexxapidefs.h -rw-r--r-- 1 rony staff 40135 Dec 23 15:13 rexx.h -rw-r--r-- 1 rony staff 55634 Dec 21 15:25 oorexxerrors.h -rw-r--r-- 1 rony staff 167334 Dec 30 12:59 oorexxapi.h drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. drwxr-xr-x 9 rony staff 288 Jan 9 13:55 . *bin*: total 4896 -rw-r--r-- 1 rony staff18460 Jan 9 13:52 streamsocket.cls -rw-r--r-- 1 rony staff31703 Jan 9 13:52 socket.cls -rw-r--r-- 1 rony staff18662 Jan 9 13:52 smtp.cls -rwxr-xr-x 1 rony staff13692 Jan 9 13:55 rxsubcom -rw-r--r-- 1 rony staff 3525 Jan 9 13:52 rxregexp.cls -rwxr-xr-x 1 rony staff18580 Jan 9 13:55 rxqueue -rw-r--r-- 1 rony staff65447 Jan 9 13:52 rxftp.cls -rwxr-xr-x 1 rony staff 104264 Jan 9 13:55 rxapi -rwxr-xr-x 1 rony staff14965 Jan 9 13:52 rexxtry.rex -rwxr-xr-x 1 rony staff13676 Jan 9 13:55 rexxc -r-xr-xr-x 1 rony staff 1936904 Jan 9 13:54 rexx.img -r-xr-xr-x 1 rony staff44667 Jan 9 13:54 rexx.cat -rwxr-xr-x 1 rony staff17700 Jan 9 13:55 rexx -rw-r--r-- 1 rony staff31791 Jan 9 13:52 ncurses.cls -rw-r--r-- 1 rony staff11444 Jan 9 13:52 mime.cls -rwxr-xr-x 1 rony staff14236 Jan 9 13:55 libwpipe3.dylib -rwxr-xr-x 1 rony staff13408 Jan 9 13:55 libwpipe2.dylib -rwxr-xr-x 1 rony staff13932 Jan 9 13:55 libwpipe1.dylib -rw-r--r-- 1 rony staff13955 Jan 9 13:52 json.cls -rw-r--r-- 1 rony staff24957 Jan 9 13:52 csvStream.cls -rwxr-xr-x 1 rony staff17608 Jan 9 13:55 callrexx2 -rwxr-xr-x 1 rony staff21540 Jan 9 13:55 callrexx1 drwxr-xr-x 6 rony staff 192 Jan 9 13:55 .. drwxr-xr-x 24 rony staff 768 Jan 9 13:55 . It seems to be the standard on Unix, that applications/tools place their binaries/commands in a "bin" directory and its libraries into a sibling "lib" directory. So, if one has the location of the "lib" directory, with "../bin" one could find the companion "bin" directory. As one can see the "bin" directory on Unix includes the following binaries: "rexx", "r