Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail From: Markus Fischer Newsgroups: comp.lang.ruby Subject: Re: Telnet "More?" Date: Tue, 19 Apr 2011 12:12:35 -0500 Organization: Service de news de lacave.net Lines: 21 Message-ID: <4DADC275.9090708@fischer.name> References: <0bc1be8ec871e5fbad7753c695247ddc@ruby-forum.com> NNTP-Posting-Host: bristol.highgroove.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: talisker.lacave.net 1303234447 46460 65.111.164.187 (19 Apr 2011 17:34:07 GMT) X-Complaints-To: abuse@lacave.net NNTP-Posting-Date: Tue, 19 Apr 2011 17:34:07 +0000 (UTC) In-Reply-To: X-Received-From: This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway X-Mail-Count: 381860 X-Ml-Name: ruby-talk X-Rubymirror: Yes X-Ruby-Talk: <4DADC275.9090708@fischer.name> Xref: x330-a1.tempe.blueboxinc.net comp.lang.ruby:3180 On 19.04.2011 18:40, mouser wrote: > On 19-Apr-2011, Brian Candler wrote: > >> Of course, if the question is really "why does Microsoft hang with a >> 'More?' prompt when dir is issued a second time", then this isn't really >> the right solution. > > But I found that his code *does* work in 1.8.7 but not in 1.9.2, so it's not > just Microsoft's fault. It looked to me to be a difference in character > encodings between the two versions of Ruby causing some issues with regex > matching in the preprocess instance method. Is it maybe a similar issue I faced with Sinatra recently [1]? In 1.9 strings coming over network are in ASCII-8BIT usually and you've to convert them to char charset to work with them. HTH, - Markus [1] http://www.ruby-forum.com/topic/476119#989522