Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgLf6-0001WT-IC for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 23:47:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgLf5-0006WD-Oz for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 23:47:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgLeU-0005d9-El for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 23:46:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgLeQ-0003ZU-KM for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 23:46:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8RNkJUC013304; Sun, 27 Sep 2015 19:46:20 -0400 From: Tom Lane To: Tim Bunce cc: Alvaro Herrera , lei@aswsyst.cz, pgsql-bugs@postgresql.org, Alex Hunsaker Subject: Re: BUG #13638: Exception texts from plperl has bad encoding In-reply-to: <20150927141148.GA1416@timac.local> References: <20150925112345.26913.28407@wrigleys.postgresql.org> <18105.1443208708@sss.pgh.pa.us> <18478.1443209624@sss.pgh.pa.us> <20150925195120.GL295765@alvherre.pgsql> <20150927141148.GA1416@timac.local> Comments: In-reply-to Tim Bunce message dated "Sun, 27 Sep 2015 15:11:48 +0100" Date: Sun, 27 Sep 2015 19:46:19 -0400 Message-ID: <13303.1443397579@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Tim Bunce writes: > I think you want to call croak_sv(SV) with an SV containing the error > message and flagged as UTF-8. I found croak_sv() in the headers for Perl 5.18 (present on OS X Yosemite) but not in Perl 5.10 (present on RHEL6), much less 5.8 which is the oldest Perl version we claim to support. This doesn't look like a workable answer unless we want to move the compatibility goalposts a long way. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs