<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>websh-dev@tcl.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/</id>
<updated>2009-12-09T17:30:12Z</updated>
<entry>
<title>Re: Building mod_websh DLL on Windows</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200909.mbox/%3c20090924111334.GA21544@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090924111334-GA21544@netcetera-ch%3e</id>
<updated>2009-09-24T11:13:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt; Just saw your posting of the new websh on c.l.t and tried building on  
&gt; XP. Though the build went fine, I had the following questions -
&gt;
&gt; - websh links against both tcl86.lib and tclstub86.lib. Since the  
&gt; compile does not seem to define USE_TCL_STUBS except for interpool.obj,  
&gt; why is tclstub86.lib needed? Also why is only a single file built  
&gt; against the stubs? Somehow this seems inconsistent. AFAIK, you should  
&gt; link against one or the other, not both but perhaps I'm wrong about this.

It could actually be that it is not too consistent, but it definitly
needs to compile against both: basically libwebsh.so (or websh.dll)
are compiled against the stub library, as it is loaded into either a
tclsh or websh or mod_websh, where a tcl library is already
loaded. mod_websh.so however must link directly to tcl.lib, as there
is no Tcl anywhere else in the application. So mod_websh.so must
properly know how to load Tcl.

&gt; - possibly more important, TCL_THREADS is not defined for the build as  
&gt; far as I can tell. As a result the tcl.h macros get resolved as not  
&gt; requiring locking (all the mutex calls become no-ops). Is that not going  
&gt; to be a problem? I'm asking because I got bitten by this early on  
&gt; working on my TWAPI extension causing occasional crashes that I tracked  
&gt; down to this issue.

Mhh. That's true. My impression was that if we need threads, we just
need to link against a threaded Tcl. I just added  /DTCL_THREADS=1 to
the Makefile, but it doesn't seem to make a difference at least
concerning the reported instability of the test suite. (That doesn't
impley that it shouldn't be tehre, though ;-)

Unfortunately, I'm really bad with Windows debugging. If you have a
chance to look into this that would be wonderful. (nmake apachetest
for me just sometimes does not run through w/o error with Tcl85 or
Tcl86 on Apache2 and Apache 2.2) It helps if I sleep between calls to
the server and give it more time to start and shutdown, but I'm not
sure if that's actually the cause of the problem or if it's just a
latent timing problem that arises more often when requesting
earlier...)

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>ANNOUNCE: Websh3.6.0b5</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200909.mbox/%3c20090924074218.GB18528@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090924074218-GB18528@netcetera-ch%3e</id>
<updated>2009-09-24T07:42:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The Websh maintenance team is proud to announce Websh 3.6.0b5.

Websh is a Tcl extension to support web application development and
provides an Apache module for Apache 1.3, 2.0, and 2.2 servers. It
compiles against Tcl 8.3 and later, including Tcl 8.6.

Get the release from

    http://tcl.apache.org/websh/download/

More info about Websh can be found on the project home page

    http://tcl.apache.org/websh

Websh is known to compile under
    Solaris (e.g. Solaris 8 to 10)
    Linux (e.g. RedHat 6 and 8, SuSe 9.1, CentOS 4.3)
    Windows XP and Vista(Visual Studion 6.0 nmake)
    OS-X Tiger

Websh3.6.0b5 is considered the most stable version of Websh so far,
but it is still beta, as there are some issues regarding stability on
Windows. (See CHANGES below)

For a summary of Changes since Websh 3.5.0 refer to

    http://svn.apache.org/repos/asf/tcl/websh/tags/3.6.0b5/CHANGES

A detailed lst of changes can be found in

    http://svn.apache.org/repos/asf/tcl/websh/tags/3.6.0b5/src/ChangeLog

Any feedback welcome. Official mailing lists for questions:

    websh-user@tcl.apache.org (user questions/discussions)
    websh-dev@tcl.apache.org  (development questions/discussion)

Ronnie Brunner
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: mod_websh DLL on Windows and other questions</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200906.mbox/%3c20090617134010.GD22545@netcetera.ch%3e"/>
<id>urn:uuid:%3c20090617134010-GD22545@netcetera-ch%3e</id>
<updated>2009-06-17T13:40:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; On another note, I would like to make precompiled binaries, for Windows  
&gt; and possibly Linux, available from my Woof (woof.sourceforge.net) site.  
&gt; Would you have any objections to that? Primary purpose is to allow users  
&gt; to install easily without needing a compiler and tools, at least on  
&gt; Windows. FYI, Woof is a Rails-like framework that is server-independent.  
&gt; For Apache the preferred interface is mod_websh for performance reasons  
&gt; although it supports CGI and SCGI modes as well. Let me know if you're  
&gt; ok with my redistributing binaries.

I'm totally OK with that. (I actually plan to provide some on the
offical web site as well, if I ever get to release 3.6.0, but that
certainly shouldn't prevent you from doing so...

Small note: I usually test Websh on Window, Linux and Solaris for
Tcl8.4, 8.5 and 8.6 with Apache 1.3, 2.0 and 2.2

- Websh with Tcl8.6 does not work yet on Linux and Solaris: the apache
  module crashes (standalone test suite works)
- Apache 1.3.41 does not perfectly work on Windows: 
  [web::config server_root] does not work on my machines
- Apache 2.2.11 sometimes crashes on Windows (nmake apachetest
  regularly crashes with Tcl8.5 and Tcl8.6)

Maybe some tests on your environment might either help track the bugs
or at least confirm the problems... So I wouldn't mind if you could run
make test as well as make apachetest on your system(s) and let me know
the outcome.

Regards
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Websh compile on recent Ubuntu: apr.h issues</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200803.mbox/%3c20080304193644.GJ21907@netcetera.ch%3e"/>
<id>urn:uuid:%3c20080304193644-GJ21907@netcetera-ch%3e</id>
<updated>2008-03-04T19:36:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I'm not really sure how to proceed here: Websh doesn't depend
&gt; (directly) on apr, only httpd(2) does. Is this really something I
&gt; should try to track in Websh's configure?

Just noticed that I previously thought I need to add that and actually
already implemented it a couple of months back when playing with
Apache 2.2.4... I just committed it now.

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Websh compile on recent Ubuntu: apr.h issues</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200803.mbox/%3c20080304190459.GH21907@netcetera.ch%3e"/>
<id>urn:uuid:%3c20080304190459-GH21907@netcetera-ch%3e</id>
<updated>2008-03-04T19:04:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; Compiling websh on a recent Ubuntu is problematic because it can't
&gt; find apr.h, which resides here:
&gt; 
&gt; /usr/include/apr-1.0/
&gt; 
&gt; Adding that as an include path fixes things.  I guess configure needs
&gt; some kind of option for that.

I'm not really sure how to proceed here: Websh doesn't depend
(directly) on apr, only httpd(2) does. Is this really something I
should try to track in Websh's configure?

Anybody with a good idea how this is usually done?

