pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Muise <JMuise@esri.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols
Date: Fri, 19 May 2017 13:44:28 -0400
Message-ID: <5408.1495215868@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Justin Muise <JMuise@esri.com> 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 &nbsp; 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



view thread (13+ messages)  latest in thread

Message-ID: <5408.1495215868@sss.pgh.pa.us>
Permalink:  ../5408.1495215868@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5408.1495215868@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, JMuise@esri.com
  Subject: Re: BUG #14662: 'has_table_privilege()' function fails with error, "invalid name syntax" when using Japanese symbols
  In-Reply-To: <5408.1495215868@sss.pgh.pa.us>
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox