# Precompiling packages yields an encoding error that repeatedly prints

**URL:** https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200
**Category:** General Usage
**Tags:** question, warning
**Created:** [June 11, 2023, 9:13pm UTC](https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200 "2023-06-11T21:13:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![johnabs](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@johnabs](https://discourse.julialang.org/u/johnabs)
#### Post date: [June 11, 2023, 9:13pm UTC](https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200/1 "2023-06-11T21:13:31Z")

</div>

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:

```julia
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.
