Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C6DC2171224E for ; Tue, 6 Mar 2012 15:36:46 -0400 (AST) Received: from mail-bk0-f46.google.com ([209.85.214.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S50Bh-0000v8-39 for pgsql-bugs@postgresql.org; Tue, 06 Mar 2012 19:36:46 +0000 Received: by bkcik5 with SMTP id ik5so4560913bkc.19 for ; Tue, 06 Mar 2012 11:36:32 -0800 (PST) Received-SPF: pass (google.com: domain of eshkinkot@gmail.com designates 10.204.133.204 as permitted sender) client-ip=10.204.133.204; Authentication-Results: mr.google.com; spf=pass (google.com: domain of eshkinkot@gmail.com designates 10.204.133.204 as permitted sender) smtp.mail=eshkinkot@gmail.com; dkim=pass header.i=eshkinkot@gmail.com Received: from mr.google.com ([10.204.133.204]) by 10.204.133.204 with SMTP id g12mr14069777bkt.64.1331062592092 (num_hops = 1); Tue, 06 Mar 2012 11:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=BVLuyL0bkcUC/ad80GWVDg6B3/St4ktj+hrPcc3655k=; b=NhAXq/mhoDvRKsGkZ12chJx8CjLf7sJmGPz5+HzoYGw5ohhbJcgxAGjTqUwWWmUrSN v22AupbgbhxixnnuZ5nPD2DgvNR9uVZHQdrwUDYq1cEZ0FivFE5TlkIWv+z2b8pLHFz8 7x1dsYmAVSu5pOSQfQ8tqPB0C/Y97kD0xvkc3UrBTvTxc2SzeYtEsQPVFNaDSRVGJMk9 cQvSIXUe66LpXRgZS/LXVe7GDPPdKA0PX83yAMUPKguvIxSgifPi9QKvyVewFXseHPen j51UROXqV+e7GyeqX0xRO68lGX4DNKkhCFSskwuRFRbbddjzX0yYQGGPWHXTvfiZBg1h bUWA== Received: by 10.204.133.204 with SMTP id g12mr11024479bkt.64.1331062591995; Tue, 06 Mar 2012 11:36:31 -0800 (PST) Received: from home.progtech.ru (os.progtech.ru. [80.252.153.41]) by mx.google.com with ESMTPS id f5sm23545284bke.9.2012.03.06.11.36.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Mar 2012 11:36:30 -0800 (PST) From: Sergey Burladyan To: Peter Eisentraut Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6480: NLS text width problem References: <87obsq4sus.fsf@home.progtech.ru> <1330714739.11007.4.camel@vanquo.pezone.net> Date: Tue, 06 Mar 2012 23:36:28 +0400 In-Reply-To: <1330714739.11007.4.camel@vanquo.pezone.net> (Peter Eisentraut's message of "Fri, 02 Mar 2012 20:58:59 +0200") Message-ID: <87hay1iksj.fsf@home.progtech.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/42 X-Sequence-Number: 32603 --=-=-= Peter Eisentraut writes: > 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? > 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: --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=psql-NLS-text-width.v2.patch --=-=-=--