Unicode in terminal and editors

Trying to use Terminal.app (on OS X 10.4.3) in my native language. First, Mac OS X seems dum enough to set LANG="C", even if the Aqua side is localized. That's easily fixed by setting LANG and re-running bash: after that it nicely accepts unicode characters from the keyboard and, for example, "less" also prints unicode characters correctly.

However, what I would like to do is edit some files using vim or emacs (or anything reasonable for crying out loud), but that seems too much to ask on OS X. Editor behaviour DOES change when changing LANG setting, but only for the worse: a unicode character's component bytes are treated as separate characters by the editors and when using a locale other than "C", they're also printed wrong, messing the display and cursor positioning hopelessly. Now for system claiming to be a MODERN UNIX, this should not be difficult. So, where's the catch? Could somebody outline how to do this relatively simple task right on OS X?

Posted on Nov 15, 2005 11:45 AM

Reply
3 replies

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.

Unicode in terminal and editors

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