~aglenyoung/+junk/postgres-9.3-dtrace

« back to all changes in this revision

Viewing changes to src/pl/plperl/plperl_helpers.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, Christoph Berg, Martin Pitt
  • Date: 2013-06-26 15:13:32 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130626151332-p34yjpn0txbdsdzd
Tags: 9.3~beta2-1
[ Christoph Berg ]
* hurd-i386: Ignore testsuite failures so we have a working libpq5 (they
  don't implement semaphores so the server won't even start).
* Mark postgresql-9.3 as beta in the description, suggested by Joshua D.
  Drake.

[ Martin Pitt ]
* New upstream release 9.3 beta2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
utf_e2u(const char *str)
43
43
{
44
44
        char       *ret =
45
 
                (char *) pg_do_encoding_conversion((unsigned char *) str, strlen(str),
46
 
                                                                                   GetDatabaseEncoding(), PG_UTF8);
 
45
        (char *) pg_do_encoding_conversion((unsigned char *) str, strlen(str),
 
46
                                                                           GetDatabaseEncoding(), PG_UTF8);
47
47
 
48
48
        if (ret == str)
49
49
                ret = pstrdup(ret);
89
89
 
90
90
        /*
91
91
         * Request the string from Perl, in UTF-8 encoding; but if we're in a
92
 
         * SQL_ASCII database, just request the byte soup without trying to make it
93
 
         * UTF8, because that might fail.
 
92
         * SQL_ASCII database, just request the byte soup without trying to make
 
93
         * it UTF8, because that might fail.
94
94
         */
95
95
        if (GetDatabaseEncoding() == PG_SQL_ASCII)
96
96
                val = SvPV(sv, len);