Bug 2379776

Summary: On a fresh installation, fish ends up with broken locales
Product: [Fedora] Fedora Reporter: Dmitry Tantsur <dtantsur>
Component: fishAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 42CC: dan.cermak, igor.raits, luto, michel, ngompa13, svashisht
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: fish-4.2.0-1.fc43 fish-4.2.0-1.el10_2 fish-4.2.0-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-11 00:49:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dmitry Tantsur 2025-07-13 19:09:09 UTC
Something in fish (or between Konsole and fish) ends up with a weird locale. Symptoms:

1. The locale command shows an error:

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_DE.UTF-8
LC_TIME=en_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_DE.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_DE.UTF-8
LC_TELEPHONE=en_DE.UTF-8
LC_MEASUREMENT=en_DE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

2. Ansible refuses to work

ERROR: Ansible could not initialize the preferred locale: unsupported locale setting

3. ViM's addon YouCompleteMe is sure I don't use UTF-8:

YouCompleteMe unavailable: requires UTF-8 encoding. Put the line 'set encoding=utf-8' in your vimrc.

And so on.

Nothing like this happens if I exec bash in the same window. I've tried all recipes from the internet without luck.

Also interestingly, I have an older laptop with F42, MATE and fish, and everything works there. But this laptop has been upgraded many times, maybe that's why.

Reproducible: Always

Steps to Reproduce:
1. Open fish, try to use stuff
2.
3.
Actual Results:
Many programs don't work because of poorly articulated issues with locale

Expected Results:
Everything works (like in bash)

Comment 1 Fedora Update System 2025-11-09 19:52:45 UTC
FEDORA-2025-8af0b3a063 (fish-4.1.2-5.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-8af0b3a063

Comment 2 Fedora Update System 2025-11-09 19:52:52 UTC
FEDORA-EPEL-2025-9542b4ed95 (fish-4.1.2-5.el10_2) has been submitted as an update to Fedora EPEL 10.2.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-9542b4ed95

Comment 3 Fedora Update System 2025-11-09 19:52:58 UTC
FEDORA-2025-81f0854f75 (fish-4.1.2-5.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-81f0854f75

Comment 4 Fedora Update System 2025-11-10 01:23:33 UTC
FEDORA-2025-8af0b3a063 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-8af0b3a063`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-8af0b3a063

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-11-10 02:02:42 UTC
FEDORA-2025-81f0854f75 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-81f0854f75`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-81f0854f75

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-11-10 03:28:50 UTC
FEDORA-EPEL-2025-9542b4ed95 has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-9542b4ed95

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-11-11 00:49:58 UTC
FEDORA-2025-8af0b3a063 (fish-4.2.0-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2025-11-11 15:17:16 UTC
FEDORA-2025-81f0854f75 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-81f0854f75`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-81f0854f75

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2025-11-11 18:27:44 UTC
FEDORA-EPEL-2025-9542b4ed95 has been pushed to the Fedora EPEL 10.2 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-9542b4ed95

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2025-11-19 02:12:55 UTC
FEDORA-EPEL-2025-9542b4ed95 (fish-4.2.0-1.el10_2) has been pushed to the Fedora EPEL 10.2 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2025-11-19 02:30:14 UTC
FEDORA-2025-81f0854f75 (fish-4.2.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.