$stdout.sync on windows

  • Thread starter meinrad.recheis
  • Start date
M

meinrad.recheis

hi, i don't know wether this was discussed before:

any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).

it's reproducable. - mr
 
D

daz

meinrad.recheis said:
any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).

it's reproducable. - mr


Windows & Ruby versions ?

Is this ok ? (sst.rbw)

----------
$stdout.sync=true
3.times {|n| puts n; sleep 2}
----------

Works for me on 98se
ruby 1.8.0 (2003-08-04) [i586-bccwin32]


daz
 
N

nobu.nokada

Hi,

At Thu, 7 Aug 2003 08:03:59 +0900,
meinrad.recheis said:
any .rbw file that contains the line
$stdout.sync = true
will exit abnormally if printed to $stdout (allthough it makes no sence)
(if executed by double click, not executed by SciTe).

Perhaps, you would associate .rbw with rubyw.exe. rubyw.exe is
a window mode application, so that no stdout handle is opened.
 
M

meinrad.recheis

Hi,

At Thu, 7 Aug 2003 08:03:59 +0900,


Perhaps, you would associate .rbw with rubyw.exe. rubyw.exe is
a window mode application, so that no stdout handle is opened.

yes that may be the case. it s no problem for me. but it is not a good
behavior from rubyw.exe to exit without error message.

daz: my version: ruby 1.7.3; win 2000
and your script doesn t work for me!
 
D

daz

Hi,


Usa reports it seems to be due to the difference between mswin
and bccwin, rather than ruby versions. Furthermore, bccwin
version rubyw.exe opens a console by just starting.

Euuhhh, hadn't noticed that.
Ruby Development Environment (RDE) ensures that I never see a console
(using ruby or rubyw). If I did, I'd have been screaming ;)

Thanks for the detail.


daz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,645
Members
47,246
Latest member
TemekaLutz

Latest Threads

Top