via: http://tokuhirom.dnsalias.org/~tokuhirom/tokulog/1895.html
せっかくだからGaucheで。
$ gosh -E"use gauche.charconv" -e'(copy-port (open-input-conversion-port (standard-input-port) "*jp" :to-code "eucjp") (standard-output-port))'
ちょっと冗長。
blog comments powered by Disqus