Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E9FCA1810A01 for ; Fri, 2 Mar 2012 14:59:23 -0400 (AST) Received: from mailout-de.gmx.net ([213.165.64.22]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1S3XhJ-0000Yl-Cv for pgsql-bugs@postgresql.org; Fri, 02 Mar 2012 18:59:22 +0000 Received: (qmail invoked by alias); 02 Mar 2012 18:59:08 -0000 Received: from a88-115-218-87.elisa-laajakaista.fi (EHLO [10.0.0.108]) [88.115.218.87] by mail.gmx.net (mp032) with SMTP; 02 Mar 2012 19:59:08 +0100 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX1/hRV1ui4fhPfnzsEOv1rAB5uy82Yr4UVvrhrx86Y PCwxNuK97m/6UZ Message-ID: <1330714739.11007.4.camel@vanquo.pezone.net> Subject: Re: BUG #6480: NLS text width problem From: Peter Eisentraut To: Sergey Burladyan Cc: pgsql-bugs@postgresql.org Date: Fri, 02 Mar 2012 20:58:59 +0200 In-Reply-To: <87obsq4sus.fsf@home.progtech.ru> References: <87obsq4sus.fsf@home.progtech.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -0.9 (/) X-Archive-Number: 201203/15 X-Sequence-Number: 32576 On ons, 2012-02-22 at 22:37 +0400, Sergey Burladyan wrote: > eshkinkot@gmail.com writes: > > > The following bug has been logged on the website: > > > > Bug reference: 6480 > > Logged by: Sergey Burladyan > > Email address: eshkinkot@gmail.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?