Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgCgR-0007Xs-Aj for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 14:12:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgCgP-0007zX-RR for pgsql-bugs@arkaria.postgresql.org; Sun, 27 Sep 2015 14:12:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgCgN-0007ys-IR for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 14:12:03 +0000 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35] helo=sasl.smtp.pobox.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZgCgE-0001TH-MJ for pgsql-bugs@postgresql.org; Sun, 27 Sep 2015 14:12:00 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id EAA051A4A3; Sun, 27 Sep 2015 10:11:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:message-id:references:mime-version:content-type :in-reply-to; s=sasl; bh=x9wbEJArMUFDiC5X5AB6U2sXLOk=; b=UyHlZDO guuT4uPsuHUoMZaAmbzflssJAdURFtMXlD8ixlv93X+/ibzajfK32dhXwxMQlzJO dyFHnfUdm/mRf7c18iSuCHO1z7mo7TjnxGELA6Bm43TZ254wgSU+jZlY1R1PbSJi B4F2ZurDf8EAJ1snIF2yNMpWytQuOgUuBCw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:from:to:cc :subject:message-id:references:mime-version:content-type :in-reply-to; q=dns; s=sasl; b=xJvCKI5y7foNwlaNkVo9+yJRhGzQwUMVZ bJe1XuOsWD2NMKrToYionsqGhRYG6PkAcoih8bbMr9Jf22N4ZwCx+i3KTzY6AkB0 svC5pvwhIorv/lLg545LYu8Unw2W1xq2GVedwVfcLdAyeNol2p7u6ydJ2k1GRnrF 0DdUBsxMnk= Received: from pb-smtp0.int.icgroup.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id E234E1A4A1; Sun, 27 Sep 2015 10:11:52 -0400 (EDT) Received: from timac.local (unknown [86.47.232.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp0.pobox.com (Postfix) with ESMTPSA id 736021A49F; Sun, 27 Sep 2015 10:11:51 -0400 (EDT) Date: Sun, 27 Sep 2015 15:11:48 +0100 From: Tim Bunce To: Alvaro Herrera Cc: Tom Lane , lei@aswsyst.cz, pgsql-bugs@postgresql.org, Alex Hunsaker , Tim Bunce Subject: Re: BUG #13638: Exception texts from plperl has bad encoding Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150925195120.GL295765@alvherre.pgsql> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pobox-Relay-ID: B370B0EA-6521-11E5-9E2A-3C7F6BB36C07-13888548!pb-smtp0.pobox.com X-Pg-Spam-Score: -2.7 (--) 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 On Fri, Sep 25, 2015 at 04:51:20PM -0300, Alvaro Herrera wrote: > Tom Lane wrote: > > > It's still beyond my Perl-fu ... > > Maybe Alex or Tim can shed some light? Please see: > http://www.postgresql.org/message-id/flat/20150925112345.26913.28407@wrigleys.postgresql.org I think you want to call croak_sv(SV) with an SV containing the error message and flagged as UTF-8. Yim. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs