Ignore:
Timestamp:
Mar 30, 2011 1:45:19 PM (13 years ago)
Author:
gah
Message:

updates to makefiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/tcl/scripts/library.tcl

    r2134 r2175  
    509509        return ""
    510510    }
     511    # Expat (via tDOM) will always produce utf-8 output, regardless of the
     512    # encoding of the tool.xml.  We need to convert utf-8 to unicode for
     513    # Tcl/Tk.  This shouldn't affect ASCII tool.xml files.
     514    set string [encoding convertfrom utf-8 [$node text]]
    511515    if {$params(-decode) == "yes"} {
    512         return [Rappture::encoding::decode -- [string trim [$node text]]]
    513     } else {
    514         return [string trim [$node text]]
    515     }
     516        set string [Rappture::encoding::decode -- $string]
     517    }
     518    return [string trim $string]
    516519}
    517520
Note: See TracChangeset for help on using the changeset viewer.