1. 12 May, 2000 11 commits
  2. 11 May, 2000 9 commits
  3. 10 May, 2000 8 commits
  4. 09 May, 2000 12 commits
    • Fred Drake's avatar
      Trent Mick <trentm@activestate.com>: · 230cae74
      Fred Drake authored
      Limit the 'b' formatter of PyArg_ParseTuple to valid values of an unsigned
      char, i.e. [0,UCHAR_MAX]. It is expected that this is the common usage of 'b'.
      An OverflowError is raised if the parsed value is outside this range.
      230cae74
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · a69ef826
      Fred Drake authored
      Added a useful link to Markus Kuhn's Unicode and UTF-8
      FAQ.
      a69ef826
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · 774c931c
      Fred Drake authored
      Added another test for string formatting (the one that
      produced the core dump now fixed in unicodeobject.c).
      774c931c
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · 8b4d01d9
      Fred Drake authored
      Added APIs to allow setting and querying the system's
      current string encoding: sys.set_string_encoding()
      and sys.get_string_encoding().
      8b4d01d9
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · 766de83a
      Fred Drake authored
      Moved some docs to the include file.
      
      Added a NULL check to _PyCodec_Lookup() to make it
      core dump safe.
      766de83a
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · c640b18d
      Fred Drake authored
      Fixed docs according to the new behaviour (the Unicode
      encoding is no longer fixed to UTF-8).
      c640b18d
    • Fred Drake's avatar
      Minimal change so I can add the rest of MAL's checkin message: · 785d14f9
      Fred Drake authored
      M.-A. Lemburg <mal@lemburg.com>:
      Fixed a core dump in PyUnicode_Format().
      785d14f9
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · e4315f58
      Fred Drake authored
      Added support for user settable default encodings. The
      current implementation uses a per-process global which
      defines the value of the encoding parameter in case it
      is set to NULL (meaning: use the default encoding).
      e4315f58
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · aff60180
      Fred Drake authored
      Fixed a bug due to a /* inside /*...*/. GCC doesn't like
      this and bombs.
      aff60180
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · cb093fe8
      Fred Drake authored
      Added PyUnicode_GetDefaultEncoding() and
      PyUnicode_GetDefaultEncoding() APIs.
      cb093fe8
    • Fred Drake's avatar
      M.-A. Lemburg <mal@lemburg.com>: · 3ac3edcf
      Fred Drake authored
      Added documentation and the missing PyCodec_StreamWriter API.
      3ac3edcf
    • Guido van Rossum's avatar
      New version from Jim Fulton to fix a problem that Eric Raymond ran · ea2b7157
      Guido van Rossum authored
      into.  Jim writes:
      
      The core dump was due to a C decrement operation
      in a macro invocation in load_pop.  (BAD)
      
      I fixed this by moving the decrement outside
      the macro call.
      
      I added a comment to load_pop and load_mark
      to document the fact that cPickle separates the
      unpickling stack into two separate stacks, one for
      objects and one for marks.
      
      I also moved some increments out of some macro
      calls (PyTuple_SET_ITEM and PyList_SET_ITEM).
      This wasn't necessary, but made me feel better. :)
      
      I tested these changes in *my* cPickle, which
      doesn't have the new Unicode stuff.
      ea2b7157