Hi Chris, it would remove the clearerr() and unsetf() calls. clearerr() has probably no effect at all because the next fgetc() will do the same. And CIN.unsetf(ios_base::unitbuf) - if at all needed - should go to a different place. The new code would be this: //----------------------------------------------------------------------------- Unicode LineInput::get_uni() { again: const int b0 = fgetc(stdin); if (b0 == EOF) { if (errno == EINTR) goto again; } ... Could you please check if your editor still works with that? I also noticed another fgetc() below the one shown above. I suppose that I should check for EINTR .in that one as well. Best Regards, /// Jürgen On 08/10/2018 03:35 PM, Chris Moller
wrote:
|
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Juergen Sauermann
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Hans-Peter Sorge
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Juergen Sauermann
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Juergen Sauermann
- Re: [Bug-apl] Yet another editor thingy. Chris Moller
- Re: [Bug-apl] Yet another editor thingy. Chris Moller