From 8b34cd579320036335e6cc2e53afe6c70c3090fa Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 23 Oct 2007 16:05:24 +0000 Subject: * tests/cursor.test: Make tests robust against changes in Tcl's rules for accepting integers in octal format. --- ChangeLog | 5 +++++ tests/cursor.test | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15c7522..5d3057e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-23 Don Porter + + * tests/cursor.test: Make tests robust against changes in Tcl's + rules for accepting integers in octal format. + 2007-10-23 Donal K. Fellows * doc/font.n: Added section on the TIP#145 fonts. diff --git a/tests/cursor.test b/tests/cursor.test index d5dabcf..e92c08f 100644 --- a/tests/cursor.test +++ b/tests/cursor.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: cursor.test,v 1.16 2006/12/17 00:43:06 mdejong Exp $ +# RCS: @(#) $Id: cursor.test,v 1.17 2007/10/23 16:05:24 dgp Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -76,7 +76,7 @@ set wincur(data_octal) { } set wincur(data_binary) {} foreach wincur(num) $wincur(data_octal) { - append wincur(data_binary) [binary format c 0$wincur(num)] + append wincur(data_binary) [binary format c [scan $wincur(num) %o]] } set wincur(dir) [makeDirectory {dir with spaces}] set wincur(file) [makeFile $wincur(data_binary) "test file.cur" $wincur(dir)] -- cgit v0.12