87eadbc9344d
Please end my life
| author | Steve Losh <steve@stevelosh.com> | 
|---|---|
| date | Wed, 24 Apr 2019 20:58:18 -0700 | 
| parents | 116d65dfdb35 | 
| children | 3ec7448dc603 | 
| branches/tags | (none) | 
| files | .hgignore go/encconv.go xsessionrc | 
Changes
--- a/.hgignore Mon Apr 22 13:16:39 2019 -0400 +++ b/.hgignore Wed Apr 24 20:58:18 2019 -0700 @@ -44,5 +44,6 @@ vim/bundle/LanguageClient-neovim weechat/sec.conf lisp/bin +go/bin lisp/man mutt/accounts
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/go/encconv.go Wed Apr 24 20:58:18 2019 -0700 @@ -0,0 +1,14 @@ +package main + +import ( + "io" + "os" + + "golang.org/x/text/encoding/charmap" + "golang.org/x/text/transform" +) + +func main() { + r := transform.NewReader(os.Stdin, charmap.CodePage437.NewDecoder()) + io.Copy(os.Stdout, r) +}