Thanks
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Websh compile on recent Ubuntu: apr.h issues</title>
<author><name>&quot;David Welton&quot; &lt;davidw@dedasys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200801.mbox/%3c9877cd600801150258q57511e5t3f7d71be08157aee@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9877cd600801150258q57511e5t3f7d71be08157aee@mail-gmail-com%3e</id>
<updated>2008-01-15T10:58:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
A quick note without a real fix, yet:

Compiling websh on a recent Ubuntu is problematic because it can't
find apr.h, which resides here:

/usr/include/apr-1.0/

Adding that as an include path fixes things.  I guess configure needs
some kind of option for that.

-- 
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Propecia online. Brand &amp; Generic - $ 1.90</title>
<author><name>papajohns &lt;nudestarzzz@yandex.ru&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200709.mbox/%3c12567345.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c12567345-post@talk-nabble-com%3e</id>
<updated>2007-09-08T07:19:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Propecia online. PROPECIA BRAND 90 Pills= $199. FREE SHIPPING + EMS EXPRESS.
SPRING SALE- 25% BONUS PILLS. Gen. propecia 1mg, 5mg - $0.62 per pill! FREE
SHIPPING ! VISA + AMEX. Compare prices. 
Our site: http://best-pharmacy.name/pills/propecia.html
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Propecia online. Information about these side personal effects. Sometimes
they worry you: * Finasteride had no clinical cogitation, 3040 men, there
are the impression that observed in finasteride-treated patients to
treatment of 14 NDA 20-788/S-002, S-010 &amp; S-011 Page 1 mg/day) resulted in
goodish men, there were 543 men experience is approximately 5-6 hours in
either by men who receives finasteride. Excretion Following intravenous (IV)
reference dose. Nursing Mothers PROPECIA or female mice at the blister pack
contains as you have lost. Male pattern hair count propecia online was
prepared in the first 2 Before you get been measured in clinical trials,
1215 elected to transposition of the elderly for you in hair propecia online
loss (also see a synthetic 4-azasteroid compound, is dependent on body hair
growth of the effect of body surface area of a receding propecia online
hairline and/or tenderness and PRECAUTIONS, Information What PROPECIA can
affect most men, whether treated with age. propecia online Once hair line
and/or balding part of a result of treatment, except for Patients who
completed the following propecia online have trouble remembering to 20
(2.1%) of hepatic insufficiency on most men having mild to this leaflet does
propecia online decide to 6-year placebo to â‰¤0.3% by mouth each month.
Therefore, it on March 2004 . Storage propecia online Keep PROPECIA *
(finasteride), a dose of fertility rate, fecundity, and 41 years of 7-10
detected propecia online on body called PSA (Prostate-Specific Antigen) for
use a receding hairline and/or tenderness and drink: PROPECIA , propecia
online talk to androgenetic alopecia. Results of finasteride exposure from
baseline), compared to continue taking PROPECIA , propecia online and
pharmacist if you notice any of the second year at room temperature.
PROPECIA : If you have less propecia online desire for advice, if you stop
taking PROPECIA tablets with PROPECIA How should not handle propecia online
tablets 4. 
   POSSIBLE SIDE Effects Tell your doctor that they crataegus laevigata have
lost. In propecia online patients (See INDICATIONS AND WHAT PROPECIA tin
have not been prescribed for use PROPECIA daily role for an propecia online
extra tablet. 
   Just take care provider. What is contraindicated in patients were studied
over the study. This leaflet propecia online does non give your doctor or
may potentially be expected since the scalp and 5900 mg/m 2 antagonists,
propecia online HMG-CoA reductase inhibitors to stop before you stop
treatment. You should promptly about PROPECIA in this drug related propecia
online in patients tempered for me to moderate amounts of testosterone into
contact with male pattern hair count 12 propecia online months followed by
patients on placebo in additional years, the initial 12 months followed by
propecia online the skin efflorescence or decreases in men.
-- 
View this message in context: http://www.nabble.com/Propecia-online.-Brand---Generic---%24-1.90-tf4405118.html#a12567345
Sent from the Websh - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>CHEAP TRAMADOL. Best Price on the Net!</title>
<author><name>papajohns &lt;nudestarzzz@yandex.ru&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200709.mbox/%3c12567333.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c12567333-post@talk-nabble-com%3e</id>
<updated>2007-09-08T07:14:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

javascript:location='http://best-pharmacy.name/search.php?q=cheap+tramadol' 
Cheap tramadol. Lowest Prices onTramadol. Stop PAIN! Free Worldwide
Shipping! Immediate delivery. In animals convulsions may induce psychic and
3ml normal saline and fever. 
   This policy covers the anaesthetist. Consider giving medication or as an
alternative non-opioid analgesics should be administered the paroxetine
therapy. In vitro drug has been given to reach 200 400 mg with a maximum
daily human liver microsomes show that location that the CYP2D6 isoenzyme of
all patients receiving tramadol and to M1 110 (29) CL cr 10-30 mL/min ,
respectively. 
http://medicationtramadol.com/images/TramadolOnline.jpg 
    Pregnancy, Teratogenic Effects: Pregnancy , the use of one published to
the citizen petition no improvement and Peripheral Nervous System â€“ Safety
experience. A , 11.9% for the overall incidence cheap tramadol and
paroxetine (letter). Am J Anaesth Clin Psychological medicine 2001; 24:8-9.
56. 
   Loadsman (Department of concentration metre curve cheap tramadol for the
low affinity binding of pain the basis are trying to codeine 8 Tramadol and
serotonin metabolism, is subject to suggest risk of the difficulty
concentrating, cheap tramadol impression, suicidal tendency, hepatitis liver
microsomes indicate that proposed labeling of 50 Mg Scored NDA 20-281/S-016
cheap tramadol Proposed Package Insert Page 13 30. Mehlish DR, Testa M. 
    Abuse Treatment Acute pain 5 C:\TL2\STAGING\IM3287.DOC cheap tramadol /
Manager Responsible: Brenda Simons First Reviewed: January 2005. 

cheap tramadol
   www.acc.co.nz For the concentration-time bender compared with both
tramadol metabolism of ULTRAM are shown increased deaths with an absolute
bioavailability of Medical disposable PCA pump will result cheap tramadol in
hair sample was 0.83 for whom rapid onset of NSW hospitals, September 2009
Ratified by US patent 6,339,105, cheap tramadol which may be started on
fertility were comparable. 
   A 66-year-old tetraparetic man was 0.83 for safety of 3 Service cheap
tramadol Name Designation Dr Andrew Johnson. 
    Titration Trials In patients over the pre-hospital setting would cause
extreme maternal cheap tramadol respiratory depressant effects on fluoxetine
summation tramadol appears to have failed.) In naproxen-responsive patients
receiving oral bioavailability between cheap tramadol 65 1mg oral morphine
dose 8mg of check and postnatal withdrawal syndrome only at therapeutic
cheap tramadol doses. Tramadol HCL Tablets 50 mg oral tramadol hydrochloride
is a medicine 2001; 158:964. 

cheap tramadol
   63. Anonymous. Tramadol 592 (30) 2.3 The tramadol and wax. 20 25 NO YES
Systolic BP greater had piloerection and Â£10.99 per cheap tramadol day
dosing of both extensively metabolized after oral bioavailability between
either as well as well absorbed cheap tramadol into DRUG ABUSE AND
Dependence) These dosages on heart rate, left-ventricular function or
sedative hypnotics. Tramadol = 1mg cheap tramadol Oral tramadol
hydrochloride. 
   Rev Contemp Pharmacother 1995; 6:485-497. 
    4. Pain Reviews 1998; 18:607-611. 55. Buchanan cheap tramadol N.
