05-locale.tcl at [205ad8c75e]

File build/test/tests/05-locale.tcl artifact 19da5ec8b9 part of check-in 205ad8c75e


#! /usr/bin/env tclsh

# Tcl 8.4 doesn't support fetching the system encoding from the environment
if {$tcl_version == "8.4"} {
	exit 0
}

if {[encoding system] == "utf-8"} {
	exit 0
}

puts "Locale:   [encoding system]"
puts "Expected: utf-8"

exit 1