1. 09 Oct, 2002 8 commits
    • Guido van Rossum's avatar
      Undo this part of the previous checkin: · b82630a3
      Guido van Rossum authored
        Also fixed an error message -- %s argument has non-string str()
        doesn't make sense for %r, so the error message now differentiates
        between %s and %r.
      
      because PyObject_Repr() and PyObject_Str() ensure that this can never
      happen.  Added a helpful comment instead.
      b82630a3
    • Guido van Rossum's avatar
      The string formatting code has a test to switch to Unicode when %s · eedce9d8
      Guido van Rossum authored
      sees a Unicode argument.  Unfortunately this test was also executed
      for %r, because %s and %r share almost all of their code.  This meant
      that, if u is a unicode object while repr(u) is an 8-bit string
      containing ASCII characters, '%r' % u is a *unicode* string containing
      only ASCII characters!
      
      Fixed by executing the test only for %s.
      
      Also fixed an error message -- %s argument has non-string str()
      doesn't make sense for %r, so the error message now differentiates
      between %s and %r.
      eedce9d8
    • Guido van Rossum's avatar
      Add special consideration for rlcompleter. As a side effect of · 001790a0
      Guido van Rossum authored
      initializing GNU readline, setlocale(LC_CTYPE, "") is called, which
      changes the <ctype.h> macros to use the "default" locale (which isn't
      the *initial* locale -- the initial locale is the "C" locale in which
      only ASCII characters are printable).  When the default locale is e.g.
      Latin-1, the repr() of string objects can include 8-bit characters
      with the high bit set; I believe this is due to the recent
      PRINT_MULTIBYTE_STRING changes to stringobject.c.  This in turn screws
      up test_pyexpat and test_rotor, which depend on the repr() of 8-bit
      strings with high bit characters.
      
      The solution (for now) is to force the LC_CTYPE locale to "C" after
      importing rlcompleter.  This is the locale required by the test suite
      anyway.
      001790a0
    • Martin v. Löwis's avatar
      Remove more DOS support. · 289086ca
      Martin v. Löwis authored
      289086ca
    • Guido van Rossum's avatar
      d138c681
    • Andrew M. Kuchling's avatar
      Minor edits and markup fixes · 06bf3902
      Andrew M. Kuchling authored
      06bf3902
    • Tim Peters's avatar
      Don't try to access sys.getwindowsversion unless it exists (ntpath is · 4248dcd1
      Tim Peters authored
      imported on systems other than Windows, and in particular is imported
      by test___all__; the compile farm reported that all Linux tests failed
      due to this; isn't anyone in PythonDevLand running CVS on Linux?!).
      4248dcd1
    • Tim Peters's avatar
      Logic for determining whether skipping test_pep277 is expected: whether · 153e32b1
      Tim Peters authored
      ths "should be" skipped depends on os.path.supports_unicode_filenames,
      not really on the platform.  Fiddled the expected-skip constructor
      appropriately.
      153e32b1
  2. 08 Oct, 2002 2 commits
    • Tim Peters's avatar
      The · 645fdd76
      Tim Peters authored
              list(xrange(sys.maxint / 4))
      test.  Changed 4 to 2.
      
      The belief is that this test intended to trigger a bit of code in
      listobject.c's NRESIZE macro that's looking for arithmetic overflow.  As
      written, it doesn't achieve that, though, and leaves it up to the platform
      realloc() as to whether it wants to allocate 2 gigabytes.  Some platforms
      say "sure!", although they don't appear to mean it, and disaster ensues.
      
      Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
      test instead, leaving the platform realloc() out of it.
      
      I'll backport this to the 2.2 branch next.
      645fdd76
    • Mark Hammond's avatar
      Add os.path.supports_unicode_filenames for all platforms, · 6af96970
      Mark Hammond authored
      sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
      version), and fix test_pep277.py in a few minor ways.
      Including doc and NEWS entries.
      6af96970
  3. 07 Oct, 2002 14 commits
  4. 06 Oct, 2002 6 commits
  5. 05 Oct, 2002 3 commits
  6. 04 Oct, 2002 7 commits