thank you
LANG and LC_* are not set inside the container.
if locales are installed and language is set to a cyrillic one: guix shell --container swi-prolog coreutils glibc-locales -- env LANG=uk_UA.UTF-8 swipl hello.pl, that command has the same result - no output and exit code 1.
i will try --with-latest=swi-prolog. it will recompile swipl as there isn’t such a version on guix servers.
Hard to tell. Normally it should give some warning. I have no experience with guix. In these cases strace is typically my friend as it gives some clue what is happening.