Stdio.FILE.set_charset now tries to use the environmentvariables CHARSET and LANG to detect a suitable charset if none is specified. Use this functionality from Stdio.Readline.