My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: featured weather.tcl code error
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by ton...@gmail.com, Nov 22, 2011
What steps will reproduce the problem?
1. issue pub cmd: .wz -f london


What is the expected output? What do you see instead?
The expected output should change from celcius to fahrenheit, even though the label changes, the value does not.

What version of the product are you using? On what operating system?
weather.tcl 2.2.1

Please provide any additional information below.
code currently calls on default set variable $wz(tempu) when it should use $tempu
Current code:
set temp [expr {([string tolower $wz(tempu)] == "f")?"temp_f":"temp_c"}]

New code:
set temp [expr {([string tolower $tempu] == "f")?"temp_f":"temp_c"}]

Powered by Google Project Hosting