Two specific issues, despite me running iconv -f iso-8859-15 on my old files when converting from sv_SE.iso8859-15 to sv_SE.utf-8 I still get distorted characters. And I believe it's because of Vim because I can't even type Swedish åäö characters in Vim any longer.
The second issue is in the Bash, when open a new shell, or start a new line, the first Swedish åäö I type does not show, until I press any second key that produces any character.
So typing å/ on my keyboard will only show å in the terminal. Typing åäö will show åö, and so forth. It always ignores the second character I type after one of these, and then starts showing at the third. Sort of like ignoring the second byte or skipping the second byte in the multibyte character.
Edit: Clarification, after I've typed the first multibyte character, others show directly. But if I type åååå four times, the first one is delayed, and then hit enter, and then typ exit what comes out is åexit. As if it saves the last byte of the last character I typed in buffer.
Here's the relevant environment configuration, please let me know if there is more needed to solve this.
$ cat .inputrc
set show-all-if-ambiguous on
set mark-directories on
set mark-symlinked-directories on
set page-completions off
set visible-stats on
set completion-query-items 9001
set input-meta on
set output-meta on
set convert-meta off
"\e[A": history-search-backward
"\e[B": history-search-forward
"\C-w": backward-kill-word
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[3~": delete-char
$ locale
LANG="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_CTYPE="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_ALL="sv_SE.UTF-8"
$ locale -a
sv_SE
sv_SE.ISO8859-1
sv_SE.ISO8859-15
sv_SE.UTF-8
Also tried this in .inputrc, advised from a Swedish mac forum. Did not help with any of the above issues. Same symptoms in both Terminal.app and iTerm2.app, with the checkbox "Escape non-ASCII characters" unchecked in Terminal.app.
set meta-flag on
set input-meta off
set output-meta on
set convert-meta off
In Vim.
- Current language: "sv_SE.UTF-8/sv_SE.UTF-8/sv_SE.UTF-8/C/sv_SE.UTF-8/sv_SE.UTF-8"
- set encoding=UTF-8
- set fileencoding=UTF-8
I'm running the latest update of Mac OS Lion with the latest beta of iTerm2. Same issue in Terminal.app so I expect this to be caused by my environment.