For Programmers: Free Programming Magazines  


Home > Archive > Tcl > January 2008 > freewrap and msgcat









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author freewrap and msgcat
SimonG

2008-01-29, 9:00 am

I have just tried freewrapTCLSH on a program that includes
[clock ...]. When I run the wrapped program it complains that it can't
find msgcat 1.4.

Is this expected behaviour? I thought that basic tcl commands like
clock would just work in a freewrap environment.

Thanks,

Simon Geard
anoved

2008-01-29, 7:42 pm

On Jan 29, 6:50=A0am, SimonG <si...@whiteowl.co.uk> wrote:
> I have just tried freewrapTCLSH on a program that includes
> [clock ...]. When I run the wrapped program it complains that it can't
> find msgcat 1.4.
>
> Is this expected behaviour? I thought that basic tcl commands like
> clock would just work in a freewrap environment.


I believe Tcl 8.4 comes with msgcat 1.3 and Tcl 8.5 comes with msgcat
1.4. (I am not sure of the terminology, but it is among the packages
such as http that are part of the basic distribution.) Perhaps there
is a version mismatch of some sort?

As a work-around, you may be able to explicitly include the msgcat 1.4
package with your wrapped program.

Jim
Alexandre Ferrieux

2008-01-29, 7:42 pm

On Jan 29, 12:50=A0pm, SimonG <si...@whiteowl.co.uk> wrote:
> I have just tried freewrapTCLSH on a program that includes
> [clock ...]. When I run the wrapped program it complains that it can't
> find msgcat 1.4.
>
> Is this expected behaviour? I thought that basic tcl commands like
> clock would just work in a freewrap environment.


The [clock] command has an hybrid implementation, half-C, half-Tcl.
For the Tcl part see library/clock.tcl.
There you'll see that msgcat is used to look up the localized version
of words like "Monday" etc.
If you don't need that part, maybe you can trim down clock.tcl and
rewrap ?

-Alex

SimonG

2008-01-30, 4:57 am

On Jan 29, 5:14 pm, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
wrote:
> On Jan 29, 12:50 pm, SimonG <si...@whiteowl.co.uk> wrote:
>
>
>
> The [clock] command has an hybrid implementation, half-C, half-Tcl.
> For the Tcl part see library/clock.tcl.
> There you'll see that msgcat is used to look up the localized version
> of words like "Monday" etc.
> If you don't need that part, maybe you can trim down clock.tcl and
> rewrap ?
>
> -Alex


Thankyou - I'll try doing that.

Simon
Dennis LaBelle

2008-01-30, 7:46 pm

SimonG wrote:

> I have just tried freewrapTCLSH on a program that includes
> [clock ...]. When I run the wrapped program it complains that it can't
> find msgcat 1.4.
>
> Is this expected behaviour? I thought that basic tcl commands like
> clock would just work in a freewrap environment.
>
> Thanks,
>
> Simon Geard

TCL 8.5 moved the location of the msgcat code into a TCL Module. I didn't
realize that when I created freeWrap 6.4. I need to modify freeWrap to
handle this use of TCL Modules in the TCL distribution and create a new
release of freeWrap.

Dennis
SimonG

2008-01-30, 7:46 pm

On 30 Jan, 22:52, Dennis LaBelle <label...@nycap.rr.com> wrote:
> SimonG wrote:
>
>
>
>
> TCL 8.5 moved the location of the msgcat code into a TCL Module. I didn't
> realize that when I created freeWrap 6.4. I need to modify freeWrap to
> handle this use of TCL Modules in the TCL distribution and create a new
> release of freeWrap.
>
> Dennis


That'd be great thanks.

Simon
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com