1. 21 Nis, 2002 5 kayıt (commit)
    • Tim Peters's avatar
      Py_UniversalNewlineFread(): Many changes. · 058b141e
      Tim Peters yazdı
      + Continued looping until n bytes in the buffer have been filled, not
        just when n bytes have been read from the file.  This repairs the
        bug that f.readlines() only sucked up the first 8192 bytes of the file
        on Windows when universal newlines was enabled and f was opened in
        U mode (see Python-Dev -- this was the ultimate cause of the
        test_inspect.py failure).
      
      + Changed prototye to take a char* buffer (void* doesn't make much sense).
      
      + Squashed size_t vs int mismatches (in particular, besides the unsigned
        vs signed distinction, size_t may be larger than int).
      
      + Gets out under all error conditions now (it's possible for fread() to
        suffer an error even if it returns a number larger than 0 -- any
        "short read" is an error or EOF condition).
      
      + Rearranged and simplified declarations.
      058b141e
    • Tim Peters's avatar
      Assorted code cleanups for readability. Greatly boosted the size of the · ea572b21
      Tim Peters yazdı
      test data:  this test fails on WIndows now if universal newlines are
      enabled (which they aren't yet, by default).  I don't know whether the
      test will also fail on Linux now.
      ea572b21
    • Tim Peters's avatar
      Hack around the "2.1.6 Blank lines" bug in a way that the TOC still · 4a0db06e
      Tim Peters yazdı
      displays a recognizable section title (there are extra blanks at the
      end of it now, due to the nested anchor, but that's fine).
      4a0db06e
    • Tim Peters's avatar
      PyUnicode_EncodeUTF8: squash compiler wng. The difference of two · 7e3d961f
      Tim Peters yazdı
      pointers is a signed type.  Changing "allocated" to a signed int makes
      undetected overflow more likely, but there was no overflow detection
      before either.
      7e3d961f
    • Tim Peters's avatar
      Give the Help viewer a font-size button. This isn't documented by MS, · dc374e03
      Tim Peters yazdı
      but is documented by others on the web, and the defn of the magic flag
      needed appears in MS's htmlhelp.h header file.
      dc374e03
  2. 20 Nis, 2002 13 kayıt (commit)
  3. 19 Nis, 2002 15 kayıt (commit)
  4. 18 Nis, 2002 7 kayıt (commit)