Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XEpp3-0003an-VB for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Aug 2014 01:15:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XEpp2-0004V7-UF for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Aug 2014 01:15:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEpp1-0004V0-Vs for pgsql-bugs@postgresql.org; Wed, 06 Aug 2014 01:15:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XEpoy-0003Ov-14 for pgsql-bugs@postgresql.org; Wed, 06 Aug 2014 01:15:18 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s761EQSv003138; Tue, 5 Aug 2014 21:14:26 -0400 From: Tom Lane To: Craig Ringer cc: pgsql-bugs Subject: Re: PostgreSQL fails to convert decomposed utf-8 to other encodings In-reply-to: <53E179E1.3060404@2ndquadrant.com> References: <53E179E1.3060404@2ndquadrant.com> Comments: In-reply-to Craig Ringer message dated "Wed, 06 Aug 2014 08:42:09 +0800" Date: Tue, 05 Aug 2014 19:14:35 -0600 Message-ID: <1523.1407287675@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 Craig Ringer writes: > There's a bug in encoding conversions from utf-8 to other encodings that > results in corrupt output if decomposed utf-8 is used. We don't actually support "decomposed" utf8; if there is any bug here, it's that the input you show isn't rejected. But I think there was some intentional choice to not check \u escapes fully. 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