Re: [NOVICE] encoding problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Cliff Nieuwenhuis <cliff(at)nieusite(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [NOVICE] encoding problems
Date: 2008-05-07 16:06:40
Message-ID: 8378.1210176400@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice pgsql-patches

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I have implemented the following patch which outputs tab as a tab. It
> also assumes a tab has a width of 4, which is its average width:

That pretty much completely sucks; it will undo all the hard work we've
put into nice formatting of the output, because seven times out of eight
this assumption is wrong.

An actually acceptable solution would involve emitting the correct
number of spaces depending on how much we've put out so far.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc Munro 2008-05-07 16:15:36 Re: [0/4] Proposal of SE-PostgreSQL patches
Previous Message Matthew T. O'connor 2008-05-07 15:54:08 Re: Posting to hackers and patches lists

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2008-05-07 16:09:27 Re: Disadvantages to using "text"
Previous Message Richard Broersma 2008-05-07 16:03:57 Re: Disadvantages to using "text"

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2008-05-07 16:20:04 Re: Posting to hackers and patches lists
Previous Message Matthew T. O'connor 2008-05-07 15:54:08 Re: Posting to hackers and patches lists