zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Fix locale issues in Mac OS X

August 16, 2012 by Igor Drobot Leave a Comment

I faced a problem with locales in terminal on Mac OS X Lion. Midnight Commander didn’t want to display Cyrillic symbols in filenames and directories, on my remote media-Server I’ve been getting messages like “warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)”. The solution is fairly simple – add these two lines to ~/.bash_profile (by default is seems to be missing, so create the file):

1
2
3
4
ids:~ id$ cat .bash_profile 
 
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

ids:~ id$ cat .bash_profile export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8

Filed Under: Apple, Bash, Mac OS X Tagged With: Apple, bash, locale, MAC OS X

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *