From 0fa233afce4288970d62d9168fb84f592e0fb577 Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Fri, 5 May 2017 23:39:15 +0100 Subject: [PATCH] Add xconv test --- webif/lib/test/xconv | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 webif/lib/test/xconv diff --git a/webif/lib/test/xconv b/webif/lib/test/xconv new file mode 100755 index 00000000..5714121a --- /dev/null +++ b/webif/lib/test/xconv @@ -0,0 +1,18 @@ +#!/mod/bin/jimsh + +source /mod/webif/lib/setup +package require xconv +require hexdump + +puts [xconv testtesttest] + +set s "home made p\303at\302e" +hexdump $s + +set t [xconv $s] + +hexdump $t + +puts "Length: [string length $t]" +puts "Bytelength: [string bytelength $t]" +