[lang-ref] ( string_byte_size ) ( bash )

@test "string byte size" {
	# LC_ALL=en_US.UTF-8 printf '%s' "$1" | wc -c
	s="ABC"
	ct=$(LC_ALL=en_US.UTF-8 printf '%s' "$s" | wc -c)
	[ "$ct" -eq 3 ]

	s="あいう"
	ct=$(LC_ALL=en_US.UTF-8 printf '%s' "$s" | wc -c)
	[ "$ct" -eq 9 ]
}