Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin AT cygwin DOT com To: kuzma725 cc: cygwin AT cygwin DOT com Subject: expect and cyrillic strings (Was Re: no cyrillic fonts in windows 2000) In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 (). 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/