Menu

#594 fgetc() feeding us extra characters sometimes

v1.0 (example)
closed-invalid
nobody
None
5
2017-03-08
2017-03-07
No

sometimes from fgetc (EOL chars? EOF?) is \r treated like a \n or interpreted somehow or filtered?
I check file sizes and they do not match fgetc() char counts for the file. while (!feof(f)) { is at the top of course.
this is causing a char count hemhorrage for wc.

Discussion

  • Jim Michaels

    Jim Michaels - 2017-03-07

    not sure, but I think it's switching on a '-' as well. should not happen in fgetc().

     

    Last edit: Jim Michaels 2017-03-07
  • Kai Tietz

    Kai Tietz - 2017-03-08
    • status: open --> closed-invalid
     
  • Kai Tietz

    Kai Tietz - 2017-03-08

    Again, ... please stop to ask on bug forum about your lack of reading up API.
    Ask such question on general ML, or ask them on IRC, but don't use our bug-tracker for this!

    Just for the records, this is related to TEXT mode streams.

     

Log in to post a comment.