Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCvAd-0005Sz-H6 for pgsql-bugs@arkaria.postgresql.org; Mon, 22 May 2017 21:47:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dCvAc-00087b-Is for pgsql-bugs@arkaria.postgresql.org; Mon, 22 May 2017 21:47:18 +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_2) (envelope-from ) id 1dCud6-0004jY-FO for pgsql-bugs@postgresql.org; Mon, 22 May 2017 21:12:40 +0000 Received: from mx0b-00151a02.pphosted.com ([67.231.156.68]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dCucw-0004s4-EB for pgsql-bugs@postgresql.org; Mon, 22 May 2017 21:12:38 +0000 Received: from pps.filterd (m0046990.ppops.net [127.0.0.1]) by mx0b-.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v4ML9enA020774; Mon, 22 May 2017 14:12:24 -0700 Received: from esrismtp2.esri.com (esrismtp2.esri.com [198.102.62.103]) by mx0b-.pphosted.com with ESMTP id 2ajhg6r3kr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2017 14:12:23 -0700 Received: from mail.esri.com (red-inf-mxmb-p2.esri.com [10.50.4.255]) by red-inf-smtp-p1.esri.com (8.14.4/8.14.4) with ESMTP id v4MLCMtp011193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 May 2017 14:12:22 -0700 Received: from RED-INF-MXMB-P1.esri.com (10.50.4.253) by RED-INF-MXMB-P2.esri.com (10.50.4.255) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Mon, 22 May 2017 14:12:21 -0700 Received: from RED-INF-MXMB-P1.esri.com ([fe80::51c1:2bb6:4f3f:9003]) by RED-INF-MXMB-P1.esri.com ([fe80::51c1:2bb6:4f3f:9003%13]) with mapi id 15.00.1263.000; Mon, 22 May 2017 14:12:21 -0700 From: Justin Muise To: Tom Lane CC: "pgsql-bugs@postgresql.org" Subject: Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols Thread-Topic: [BUGS] BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols Thread-Index: AQHS0MHAfT6g3sIoykuONEBMyo0WHqH742oQgAB/iwCABHtwwA== Date: Mon, 22 May 2017 21:12:20 +0000 Message-ID: References: <20170519162316.29945.5021@wrigleys.postgresql.org> <3637.1495213367@sss.pgh.pa.us> <446a18e20f0f4fb89880a32c4c664e4c@RED-INF-MXMB-P1.esri.com> <5408.1495215868@sss.pgh.pa.us> In-Reply-To: <5408.1495215868@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.50.254.250] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-05-22_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705220105 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 Hi Tom, Just wanted to see if here was any additional information/testing you requi= red from me, and if you are still reviewing this issue. Thanks, Justin -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Friday, May 19, 2017 10:44 AM To: Justin Muise Cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #14662: 'has_table_privilege()' function fails with= error, "invalid name syntax" when using Japanese symbols 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 tr= eat things like   as whitespace, but maybe that's OK. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs