LC_COLLATE Terminal Error

Hello


I have the below error in terminal, How Can solve the problem and reset the settings for terminal.

-bash: warning: setlocale: LC_COLLATE: cannot change locale (): No such file or directory
Mac:~ arwa$ 






[Edited by Moderator]



MacBook Air, macOS 15.6

Posted on Aug 5, 2025 2:50 AM

Reply
1 reply

Aug 5, 2025 10:56 AM in response to arwa108

arwa108 wrote:


Hello

I have the below error in terminal, How Can solve the problem and reset the settings for terminal.
-bash: warning: setlocale: LC_COLLATE: cannot change locale (): No such file or directory
Mac:~ arwa$ 




https://discussions.apple.com/content/attachment/f7efdc63-8175-4f66-8c55-67f56a8b647c


https://discussions.apple.com/content/attachment/96fa940e-15d3-4030-a30b-377faf0fe84d

[Edited by Moderator]



as a test from the Terminal>Settings>General ...




you make no mention of broken $PATH from complications from installing Brew, Nix, SDKs, etc. (?)



see if there is anything here: Fixing a hacked up /etc/hosts file

ref: Fixing a hacked /etc/hosts file - Apple Community




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

LC_COLLATE Terminal Error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.