ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Tcljava-user
Tcljava-user
[tcljava-user] TclBlend i18n floating point number problem
by Chris Needham other posts by this author
Nov 6 2003 5:38PM messages near this date
[tcljava-user] Re: Problem with load and info loaded | [tcljava-user] Re: Tcl Blend thread problem
I have encountered a strange problem during localisation into a Hungarian environment. Basic
ally the "package require java" line seems to cause all subsequent floating point calculatio
ns to fail with syntax errors. 

This Tcl code:

	if {1.0 < 2.0} {
		puts "Test1: Success"
	}

	package require java

	if {2.0 < 3.0} {
		puts "Test2: Success"
	}

produces this:

	Test1: Success
	syntax error in expression "2.0 < 3.0"
		while executing
	"if {2.0 < 3.0} {
		puts "Test2: Success"
	}"

if the locale is set to Hungarian:

With an default locale (LC_CTYPE set to "C") then I get this:

	Test1: Success
	Test2: Success

The script to run this code:

#!/bin/sh

LC_CTYPE=hu_HU.ISO8859-2; export LC_CTYPE

TCL_LIBRARY=/opt/tcl8.3.5/lib/tcl8.3
JAVA_JRE_LIB=/usr/java/jre/lib/sparc

LD_LIBRARY_PATH=${JAVA_JRE_LIB}:/opt/tcl8.3.5/lib:/opt/tcl8.3.5/lib/tcljava1.3.0; export LD_
LIBRARY_PATH

/opt/tcl8.3.5/bin/tclsh8.3 test.tcl


Has anybody else encountered this or know where I might be going wrong?

Regards

Chris Needham


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
tcljava-user mailing list
tcljava-user@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-user

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved