Precompiling packages yields an encoding error that repeatedly prints

Hi all,

I’m witnessing some very strange behavior, which I’ve never seen before. I’m on julia version 1.8.3, and when I run julia, even julia --version, or when I try to run using $package_name which precompiles it, I keep getting the following error:

WARNING: failed to select UTF-8 encoding, using ASCII

Which, during package compilation, prints over and over, completely clogging up the REPL, with no other information being displayed.

I’m not sure if it’s my locale, but I checked it out, and everything is set to en_US.utf8, though I get a few errors up front:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Please note, I’m using the guix-hpc versions of julia, so these should be reproducible, but if I need to go barking up that tree, I can ask there too.

Thanks in advance to anyone who can take a look, I didn’t find any other issues on discourse, and only one that remotely mentioned this on github issues, so any help will be greatly appreciated.