go/encconv.go @ 3ec7448dc603

Fix the CP437 in MakerLisp
author Steve Losh <steve@stevelosh.com>
date Wed, 24 Apr 2019 21:02:01 -0700
parents 87eadbc9344d
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)
}