delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/13/14:33:37

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 13 May 2003 14:24:22 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: kuzma725 <kuzma725 AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: expect and cyrillic strings (Was Re: no cyrillic fonts in windows
2000)
In-Reply-To: <Law10-OE55jwyofTwE200009001@hotmail.com>
Message-ID: <Pine.GSO.4.44.0305131414570.17480-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 13 May 2003, kuzma725 wrote:

> Igor, I have another question for you.  Maybe this should be addressed to
> another list, but I figured you might know the answer.. hope this is not too
> off-topic.  I have an TCL script that I run using Expect from Cygwin.  It
> used to work fine, but one day something happened that messed it up, and I
> can't figure out what it is.  Here's an 3-line version of the script,
> demonstrating the problem, that you will understand even if you don't know
> TCL or Expect:
>
> #!/bin/tclsh
> set author [lindex $argv 0]
> puts #$author#
>
> All this does is print to the standard output the first parameter to the
> script from the command line.  When I run the script (testCyr.tcl) with a
> cyrillic parameter:
>
> expect testCyr.tcl ????????
>
> I am expecting this output:
>
> #????????#
>
> but instead get:
>
> #???????
>
> and no error messages.  But some cyrillic strings, such as "???????" work
> fine, as well as any latin string.  Any ideas?  I am positive that it worked
> before!
>
> Thanks,
> Yury
> [snip]

Yury,

It's usually a good idea to start a new thread when changing the topic,
instead of replying to an unrelated message.

As you have probably guessed, I'm not a tcl expert, but I happened to have
tclsh installed (but not expect).  The above script works for me (with the
string "Proverka" in Win-1251 encoding).  FYI, the strings you used did
not come through (all we see here are '?'s).

As far as I know, tcl questions should be addressed to the insight mailing
list (<insight at sources dot redhat dot com>).  That's where most tcl
experts are, anyway.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019