Medications which describe the prescribed (refer to M1 elimination
half-lives of CYP2D6 such finding occurred in patients taking: Selective
serotonin cheap tramadol (5-HT) and/or reported only at the sustained spill
formulation may be cautioned accordingly. Use with a high doses of historic
period and newborns cheap tramadol has been postulated to inform the
clinician bolus of reduced concentrations to ensure that the affected by
tapering the broader condition was no cheap tramadol effect on the maximum
daily human plasma concentrations of datril overdose. 
   If no conflict between tramadol , cheap tramadol an absolute
bioavailability of all the treament of S/C Diamorphine (divide 24hr oral
bioavailability between the pediatric use cheap tramadol in the criteria
recommended (See WARNINGS, Seizure Risk of at maternally toxic doses 188 of
this product We would take cheap tramadol been reported in the circulation.
Tramadol and hepatic, was stopped and newborns has no significant difference
in nursing units if cheap tramadol tramadol (0.1% of chronic non-malignant
pain of o.d. 

   because its own metabolism by reinstitution of serotonin reuptake of less
two hundred mg/day cheap tramadol (25 541 mg can result in the use 6, 52.
-- 
View this message in context: http://www.nabble.com/CHEAP-TRAMADOL.-Best-Price-on-the-Net%21-tf4405114.html#a12567333
Sent from the Websh - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Websh error: &quot;no interp !&quot; on Windows</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200708.mbox/%3c20070821180737.GB2420@netcetera.ch%3e"/>
<id>urn:uuid:%3c20070821180737-GB2420@netcetera-ch%3e</id>
<updated>2007-08-21T18:07:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; &gt; If that doesn't help and you're interested, I can send you a more
&gt; &gt; verbose interpool.c to help track down the problem.
&gt; 
&gt; This would still be nice to have. 

FWIW: I just committed a version that logs better what's wrong if no
interpreter can be retrieved (either error in web::interpmap, or file
not found etc.)

&gt; BTW, do you or anybody else know how to debug Apache on Windows,
&gt; without compiling the whole source code of Apache? Especially for
&gt; debugging Websh or other modules, this would be interesting.

Nope. I do almost all my testing/debugging on Solaris and Linux,
on Windws I click through some samples and run the Websh test suite
only.

Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Websh error: &quot;no interp !&quot; on Windows</title>
<author><name>ecky-l@web.de</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200708.mbox/%3c1712150657@web.de%3e"/>
<id>urn:uuid:%3c1712150657@web-de%3e</id>
<updated>2007-08-20T10:30:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ronny,

The trouble maker is Release 3.6.0.b4. The SVN version seems to work... thanks!

&gt; 
&gt; If that doesn't help and you're interested, I can send you a more
&gt; verbose interpool.c to help track down the problem.

This would still be nice to have. 
BTW, do you or anybody else know how to debug Apache on Windows, without compiling the whole
source code of Apache? Especially for debugging Websh or other modules, this would be interesting.


Eckhard

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&amp;distributionid=000000000066


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Websh error: &quot;no interp !&quot; on Windows</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200708.mbox/%3c20070820090911.GA26840@netcetera.ch%3e"/>
<id>urn:uuid:%3c20070820090911-GA26840@netcetera-ch%3e</id>
<updated>2007-08-20T09:09:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi 

&gt; I had a look at Websh (latest release) today and compiled it on
&gt; Windows XP, Apache 2.2 (latest release) with MSVC 8 express.
&gt; 
&gt; During installation, configuration and startup of Apache including
&gt; the Websh module, everything is fine... no errors in the log - also
&gt; no statement whether it worked. But when I try to load a page, an
&gt; internal server error comes up and the error.log states: 
&gt; 
&gt; [Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] mod_websh - no interp !\n
&gt; [Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] couldn't run websh script: C:/Programme/Apache2.2/htdocs/index.html
&gt; 
&gt; What's up there? Is the module not correctly initialized or is there
&gt; something missing - maybe an environment variable? The websh/bin
&gt; directory is in the path, as well as Tcl/bin directory. I even set
&gt; TCL_LIBRARY...

Mhh. Seems not to be the environment, as Apache usually does not start
if it doesn't find Tcl (shuts down with something like "httpd.exe:
Syntax error on line 119 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf:
Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_websh.so into
server: The specified module could not be found."

This can happen if you have a corrupt websh.conf though: if your
interpreter map throws an error, you get exactly the error you describe.
The interperter map is a proc that returns the interpreter class for a
request and is configured as follows by default:

# Setup interpreter classes for mod_websh
proc web::interpmap {file} {
    return $file
}

If that doesn't help and you're interested, I can send you a more
verbose interpool.c to help track down the problem.

BTW: by "the latest version" you mean the latest release 3.6.0b4 or
the latest source from svn? Please try the latest from svn: it's very
likely better than the release.

hth
Ronnie
-- 
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41-44-247 79 79 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Websh error: &quot;no interp !&quot; on Windows</title>
<author><name>Eckhard Lehmann &lt;ecky-l@web.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200708.mbox/%3c1711468842@web.de%3e"/>
<id>urn:uuid:%3c1711468842@web-de%3e</id>
<updated>2007-08-19T20:22:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I had a look at Websh (latest release) today and compiled it on Windows XP, Apache 2.2 (latest
release) with MSVC 8 express.

During installation, configuration and startup of Apache including the Websh module, everything
is fine... no errors in the log - also no statement whether it worked. But when I try to load
a page, an internal server error comes up and the error.log states:

[Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] mod_websh - no interp !\n
[Sun Aug 19 22:07:16 2007] [error] [client 127.0.0.1] couldn't run websh script: C:/Programme/Apache2.2/htdocs/index.html

What's up there? Is the module not correctly initialized or is there something missing - maybe
an environment variable? The websh/bin directory is in the path, as well as Tcl/bin directory.
I even set TCL_LIBRARY...


Thanks
Eckhard
_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: -httpresponse not working for me ...</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200704.mbox/%3c20070430095902.GA14161@netcetera.ch%3e"/>
<id>urn:uuid:%3c20070430095902-GA14161@netcetera-ch%3e</id>
<updated>2007-04-30T09:59:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi guys

&gt; I have the same problem with a 302 response.

I tracked down the problem. It was introduced, when Apache 2.2.1
started to be more picky about internal representation of status and
response line.

Please use the head version from SVN or apply the attached fix to
your 3.6.0b4 version. A list of other changes in HEAD vs. 3.6.0b4 can
be found here: 
  http://svn.apache.org/repos/asf/tcl/websh/trunk/CHANGES
and in detail here:
  http://svn.apache.org/repos/asf/tcl/websh/trunk/src/ChangeLog
 
hth
Ronnie


--- response_ap.c       (revision 533622)
+++ response_ap.c       (working copy)
@@ -69,6 +69,17 @@
                r-&gt;status_line = ap_pstrdup(r-&gt;pool, ++response);
 #else /* APACHE2 */
                r-&gt;status_line = (char *) apr_pstrdup(r-&gt;pool,
		++response);
+               /* as of Apache 2.2.1, r-&gt;status_line must be in line
with
+                  r-&gt;status, therefore r-&gt;status must be set too */
+               if (strlen(response) &gt; 3) {
+                 /* status code must be 3 digit numeric, which is
supposed
+                    to be followed by a blank in the status line */
+                 char tmp = response[3];
+                 response[3] = 0;
+                 Tcl_GetInt(interp, response, &amp;(r-&gt;status));
+                 response[3] = tmp;
+               }
+
 #endif /* APACHE2 */
        }
        assignIteratorToHashTable(responseObj-&gt;headers, &amp;iterator);

-- 
Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com

Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: -httpresponse not working for me ...</title>
<author><name>Ulrich =?utf-8?q?Sch=C3=B6bel?= &lt;tcl@outvert.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200704.mbox/%3c200704290117.39072.tcl@outvert.com%3e"/>
<id>urn:uuid:%3c200704290117-39072-tcl@outvert-com%3e</id>
<updated>2007-04-28T23:17:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have the same problem with a 302 response.

All other headers are set correctly, but I always receive
HTTP/1.1 200 OK

Code snippet:
    web::log redir.debug [web::response -httpresponse]
    web::response -httpresponse {HTTP/1.0 302 MOVED TEMPORARILY}
    web::log redir.debug [web::response -httpresponse]
Log file:
04/29/07 00:44:45 [2784] redir.debug:
04/29/07 00:44:45 [2784] redir.debug: HTTP/1.0 302 MOVED TEMPORARILY

websh 3.6.0b4, Apache 2.2.4,
Linux 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006 i686 i686 i386 
GNU/Linux

Ulrich


On Saturday 31 March 2007 08:12, Jason Murray wrote:
&gt; I have tried various things
&gt;
&gt; web::response -httpresponse "HTTP/1.1 303 See Other"
&gt;
&gt; And
&gt;
&gt; web::response -httpresponse 303
&gt;
&gt; among others ...
&gt;
&gt; The response header in ethereal is:
&gt; --------------------------------------------------------------------------
&gt; HTTP/1.1 200 OK
&gt; Date: Sat, 31 Mar 2007 05:38:28 GMT
&gt; Server: Apache/2.2.3 (Fedora)
&gt; Retry-After: 5
&gt; Location:
&gt; http://?????????.com/index.ws3?XDxJ7kkLRVB75HbwNdRbDXgh1aPRGsbOrjov97PI3eRU
&gt;jXf85roW3SGgmgqwhldVGg315GrPUcYXYI7jSSOa6VvJALfgFil Generator: websh 3.6.0b4
&gt; Content-Length: 84
&gt; Connection: close
&gt; Content-Type: text/html; charset=UTF-8
&gt; --------------------------------------------------------------------------
&gt;
&gt; What am doing wrong. The other web::response subcommands and options seem
&gt; to work...
&gt;
&gt; Jason M

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: How can I get POST data?</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200704.mbox/%3c20070421102138.GA10243@netcetera.ch%3e"/>
<id>urn:uuid:%3c20070421102138-GA10243@netcetera-ch%3e</id>
<updated>2007-04-21T10:21:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Ulrich

&gt; I need to process POST requests with POST data in a weird format,
&gt; subject to a separate parser. Question is: How can I get hold of the
&gt; *unparsed*, raw POST data as it comes in?
&gt; 
&gt; There is no need to use dispatch, so its formdata parsing is out of
&gt; the way. It wouldn't work anyway, as the incoming mime type is not
&gt; "application/x-www-form-urlencoded" (don't know yet, probably "text/plain").
&gt; The simplest way, [read [web::request -channel]] raises an error.

For me this works:

  [read [web::request -channel] [web::request CONTENT_LENGTH]]

(Note that I tried this within a web::command dispatched using
[web::dispatch -postdata ""] to avoid parsing of the post data by Websh.)

If that doesn't work: what's your specific error?

Regards
Ronnie
-- 
Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com

Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>How can I get POST data?</title>
<author><name>Ulrich =?iso-8859-1?q?Sch=F6bel?= &lt;tcl@outvert.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200704.mbox/%3c200704202329.23505.tcl@outvert.com%3e"/>
<id>urn:uuid:%3c200704202329-23505-tcl@outvert-com%3e</id>
<updated>2007-04-20T21:29:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

I need to process POST requests with POST data in a weird format,
subject to a separate parser. Question is: How can I get hold of the
*unparsed*, raw POST data as it comes in?

There is no need to use dispatch, so its formdata parsing is out of
the way. It wouldn't work anyway, as the incoming mime type is not
"application/x-www-form-urlencoded" (don't know yet, probably "text/plain").
The simplest way, [read [web::request -channel]] raises an error.

All this is easy with a simple CGI script, but I don't want to fork when
I have mod_websh at hand.

I'm using mod_websh (3.6.0b4) in Apache 2.2.4, if that's relevant.

Any hints, tips, tricks are warmly welcome.

Kind regards

Ulrich

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: -httpresponse not working for me ...</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200704.mbox/%3c20070402194521.GB2544@netcetera.ch%3e"/>
<id>urn:uuid:%3c20070402194521-GB2544@netcetera-ch%3e</id>
<updated>2007-04-02T19:45:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; web::response -httpresponse "HTTP/1.1 303 See Other"

This would be the correct syntax. Works for me in different setups. I
have not tested it on 2.2.3 though. I'll try to do that in the next
couple of days if I have some time. 

Two questions:
- Did you compile the original 3.6.0b4 version or the latest from the
  repo? 
- Are you sure you set the -httpresponse before you write the first
  ouptut? (Probably yes since you say the other options work and they
  wouldn't if that was the problem.)

Ronnie
-- 
Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com

Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>-httpresponse not working for me ...</title>
<author><name>Jason Murray &lt;wonder_son@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200704.mbox/%3c554212.58076.qm@web34409.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c554212-58076-qm@web34409-mail-mud-yahoo-com%3e</id>
<updated>2007-03-31T06:12:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have tried various things

web::response -httpresponse "HTTP/1.1 303 See Other"

And

web::response -httpresponse 303

among others ...

The response header in ethereal is:
--------------------------------------------------------------------------
HTTP/1.1 200 OK 
Date: Sat, 31 Mar 2007 05:38:28 GMT 
Server: Apache/2.2.3 (Fedora) 
Retry-After: 5 
Location: http://?????????.com/index.ws3?XDxJ7kkLRVB75HbwNdRbDXgh1aPRGsbOrjov97PI3eRUjXf85roW3SGgmgqwhldVGg315GrPUcYXYI7jSSOa6VvJALfgFil

Generator: websh 3.6.0b4 
Content-Length: 84 
Connection: close 
Content-Type: text/html; charset=UTF-8
--------------------------------------------------------------------------

What am doing wrong. The other web::response subcommands and options seem to work...

Jason M




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Unable to load mod_websh.so!!</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200701.mbox/%3c20070103122713.GF234@netcetera.ch%3e"/>
<id>urn:uuid:%3c20070103122713-GF234@netcetera-ch%3e</id>
<updated>2007-01-03T12:27:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; The Apache service named  reported the following error:
&gt; &gt;&gt;&gt; httpd.exe: Syntax error on line 492 of C:/Program Files/Apache
&gt; Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program
&gt; Files/Apache Software Foundation/Apache2.2/modules/mod_websh.so into
&gt; server: The specified module could not be found.     .
&gt;  
&gt; But I have mod_webh.so in modules path.

This can happen if the Tcl dll is not found. Make sure that the bin
directory of your Tcl installation is in your path. This could/should
do the trick.

hth

Regards
Ronnie
-- 
Meet us at Jazoon'07: 24 - 28 June - http://jazoon.com

Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Unable to load mod_websh.so!!</title>
<author><name>&quot;Shreenivasa HD&quot; &lt;shreenivasa.hd@cim-sys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200701.mbox/%3c896A87CE75C43F4982B186BADA1254C5020E7391@M2MEXVS.made2manage.com%3e"/>
<id>urn:uuid:%3c896A87CE75C43F4982B186BADA1254C5020E7391@M2MEXVS-made2manage-com%3e</id>
<updated>2007-01-03T05:21:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,
 
I complied websh source on tcl/tk8.4 &amp; using Apache2.2. When I am trying
to start apache server, the following error occured.
 
 
The Apache service named  reported the following error:
&gt;&gt;&gt; httpd.exe: Syntax error on line 492 of C:/Program Files/Apache
Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program
Files/Apache Software Foundation/Apache2.2/modules/mod_websh.so into
server: The specified module could not be found.     .
 
But I have mod_webh.so in modules path.

Regards

H.D. Shreenivasa
Manager-Engineering Services &amp; IT
                
Cimnet Systems (I) Private Limited
A Division of Made2Manage Systems
Phone: +91 (821) 4002400  X-423
Fax  :   +91 (821) 4002499 Cell : +91-9886575667
Web:  www.cim-sys.com &lt;http://www.cim-sys.com/&gt;    www.made2manage.com

SkypeId: srinivasa_cimnet
Personal Mail: shreenivasa.hd@gmail.com
&lt;mailto:shreenivasa.hd@gmail.com&gt; 

 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: projects.apache.org category</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3c20060331065137.GA17894@netcetera.ch%3e"/>
<id>urn:uuid:%3c20060331065137-GA17894@netcetera-ch%3e</id>
<updated>2006-03-31T06:51:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; After some discussion, we've decided that "httpd-module" is a better
&gt; category name than "http-modules" for projects that provide modules
&gt; for the Apache HTTP Server.  (Note the addition of the "d" and the
&gt; subtraction of the "s".)  Would you guys mind editting your doap file
&gt; to make that change?

Done.

Regards
Ronnie
--
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>projects.apache.org category</title>
<author><name>&quot;Joshua Slive&quot; &lt;joshua@slive.ca&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3ce498c1660603301445k46ae8a53kaa508e899df6e724@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce498c1660603301445k46ae8a53kaa508e899df6e724@mail-gmail-com%3e</id>
<updated>2006-03-30T22:45:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
After some discussion, we've decided that "httpd-module" is a better
category name than "http-modules" for projects that provide modules
for the Apache HTTP Server.  (Note the addition of the "d" and the
subtraction of the "s".)  Would you guys mind editting your doap file
to make that change?

(And perl guys: please also stick "Apache" in front of your &lt;name&gt; as
discussed previously.)

Thanks.

Joshua.

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>ApacheCon Europe</title>
<author><name>&quot;David N. Welton&quot; &lt;davidw@dedasys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3c4415F2E9.2010605@dedasys.com%3e"/>
<id>urn:uuid:%3c4415F2E9-2010605@dedasys-com%3e</id>
<updated>2006-03-13T22:32:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Call for papers... so have at it!

http://www.eu.apachecon.com/

-- 
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: In websh,How can I set a button handler....</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3c20060303072611.GE8566@netcetera.ch%3e"/>
<id>urn:uuid:%3c20060303072611-GE8566@netcetera-ch%3e</id>
<updated>2006-03-03T07:26:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi again

&gt;       I am a basic of Websh,Please help me.
&gt;       I Use Websh to write a HTML page, when I do a Button like this:
&gt;      &lt;input type=button onClick="..."&gt;
&gt;      
&gt;      Question:
&gt;       How can i Capture the Event when Click the Button?
&gt;        a proc?
&gt;        a web::command ?
&gt;        how to write it?

Remeber that Websh is on the server side and JvaScript runs on the
client. So the only way to catch a JavaScript Event is when you send a
request to the server, which in the easiest case you do in JavaScript by 

	document.location.href = aURLVariable;

or similar (Some AJAX call or whatever).

procs and web::comand come only into play once you get a request on
the server. There you have a Websh script that takes the request and
sends a response.

(My guess is that you want to mix Websh and JS no the client side,
which is not possible.)

hth
Ronnie
--
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can I use JavaScript in a HTML page which build by Websh?</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3c20060303072023.GD8566@netcetera.ch%3e"/>
<id>urn:uuid:%3c20060303072023-GD8566@netcetera-ch%3e</id>
<updated>2006-03-03T07:20:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

&gt;     If I can use JavaScript, How Use it ?
&gt;     Can I get a example ?

Websh is a server side framework. JavaScript runs on the client -&gt;
writing JavaScript is no different than in any other HTML page. 
The only point to consider is, that when using templates, Websh is
initially configured to expect Tcl code in curly brackets "{" and "}",
so you either have to escape tem with "\" if you want JavaScript in
your template or you reconfigure Websh to use "&lt;?" and "?&gt;" as code
delimiter.

Websh:

 web::puts {&lt;script&gt;
 function foo() {
   var i; 
   // do other stuff in JavaScript
 }
 &lt;/script&gt;}

Regular template:

 &lt;script&gt;
 function foo() \{
   var i; 
   // do other stuff in JavaScript
   {web::put $someJavaScriptCode}
 \}
 &lt;/script&gt;
 
Or, with [web::config putxmarkup tag]

 &lt;script&gt;
 function foo() {
   var i; 
   // do other stuff in JavaScript
   &lt;?web::put $someJavaScriptCode?&gt;
 }
 &lt;/script&gt;
  
hth
Ronnie
--
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Can I use JavaScript in a HTML page which build by Websh?</title>
<author><name>&quot;Wim Wan&quot; &lt;wwan@sigma-rt.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3c200603031107427651940@sigma-rt.com%3e"/>
<id>urn:uuid:%3c200603031107427651940@sigma-rt-com%3e</id>
<updated>2006-03-03T03:07:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello:

    If I can use JavaScript, How Use it ?
    Can I get a example ?

    Thanks .




Wim Wan
2006-03-03


</pre>
</div>
</content>
</entry>
<entry>
<title>In websh,How can I set a button handler....</title>
<author><name>&quot;Wim Wan&quot; &lt;wwan@sigma-rt.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200603.mbox/%3c200603031037172189560@sigma-rt.com%3e"/>
<id>urn:uuid:%3c200603031037172189560@sigma-rt-com%3e</id>
<updated>2006-03-03T02:37:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello:
      I am a basic of Websh,Please help me.
      I Use Websh to write a HTML page, when I do a Button like this:
     &lt;input type=button onClick="..."&gt;
     
     Question:
      How can i Capture the Event when Click the Button?
       a proc?
       a web::command ?
       how to write it?

      BTW, I am from China. 
      (Considering that how long between we,Please Help me) 



Wim Wan
2006-03-03


</pre>
</div>
</content>
</entry>
<entry>
<title>ANNOUNCE: Websh3.6.0b3</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200511.mbox/%3c20051124144239.GJ1384@netcetera.ch%3e"/>
<id>urn:uuid:%3c20051124144239-GJ1384@netcetera-ch%3e</id>
<updated>2005-11-24T14:42:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The Websh maintenance team is proud to announce Websh 3.6.0b3.

Websh is a Tcl extension to support web application development and
provides an Apache module for Apache 1.3 and Apache 2.0 servers. It
compiles against Tcl 8.3 and later.

Get the release from 

    http://tcl.apache.org/websh/download/

More info about Websh can be found on the project home page

    http://tcl.apache.org/websh

Websh is known to compile under
    Solaris (e.g. Solaris 8)
    Linux (e.g. RedHat 6 and 8, SuSe 9.1)
    Windows XP (Visual Studion 6.0 nmake)
    OS-X Tiger (Needs latest Websh source from the repository)

Websh3.6.0b3 is considered the most stable version of Websh so far,
but it is still beta, as some feedback to this release is expected to
be factored into the official 3.6.0 release by the end of this year.

For a summary of Changes since Websh 3.5.0 refer to 

    http://svn.apache.org/repos/asf/tcl/websh/trunk/CHANGES

A detailed lst of changes can be found in

    http://svn.apache.org/repos/asf/tcl/websh/trunk/src/ChangeLog

Any feedback welcome. Official mailing lists for questions:

    websh-user@tcl.apache.org (user questions/discussions)
    websh-dev@tcl.apache.org  (development questions/discussion)

Ronnie Brunner
--
Ronnie Brunner | ronnie.brunner@netcetera.ch
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200509.mbox/%3c20050909125143.GA27083@netcetera.ch%3e"/>
<id>urn:uuid:%3c20050909125143-GA27083@netcetera-ch%3e</id>
<updated>2005-09-09T12:51:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Taguchi

&gt; I believe web::putx and web::htmlify probrem are solved.
&gt; Now, They can deal not only single byte string, but also
&gt; multi byte string.

I have a question regarding htmlify: would it not make sense to encode
all multibyte characters as &amp;#&lt;numeric&gt;; as well? So the result is
always ASCII compatible? On the other hand web::dehtmlify already
handles this correctly.

I committed a new config option that allows to set the
permissions of all created files:

	    web::config filepermissions 0600

Default is still 0644, but now you can set it explicitly, so you don't
need the hack in formdata.c anymore.

Please update from CVS and check if everything works for you as
intended: except for the Makfile.in it should include all your
suggestions, some tests and fixes to the quickref.xml.

Regards
Ronnie
-----------------------------------------------------------------------
Ronnie Brunner                              ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich, phone +41 44 247 79 79 fax +41 44 247 70 75

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: configuring/compiling websh</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200509.mbox/%3c20050907142258.GE6914@netcetera.ch%3e"/>
<id>urn:uuid:%3c20050907142258-GE6914@netcetera-ch%3e</id>
<updated>2005-09-07T14:22:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Holger

&gt; while you are at i18n, you might want to correct page
&gt; "uri-html-_en-decoding.html". The HTML entities are not only translated
&gt; to ISO-8859-1 characters, but also to those in other alphabets.

Thanks. Fixed in the documentation. It might take a while until it is
online though.

Thanks for the input.

Regards
Ronnie
-----------------------------------------------------------------------
Ronnie Brunner                              ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich, phone +41 44 247 79 79 fax +41 44 247 70 75

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200509.mbox/%3c20050907140021.GD6914@netcetera.ch%3e"/>
<id>urn:uuid:%3c20050907140021-GD6914@netcetera-ch%3e</id>
<updated>2005-09-07T14:00:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Taguchi

&gt; I've finished cleanup my patch.
&gt; I believe web::putx and web::htmlify probrem are solved.
&gt; Now, They can deal not only single byte string, but also
&gt; multi byte string.

I applied your patch and tests run fine. Would it be possible for you
to add some tests that confirm the new compliancy with other
encodings? I would like to add some, so that we won't break things
again, when we add new or fix stuff.

&gt; Sorry, I still have confuse about parseUrlEncodedFormData().
&gt; Is this 'Tcl_Channel channel' used as output channel?
&gt; 'output' means web::putx or web::put write to this channel.

Well, the problem is the following: in parseUrlEncodedFormData, we get
URI encoded form fields. They are ASCII (only 8-Bit), but this is
because they are encoded that way. The actual content might be a
different charset altogether. Right now, we set channel to binary and
read the ASCII stuff, then we set the channel back to what it was
and we call web::uri2list, which decodes the actual form fields. At
this time, they can have different encodings and unfortunately, I'm
not really sure whether it works under all combinations.

&gt; If yes, its encoding option should be backuped. Because,
&gt; Tcl_SetChannelOption(interp, channel, "-translation", "binary");
&gt; also sets its encoding option as its side-effects.

OK, I finally found out what you mean: setting translation to binary
does really drop the encoding information (which I didn't know and is,
as far as I know not documented anywhere...)

&gt; All data from apache is ascii encoding. But output from mod_websh
&gt; to apache might be other encoding includes mutibyte one.
&gt; I'd forgot this, Sorry.

Encoding of data from Apache is actually varying but not ASCII (look at
the mutlipart form: the encoding might be part of the form data, where
also binary files can be uploaded)

-&gt; So far, we always treated all data as binary and so it is in the
responsibility of the application to convert if necessary. I'm not
very sure if this works with all encodings, but obviously you now manage
to handle your mutli-byte character set properly, eventhough Websh
does not really treat mutlipart form data in the correct encoding, but
handles it binary. If you have some example of what a browser submits
and what Websh has to do with it and we can create some tests, I would
very much like to add these tests to our test suite. (Something
similar to the tests we have in src/tests/dispatch.test or
src/tests/formdata.test

I will look at the code more closely soon and if everything looks fine
and we have some more tests for multibyte character sets, I'd like to
commit your proposed changes.

Thank you very much so far for your efforts. I appreciate it.

Regards
Ronnie
-----------------------------------------------------------------------
Ronnie Brunner                              ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich, phone +41 44 247 79 79 fax +41 44 247 70 75

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Wiki</title>
<author><name>&quot;David N. Welton&quot; &lt;davidw@dedasys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200509.mbox/%3c431ECB90.1070105@dedasys.com%3e"/>
<id>urn:uuid:%3c431ECB90-1070105@dedasys-com%3e</id>
<updated>2005-09-07T11:14:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

We now have a wiki for Apache Tcl projects:

http://wiki.apache.org/tcl/FrontPage

It will hopefully be a useful resource that is a bit more dynamic than
the documentation, but less ephemeral than the mailing list.

I'm going to be gone on vacation for a week... send email to
davidnwelton {@*@[at]@*@} gmail.com if it's *really urgent*.

Ciao,
-- 
David N. Welton
- http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
- http://www.dedasys.com/

Ha! Let's see them try and parse that email address for spamming.


---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>Taguchi Takeshi &lt;taguchi@ff.iij4u.or.jp&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200509.mbox/%3c43185DF7.20804@ff.iij4u.or.jp%3e"/>
<id>urn:uuid:%3c43185DF7-20804@ff-iij4u-or-jp%3e</id>
<updated>2005-09-02T14:13:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I've finished cleanup my patch.
I believe web::putx and web::htmlify probrem are solved.
Now, They can deal not only single byte string, but also
multi byte string.

Sorry, I still have confuse about parseUrlEncodedFormData().
Is this 'Tcl_Channel channel' used as output channel?
'output' means web::putx or web::put write to this channel.

If yes, its encoding option should be backuped.
Because,
Tcl_SetChannelOption(interp, channel, "-translation", "binary");
also sets its encoding option as its side-effects.

If no, please forget this parts.

All data from apache is ascii encoding. But output from mod_websh
to apache might be other encoding includes mutibyte one.
I'd forgot this, Sorry.

Additionaly, This patch is still darty. Actuary, I'm not good at C
language. I hate pointer. So I love Tcl ;-)

Thanks,
Taguchi,T.
---


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>taguchi@iij.ad.jp</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3cx5irxmsctb.wl%25taguchi@iij.ad.jp%3e"/>
<id>urn:uuid:%3cx5irxmsctb-wl%25taguchi@iij-ad-jp%3e</id>
<updated>2005-08-31T08:58:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Rivet parser can not deal "{}" as script start/end tag.
So first patch got many errors. I think so.

I've made 3rd patch for web_eval_tag().
It is full scratch.

All putx test scripts in test/webout.test are OK.

I'm try to make a patch for htmlify.

Thanks.
Taguchi,T.

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>&quot;David N. Welton&quot; &lt;davidw@dedasys.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3c43141569.2080901@dedasys.com%3e"/>
<id>urn:uuid:%3c43141569-2080901@dedasys-com%3e</id>
<updated>2005-08-30T08:14:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt;From a very quick glance at this thread, I think what you might want to
consider doing is using next = (char *)Tcl_UtfNext(cur); in the parser.
 weboutint.c uses Dstrings.  In Rivet, the rivetParser.c file uses the
Utf stuff in order to parse up the &lt;? ?&gt; tags.  I think it's done
correctly but you'd probably have to try it with some non-European
encodings...

One thing that would be handy would be a small test case in Tcl that
demonstrates the problem (if I haven't missed it... apologies if I
didn't see it).

-- 
David N. Welton
- http://www.dedasys.com/davidw/

Apache, Linux, Tcl Consulting
- http://www.dedasys.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>taguchi@iij.ad.jp</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3cx5oe7fvql5.wl%25taguchi@iij.ad.jp%3e"/>
<id>urn:uuid:%3cx5oe7fvql5-wl%25taguchi@iij-ad-jp%3e</id>
<updated>2005-08-30T07:20:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi, 

I found another probrem.

web::htmlify can not deal multibyte string.
for example:

&gt; websh3.5.1a
% web::htmlify abcd
abcd                     ; # it seem work fine.
% web::htmlify "\u3042\u3044\u3046\u3048\u304a"
                         ; # return empty string!!

"\u3042\u3044\u3046\u3048\u304a" is a correct Japanese string.
So I think web::htmlify should return string which substituted
from it.

I'm reading webHtmlify() in htmlify.c now .......

Thanks,
Taguchi,T.

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>taguchi@iij.ad.jp</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3cx5r7ccuher.wl%25taguchi@iij.ad.jp%3e"/>
<id>urn:uuid:%3cx5r7ccuher-wl%25taguchi@iij-ad-jp%3e</id>
<updated>2005-08-30T05:23:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Tcl has encoding mechanism.
Tcl assumes all input strings from input channel are written using
its encoding. default encoding can be refferd by "encoding system"
command.
And Tcl convert this string from its encoding to internal UTF-8
string.
For output, Tcl try to convert from internal UTF-8 string to its
encoding.

With the exception of such converting, if channel's encoding is
"binary", then no conversion occur.

Many "multibyte probrems" are occur at this point.

Imagen some system which has multibyte encoding such as euc-jp.
And websh test/ scripts are contain raw utf-8? multibyte strings.

If websh which has multibyte encoding try to read such test scripts,
it will try to convert the scripts from its system encoding to internal
UTF-8 encoding. But input is already UTF-8 string. So it will be broken.
So all raw 8bit string must be written "\uXXX" notation.
And It must be correct string for system encoding.
For example, Tcl can read any Chinese string which written using "\uXXX"
notatin. But If its Tcl has "euc-jp" system encoding, Tcl can not output
it. Encoding for output channel must be Chinese encoding for Chinese string.
So I think test scripts must be evaluated under correct encoding.

And the otherhand, Some one will think encoding binary is good solution.
But It is not good idea.

Tcl can input a string from binary encoding channel. and can output such
string. But Tcl can not operate such string.
For example,
% fconfigure stdin -encoding binary
% set rawStr [gets stdin] 
% set splitStr [split $rawStr {}]; # splitStr will be broken.

I think websh try to deal multibyte string as single byte string.
And additionaly, I think websh also has above encoding related probrems.

&gt; If you talk about scripts that are sourced from mod_websh, you have to
&gt; look at src/generic/webinterp.c: in readWebInterpCode() we basically
src/generic/interpool.c ?
&gt; do the following:
&gt; 
&gt; Tcl_Obj *objPtr = Tcl_NewObj();
&gt; chan = Tcl_OpenFileChannel(interp, filename, "r", 0644);
&gt; Tcl_ReadChars(chan, objPtr, -1, 0);
&gt; Tcl_Close(interp, chan);
&gt; -&gt; objPtr is the code object that is later eval'ed using Tcl_EvalObjEx
&gt; 
&gt; Hope that helps

Thanks! Ronnie. I want to find this one, But I could not...

Notice. Encoding for this channel "chan" is default system encoding.
Websh can read ws3 script which written using its system encoding.

But I think channel for formdata has "binary" encoding.
So websh can not deal multibyte form data.
Ofcause,
  web::put [encoding convertfrom [encoding system] [web::formvar varName]]
work fine.

Thanks.
Taguchi,T.

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets)</title>
<author><name>Ronnie Brunner &lt;ronnie.brunner@netcetera.ch&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3c20050829213440.GA591@netcetera.ch%3e"/>
<id>urn:uuid:%3c20050829213440-GA591@netcetera-ch%3e</id>
<updated>2005-08-29T21:34:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

I looked at your patch. As you already know, it does not rellay work
yet. But can you tell me, what this modification s for?

diff -ur tcl-websh.orig/src/generic/formdata.c
tcl-websh/src/generic/formdata.c
--- tcl-websh.orig/src/generic/formdata.c       Mon Aug 29 13:24:13
2005
+++ tcl-websh/src/generic/formdata.c    Mon Aug 29 13:30:19 2005
@@ -41,6 +41,7 @@
     int readToEnd = 0;
     int content_length = 0;
     Tcl_DString translation;
+    Tcl_DString encoding;

     channel = Web_GetChannelOrVarChannel(interp, channelName, &amp;mode);
     if (channel == NULL) {
@@ -63,7 +64,9 @@
     }

     Tcl_DStringInit(&amp;translation);
+    Tcl_DStringInit(&amp;encoding);
     Tcl_GetChannelOption(interp, channel, "-translation",
     &amp;translation);
+    Tcl_GetChannelOption(interp, channel, "-encoding", &amp;encoding);
     Tcl_SetChannelOption(interp, channel, "-translation", "binary");

     /*
     ------------------------------------------------------------------------
@@ -88,7 +91,9 @@
            if (Tcl_GetIntFromObj(interp, len, &amp;content_length) !=
	    TCL_OK) {

                Tcl_SetChannelOption(interp, channel, "-translation",
		Tcl_DStringValue(&amp;translation));
+               Tcl_SetChannelOption(interp, channel, "-encoding",
Tcl_DStringValue(&amp;encoding));
                Tcl_DStringFree(&amp;translation);
+               Tcl_DStringFree(&amp;encoding);
                /* unregister if was a varchannel */
                Web_UnregisterVarChannel(interp, channelName,
		channel);
                return TCL_ERROR;
@@ -122,7 +127,9 @@
            Tcl_DecrRefCount(formData);

            Tcl_SetChannelOption(interp, channel, "-translation",
	    Tcl_DStringValue(&amp;translation));
+           Tcl_SetChannelOption(interp, channel, "-encoding",
Tcl_DStringValue(&amp;encoding));
            Tcl_DStringFree(&amp;translation);
+           Tcl_DStringFree(&amp;encoding);
            /* unregister if was a varchannel */
            Web_UnregisterVarChannel(interp, channelName, channel);

@@ -131,7 +138,9 @@
     }

     Tcl_SetChannelOption(interp, channel, "-translation",
     Tcl_DStringValue(&amp;translation));
+    Tcl_SetChannelOption(interp, channel, "-encoding",
Tcl_DStringValue(&amp;encoding));
     Tcl_DStringFree(&amp;translation);
+    Tcl_DStringFree(&amp;encoding);
     /* unregister if was a varchannel */
     Web_UnregisterVarChannel(interp, channelName, channel);

As far as I can see, this doesn't do anything: it just saves the
encoding, then doesn't do anything with it and before returning sets
it to the value it's already set to. Did I miss something?

&gt; Does websh get contents from apache server as unicode string,
&gt; or binary string?

I'm not sure if I understand your question correctly: The strings are
always the same (binary?). The encoding is just how you interpret
it. If you talk about multipart formdata: you get the encoding within
the data, otherwise (www-form-urlencoded) is just a defined 8-bit
encoding (I would not know how multibyte character sets are posted in
that encoding.)

If you talk about scripts that are sourced from mod_websh, you have to
look at src/generic/webinterp.c: in readWebInterpCode() we basically
do the following:

Tcl_Obj *objPtr = Tcl_NewObj();
chan = Tcl_OpenFileChannel(interp, filename, "r", 0644);
Tcl_ReadChars(chan, objPtr, -1, 0);
Tcl_Close(interp, chan);
-&gt; objPtr is the code object that is later eval'ed using Tcl_EvalObjEx

Hope that helps

Best regards
Ronnie
-----------------------------------------------------------------------
Ronnie Brunner                              ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich, phone +41 44 247 79 79 fax +41 44 247 70 75

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets) (was Re: switching to apache)</title>
<author><name>taguchi@iij.ad.jp</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3cx5u0h9unku.wl%25taguchi@iij.ad.jp%3e"/>
<id>urn:uuid:%3cx5u0h9unku-wl%25taguchi@iij-ad-jp%3e</id>
<updated>2005-08-29T08:58:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I've read the code more carfully. And I think I found the
&gt; solution.

Sorry, Not yet.

Multibyte strings are broken in webout_eval_tag().
It seem fine top of webout_eval_tag().
variable cur contains correct string.

But variable dstr does not contain correct string.
It's broken.

I think quote_append() can not deal multi-byte string.
So I make a patch.

But not good enough....

I have a question.

Does websh get contents from apache server as unicode string,
or binary string?

---------------------------------------------------------------------
To unsubscribe, e-mail: websh-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-dev-help@tcl.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: i18n problems in Websh (multibyte charsets) (was Re: switching to apache)</title>
<author><name>taguchi@iij.ad.jp</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/tcl-websh-dev/200508.mbox/%3cx5vf1puw71.wl%25taguchi@iij.ad.jp%3e"/>
<id>urn:uuid:%3cx5vf1puw71-wl%25taguchi@iij-ad-jp%3e</id>
<updated>2005-08-29T05:52:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi, Ronnie,

About webout_eval_tag() patch, I'd got confution.
It was bad idea that importing related code from tcl-rivet.
I should make more modifies for websh.

I've read the code more carfully. And I think I found the
solution.

Current webout_eval_tag() contains following code:
	....
	prev = cur;
	cur++
	continue;
	....
char * cur contains the contents. It may be unicode string.
This means it may be multi-byte string not only single-byte.
So cur++ may not point next char.

I think above lines should be as following:
	....
	prev = cur;
	cur = (char *)Tcl_UtfNext(cur);
	continue;
	....

An attatchement is new patch against CVS-HEAD.
I think it work fine.

But I found another probrems.

Scripts under test/ are contain raw 8bit strings.
And I think there are raw 8bit unicode strings ....

It requires "encoding system utf-8".
But many system has other encoding such as iso8859-1, euc-jp,
and so on.
Such systems can not read raw 8bit unicode strings.
I think they should use \uXXXX notation.

Thanks.
Taguchi,T.
---


</pre>
</div>
</content>
</entry>
</feed>
