I’m trying to process some files using nftw but the read values do not seem to be encoded in utf-8. Is there a way to force this?, or is there a different function that should be used instead of ntfw?
I tried this, which works for command line arguments, but not for ntfw.
It was a “failed to installed locale” problem. The commands ftw and nftw worked well in the repl but then when executing the program in a terminal it had problems with the encoding. I’m using autotools for the installation (of guile and a small guile program) and at some point it went out of sync with the guix-profile/lib/locale/2.39 version, It was searching for the 2.35 version.
Thanks to @ashraz, the use of the strace command on guile --version allowed me to debug this issue.
Maybe this is a pitfall of using autotools for guile programs in a guix environment?. I have two versions of guile, one installed in /usr/local/lib/guile, the other one in the guix store.
For a second, I was a bit confused because I couldn’t remember helping you on that issue, but I guess you used the solution/strace command from the following thread:
Yes, thank you, I should have clarified that. I was not aware of the link to post feature, your reply is pointing to the precise post with the solution, using the following command: