From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Leslie Satenstein <lsatenstein@yahoo.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #5795: 9.0.2 PDF needs editing
Date: Mon, 20 Dec 2010 12:08:47 -0500
Message-ID: <10905.1292864927@sss.pgh.pa.us> (raw)
In-Reply-To: <1292852536-sup-2576@alvh.no-ip.org>
References: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org>
<1292852536-sup-2576@alvh.no-ip.org>
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Excerpts from Leslie Satenstein's message of dom dic 19 23:39:38 -0300 2010:
>> The insert examples in section 2.4 do not function if a cut and paste from
>> pdf to psql is done
>>
>> This is the problem
>> INSERT INTO weather VALUES (’San Francisco’, 46, 50, 0.25,
>> ’1994-11-27’);
>> The fields city and date should have ' as delimiter, not
>> ’
>> Corrected is the following that works. Error messages are not clear. It
>> would be great if psql indicated invalid character as error type.
> The problem is that ’ seems to be a valid character for identifiers:
Yeah, the parser will take most non-ASCII UTF-8 characters as being
identifier characters. But the real question is why Leslie is getting
’ and not plain ' when he copies and pastes.
What I can see from here:
* the character in the SGML source is definitely plain '
* what is in the PDF file displays like a fancy curly quote
* copying and pasting it, however, gives plain ' for me
The PDF file I used was built by me on Fedora 13; it may or may not
exactly match what Devrim distributes. I used Preview on OS X to
display the PDF.
So what it looks like from here is that platform-specific differences in
the copy/paste process may be at issue.
Whatever the true story, I don't think there's a darn thing we can do
about it. The characters are correct in the SGML source, and we are not
in a position to fix whatever subtle bugs may or may not be present in
the PDF generation process.
regards, tom lane
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, alvherre@commandprompt.com, lsatenstein@yahoo.com
Subject: Re: BUG #5795: 9.0.2 PDF needs editing
In-Reply-To: <10905.1292864927@sss.pgh.pa.us>
References: <201012200239.oBK2dc0c004538@wwwmaster.postgresql.org> <1292852536-sup-2576@alvh.no-ip.org> <10905.1292864927@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