go/cp437-to-utf8.go @ deea0d6d9ac4

Add weechat/plugins.conf to .hgignore.
author Steve Losh <steve@stevelosh.com>
date Thu, 26 Dec 2019 10:41:10 -0500
parents dabb5f1ef3b2
children (none)
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)
}