Menu

#6 Draft Unicode patch

closed-accepted
None
5
2002-10-27
2001-11-22
No

Ok, here comes what I've done so far for adding Unicode
support. Jjust to show what I've been talking about on
the mailing list and by no means finished or bugfree.

Bugs are (at least):
- no checks if PostgreSQL multibyte support is
available at all (compiles may perhaps fail)
- for some reason, no exception is raised when setting
the clientencoding fails

Discussion

  • Gerhard Häring

    Gerhard Häring - 2002-04-16
    • assigned_to: nobody --> ghaering
     
  • Gerhard Häring

    Gerhard Häring - 2002-04-16

    Logged In: YES
    user_id=163326

    I'm publishing here my update to the patch. This patch is
    against the latest CVS version of pyPgSQL. It turns out that
    changes to libpq are not necessary at all. Some testing code
    is already there and I'm pretty confident that I'm on the
    right track with the current approach.

    More later.

     
  • Gerhard Häring

    Gerhard Häring - 2002-04-16

    Logged In: YES
    user_id=163326

    Hmm. The patch is pretty large. So one more comment: The
    only relevant addition is the __unicodeConvert() method in
    the Connection class. The other relevant changes can be
    found by grepping for "unicode".

    There's also cosmetic changes to the typechecking in this
    patch (always use "is" instead of "==" and "is not" instead
    of "!="). And also always compare to "None" with "is" - the
    comparison with "==" has bitten a pyPgSQL user once. The
    is-Check is more pythonic and slightly faster.

    Enough for today :)

     
  • Gerhard Häring

    Gerhard Häring - 2002-06-05

    Unicode patch for pyPgSQL 2.1

     
  • Gerhard Häring

    Gerhard Häring - 2002-06-05

    Logged In: YES
    user_id=163326

    I've now uploaded an updated patch that applies cleanly to
    pyPgSQL version 2.1. I'd be very grateful if those
    interested in Unicode support could test it and tell me (on
    the mailing list, preferrably) what should be done
    differently and which features are still missing, if any.

     
  • Gerhard Häring

    Gerhard Häring - 2002-09-08
    • status: open --> open-postponed
     
  • Gerhard Häring

    Gerhard Häring - 2002-10-03

    Logged In: YES
    user_id=163326

    The patch still applies cleanly to pyPgSQL 2.2.

     
  • Gerhard Häring

    Gerhard Häring - 2002-10-20
    • status: open-postponed --> pending-accepted
     
  • Gerhard Häring

    Gerhard Häring - 2002-10-27
    • status: pending-accepted --> closed-accepted
     
  • Gerhard Häring

    Gerhard Häring - 2002-10-27

    Logged In: YES
    user_id=163326

    Applied in revision 1.18 of PgSQL.py.

     

Log in to post a comment.