I reproduced the bug on my apple m1 running macos 13.3.1. The issue was a bit more complicated than that in the stackoverflow report. Apparently macos strtod() ignored the LC_NUMERIC set by uselocale() and need a workaround by using the thread unsafe setlocale().
On Sun, Apr 30, 2023 at 4:38 PM Nils Reuße <[email protected]> wrote: > Hi Bill, > > I noticed that you already fixed the bug with > bc1be6e01ddbfbfc11336e35f9b70209318b7642, thank you for that! > > It might be a problem with macOS 13 - I found this, will try it later > today: https://apple.stackexchange.com/a/452339. From the GitHub workflow > file I noticed that you build and test on macOS 12, so maybe the behavior > differs there. > > I also installed J9.4 on my openbsd machine and there is no such problem. > > Nils > > > Am 30.04.2023 um 00:10 schrieb bill lam <[email protected]>: > > > > LC_NUMERIC is set to C inside jconsole and jqt, but apparently it > doesn't > > work on MacOS anymore. I will investigate this bug. Thank you for > reporting > > it. > > > >> On Sun, 30 Apr 2023 at 4:13 AM Nils Reuße <[email protected]> wrote: > >> > >> Thank you Bill! > >> > >> Setting LC_NUMERIC=C worked for me (it was unset by default). Loading > >> pacman and installing/updating all packages worked fine and jqt starts > now > >> :) > >> > >> There is still one issue, though: when I click on the jc9.4.app-Icon on > my > >> desktop (which was created during the installation), a terminal running > >> jconsole opens as it should, but LC_NUMERIC is unset again and the same > >> error message as in my first post appears. It would IMHO make sense to > set > >> LC_NUMERIC in the jconsole-wrapper, or directly inside jconsole. I can > try > >> to create a diff in the next few days if you or another developer is > >> interested in that. > >> > >> Nils > >> > >>>> Am 29.04.2023 um 16:39 schrieb bill lam <[email protected]>: > >>> > >>> This should be a locale issue. decimal point and thousand separators > >>> swapped in some locales > >>> I can reproduce the bug by > >>> % LC_NUMERIC=fr_FR jc > >>> |ill-formed number: boot > >>> | dm=. 0 2 320 1280 2 720 243.247 244.273 > >>> | ^ > >>> | android_getdisplaymetrics=:3 :0 > >>> |[-201] /usr/local/share/j/9.5/system/main/stdlib.ijs > >>> > >>> In the meantime you can try execute the jconsole by forcing LC_NUMERIC > >>> > >>> LC_NUMERIC=C ./jconsole > >>> or > >>> LC_NUMERIC=en_US ./jconsole > >>> > >>> > >>> > >>>> On Sat, Apr 29, 2023 at 10:16 PM Nils Reuße <[email protected]> > wrote: > >>> > >>>> Hi all, > >>>> > >>>> I’m new to J and am trying to install J9.4 on my M1 Macbook (arm64) > with > >>>> macOS 13.3.1. > >>>> > >>>> I used the zip from the wiki page [1] and followed all the steps under > >>>> macOS. After that, I tried to follow the steps under „Finnish > >>>> Installation“, but when I start jconsole, I get the error „ill-formed > >>>> number: boot“ and loading pacman is not possible. Clicking on jqt.app > >>>> seems to crash jqt immediately. Simple expressions inside the console > >> get > >>>> evaluated, however: > >>>> > >>>> % ./jconsole > >>>> |ill-formed number: boot > >>>> | dm=. 0 2 320 1280 2 720 243.247 244.273 > >>>> | ^ > >>>> | android_getdisplaymetrics=:3 :0 > >>>> |[-201] /Users/nils/J/j9.4/system/main/stdlib.ijs > >>>> > >>>> load 'pacman' > >>>> |value error: load > >>>> | load’pacman' > >>>> > >>>> 1 + 1 > >>>> 2 > >>>> <: 1 2 3 4 > >>>> 0 1 2 3 > >>>> > >>>> Am I doing it wrong or is this a problem with J on arm64 macOS? > >>>> Installation on Windows 10 on amd64 with winget worked without any > >> problems. > >>>> > >>>> I also did not find the matching source code for this release, or any > >>>> release at all, so I could not try to compile J from source. > >>>> > >>>> Kind regards > >>>> Nils > >>>> > >>>> [1] https://code.jsoftware.com/wiki/System/Installation/J9.4/Zips > >>>> ---------------------------------------------------------------------- > >>>> For information about J forums see > http://www.jsoftware.com/forums.htm > >>>> > >>> ---------------------------------------------------------------------- > >>> For information about J forums see http://www.jsoftware.com/forums.htm > >> > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > >> > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
