Skip site navigation (1) Skip section navigation (2)

Re: BUG #6480: NLS text width problem

From: Sergey Burladyan <eshkinkot(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6480: NLS text width problem
Date: 2012-03-06 19:36:28
Message-ID: 87hay1iksj.fsf@home.progtech.ru (view raw or flat)
Thread:
Lists: pgsql-bugs
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:

> On ons, 2012-02-22 at 22:37 +0400, Sergey Burladyan wrote:
> > eshkinkot(at)gmail(dot)com writes:
> > 
> > > The following bug has been logged on the website:
> > >
> > > Bug reference:      6480
> > > Logged by:          Sergey Burladyan
> > > Email address:      eshkinkot(at)gmail(dot)com
> > > PostgreSQL version: 9.1.2
> > > Operating system:   Debian testing
> > > Description:        
> > >
> > > This code incorrectly calculate width for translated text if it multibyte
> > > string. strlen(ct) vs. UTF-8
> > >
> > > src/bin/psql/describe.c:2100
>
> Can you prepare a patch?
>

Surely, I was sent this patch to pgsql-hackers and added to the commitfest-next to
be sure I'll never lost it https://commitfest.postgresql.org/action/patch_view?id=816

Unfortunately, I was sent it with content-disposition: inline by mistake, as
result, web interface divided it by two independent parts. Also this patch for 9.1

To resolve this issue, I was rebased this patch to current master (bc97c38) and send
it as attachment. Here it is:


Attachment: psql-NLS-text-width.v2.patch
Description: text/x-diff (0 bytes)

In response to

Responses

pgsql-bugs by date

Next:From: Phil SorberDate: 2012-03-06 20:09:00
Subject: Extension tracking temp table and causing update failure
Previous:From: Matteo SgalaberniDate: 2012-03-06 15:15:12
Subject: corrupted table postgresql 8.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group