So I have been used for a very long time to typing special characters such as accented vowels and the quite common ñ
in Spanish language when using bash on my Mac. Specifically, I used to write commit messages in Spanish via bash using these characters, no problem.
After upgrading my Mac to OS X El Capitan 10.11.5, I noticed that as soon as I type one of these characters, the prompt changes and does not display the typed character, for instance, pressing ñ
changes my prompt from
host:directory username $
to
(arg: 1)
instead of simply showing ñ
on the screen. A similar thing happens with other accentuated characters and other special characters, except the index displayed next to arg
changes.
While working on my MacBook Air with OSX Yosemite 10.10.5, these characters display without a problem on the command line, as I was used to.
Both computers have the same set of encodings set in Terminal>Preferences, so that shouldn't be the issue. Also, the output of locale
on both computers is the same, namely
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
I thought the terminal would be the only affected area through this update. It really turned into a problem when running a python script that would run perfectly on my OSX 10.10.5 Mac, would exit with encoding errors on my 10.11.5 Mac, under the SAME version of Python (3.4.3).