Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a few legacy commands which I need to run in the terminal. Unfortunately they only work with ISO-8859-1 encoding being used.

For now I manually switch the terminal encoding, but that bugs me. On Linux I use luit, which can convert the in- and output from utf-8 to iso and vice versa (transparently for the run command).

Is there something similar for OS X, preferably available through homebrew or available as binary?

Greetings
-Sascha-

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You can install XQuartz as a binary from http://xquartz.macosforge.org. It's the de facto standard X11 for OS X. It comes with luit and all the normal X11 stuff.

Homebrew does not have an X11 installer; it expects you tu use XQuartz, and will compile against it when it is present.

You could also use AppleScript to programmatically change your Terminal settings instead of doing it manually.

share|improve this answer
add comment

I have luit on my Mac. It was installed as part of the X11 system from XFree86. I installed it via MacPorts. Perhaps Homebrew has an X11 installer too?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.