Re: Tutorial
Peter Bortas <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CA+NK+ACbbsBCWU-gT18mw5_AxgfAAPVr6WVXiARaPgR1yxZ3uw@mail.gmail.com> |
Since I happened to have my Windows VM console up: I can confirm this behavior in the default Hilfe: > Stdio.stdin->gets(); foo (1) Result: "foo\r" That seems rather useless. It would break the API to fix it, but on the other hand gets() is one of those functions you almost only use in tutorials. -- Peter Bortas On Thu, Dec 8, 2016 at 4:57 PM, Arie van Wingerden <[email protected]> wrote: > Hi Chris, > > here: https://pike.lysator.liu.se/docs/tutorial/ > in "Your second Pike program" starting from "Command-line Arguments and if". > > Maybe it's a Windows issue. At the moment I can't test in other OS ... > > Thx, > Arie > > 2016-12-08 16:05 GMT+01:00 Mirar @ Pike importmöte för mailinglistan > <[email protected]>: >> >> It sounds a bit like stdin (line-iterator?) is handled differently in >> Windows? >> >