Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBlx4-0008C8-0S for pgsql-bugs@arkaria.postgresql.org; Fri, 19 May 2017 17:44:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dBlx3-0004ij-I7 for pgsql-bugs@arkaria.postgresql.org; Fri, 19 May 2017 17:44:33 +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_2) (envelope-from ) id 1dBlx2-0004iZ-WE for pgsql-bugs@postgresql.org; Fri, 19 May 2017 17:44:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dBlx0-0003R0-FT for pgsql-bugs@postgresql.org; Fri, 19 May 2017 17:44:31 +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 v4JHiSo3005409; Fri, 19 May 2017 13:44:28 -0400 From: Tom Lane To: Justin Muise cc: "pgsql-bugs@postgresql.org" Subject: Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols In-reply-to: <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com> References: <20170519162316.29945.5021@wrigleys.postgresql.org> <3637.1495213367@sss.pgh.pa.us> <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com> Comments: In-reply-to Justin Muise message dated "Fri, 19 May 2017 17:08:35 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5407.1495215868.1@sss.pgh.pa.us> Date: Fri, 19 May 2017 13:44:28 -0400 Message-ID: <5408.1495215868@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 Justin Muise writes: > Thank you for your quick response! Please see the attached image. Hm. If I'm reading that correctly, you've got encoding set to UTF8 but the OS is going to think the encoding is WIN1252, which will likely affect the behavior of isspace(), which'd successfully break this function. I'm not sure how the system allowed you to do that. I wonder though whether it wouldn't be better for SplitIdentifierString to use scanner_isspace() rather than isspace(). That would cause it to not treat things like   as whitespace, but maybe that's OK. 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