Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DJGPP input buffering bug while system() #6056

Closed
p5pRT opened this issue Nov 4, 2002 · 6 comments
Closed

DJGPP input buffering bug while system() #6056

p5pRT opened this issue Nov 4, 2002 · 6 comments

Comments

@p5pRT
Copy link

p5pRT commented Nov 4, 2002

Migrated from rt.perl.org#18218 (status was 'open')

Searchable as RT18218$

@p5pRT
Copy link
Author

p5pRT commented Nov 4, 2002

From DanVDascalescu@yahoo.com

This is a bug report for perl from danvdascalescu@​yahoo.com,
generated with the help of perlbug 1.34 running under perl v5.6.1.

#! perl -w
# This program outputs itself to STDOUT under most perl builds, except DJGPP.
# Tested with perl 5.8.0 built for DJGPP. Setting $| to 1 for FH and STDOUT
# doesn't help (this is an *input* buffering problem and $| is documented to
# affect only output). Opening the file only for reading doesn't reproduce
# the bug.

open FH, "+< $0" or die "Can't open myself! (R/O)?"; # read-write mode!

while (<FH>)
  { print;
  `perl --version`;
  }

Hope this helps,
Dan V. Dascalescu


Flags​:
  category=core
  severity=medium


Site configuration information for perl v5.6.1​:

Configured by Zastai at Sat Oct 6 14​:15​:40 CEST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration​:
  Platform​:
  osname=dos, osvers=djgpp, archname=dos-djgpp
  uname='ms-dos fatboyti 8 00 pc '
  config_args=''
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
  useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
  use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler​:
  cc='gcc', ccflags ='-DPERL_EXTERNAL_GLOB -fno-strict-aliasing',
  optimize='-O6',
  cppflags='-DPERL_EXTERNAL_GLOB -fno-strict-aliasing'
  ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
  intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
  ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
  alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags ='-s'
  libpth=/dev/env/DJDIR/lib
  libs=-lgdbm -lm -lc -liconv -lcharset
  perllibs=-lgdbm -lm -lc -liconv -lcharset
  libc=/dev/env/DJDIR/lib/libc.a, so=none, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_none.xs, dlext=none, d_dlsymun=undef, ccdlflags=''
  cccdlflags='', lddlflags=''

Locally applied patches​:


@​INC for perl v5.6.1​:
  /dev/env/DJDIR/lib/perl5
  /dev/env/DJDIR/lib/perl5/site
  /dev/env/DJDIR/lib/perl5/site
  /dev/env/DJDIR/lib/perl5/site
  .


Environment for perl v5.6.1​:
  HOME (unset)
  LANG (unset)
  LANGUAGE (unset)
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=C​:\DN;D​:\DJGPP\BIN;D​:\PRG\ASM;D​:\PRG\BP;D​:\PRG\BC\BIN;C​:\WINDOWS;C​:\WINDOWS\COMMAND;
  PERL_BADLANG (unset)
  SHELL (unset)


Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.
Xnet automatically scans all messages for viruses using RAV AntiVirus.

Nota​: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor. Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat de virusi.
Disclaimer​: RAV AntiVirus may not be able to detect all new viruses and variants. Please be aware that there is a risk involved whenever opening e-mail attachments to your computer and that MobiFon is not responsible for any damages caused by viruses.

@p5pRT
Copy link
Author

p5pRT commented May 5, 2010

@chorny - Status changed from 'new' to 'stalled'

@p5pRT
Copy link
Author

p5pRT commented May 28, 2012

From @Hugmeir

On Mon Nov 04 08​:14​:23 2002, dandv wrote​:

# This program outputs itself to STDOUT under most perl builds, except
DJGPP.
# Tested with perl 5.8.0 built for DJGPP. Setting $| to 1 for FH and
STDOUT

Is anyone still building Perl on DJGPP? If so, could we get an update on
the status of this ticket?
Otherwise, maybe we should start considering removing this port from the
core.

--hugmeir

@p5pRT
Copy link
Author

p5pRT commented May 28, 2012

The RT System itself - Status changed from 'stalled' to 'open'

@p5pRT
Copy link
Author

p5pRT commented May 29, 2012

From @jkeenan

On 5/28/12 7​:32 PM, Brian Fraser via RT wrote​:

On Mon Nov 04 08​:14​:23 2002, dandv wrote​:

# This program outputs itself to STDOUT under most perl builds, except
DJGPP.
# Tested with perl 5.8.0 built for DJGPP. Setting $| to 1 for FH and
STDOUT

Is anyone still building Perl on DJGPP? If so, could we get an update on
the status of this ticket?
Otherwise, maybe we should start considering removing this port from the
core.

--hugmeir

The web site is still functional​: http​://www.delorie.com/djgpp/, though
it looks as if the last major release was years ago. There still
appears to be a news group devoted to DJGPP; it's summarized here​:
http​://groups.google.com/group/comp.os.msdos.djgpp/topics. Presumably,
we could post there to gauge the interest for Perl 5 maintenance.

jimk

@ilmari
Copy link
Member

ilmari commented Nov 2, 2021

With #19176 merged, the DOS/DJGPP port no longer exists, closing this issue.

@ilmari ilmari closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants