BUG #5729: psql stopped after invalid surrogate pair

From: "Alan Choi" <alan(dot)choi(at)emc(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5729: psql stopped after invalid surrogate pair
Date: 2010-10-27 01:02:52
Message-ID: 201010270102.o9R12q5l007708@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5729
Logged by: Alan Choi
Email address: alan(dot)choi(at)emc(dot)com
PostgreSQL version: Version 9.0.1-1
Operating system: Mac OS X 10.6.4
Description: psql stopped after invalid surrogate pair
Details:

psql stopped and quit if it encountered an invalid surrogate pair.

Execute the psql client.

Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
Password for user postgres:
psql (9.0.1)
Type "help" for help.

postgres=# select E'\uD834';
invalid YY_START

Press <return> to continue...
logout

[Process completed]

The E'\uD834' is an invalid surrogate pair but psql should report it as a
regular parsing error.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-10-27 02:26:24 Re: BUG #5729: psql stopped after invalid surrogate pair
Previous Message Tom Lane 2010-10-27 00:47:55 Re: BUG #5728: Unexpected behavior comparing result of age() to an interval