Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept separate encodings for input and ouput #2

Merged
merged 1 commit into from
Mar 13, 2012
Merged

Accept separate encodings for input and ouput #2

merged 1 commit into from
Mar 13, 2012

Conversation

knu
Copy link
Contributor

@knu knu commented Mar 12, 2012

Macの標準コマンドはパス名などをNFDのUTF-8で出力しますが、これをNFCに変換してくれるシェル環境を起動したい場合、

cocot -p UTF-8-MAC -t UTF-8 zsh

とすればよさそうに思えます。ところが、これではキーボードからの入力がNFDに変換されてプロセスに送られてしまい困ります。

本修正はプロセスの出力エンコーディングとプロセスへの入力エンコーディングを別に指定できるようにするものです。

cocot -p UTF-8,UTF-8-MAC -t UTF-8 zsh

vmi added a commit that referenced this pull request Mar 13, 2012
Accept separate encodings for input and ouput
@vmi vmi merged commit 4821a46 into vmi:master Mar 13, 2012
@vmi
Copy link
Owner

vmi commented Mar 13, 2012

パッチありがとうございます。ついでにちょこちょこいじってversion1.1にしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants