Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 773571EAB824 for ; Wed, 7 Mar 2012 20:27:33 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S5RCc-00058v-7J for pgsql-bugs@postgresql.org; Thu, 08 Mar 2012 00:27:32 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q280RF5D024664; Wed, 7 Mar 2012 19:27:15 -0500 (EST) To: Sergey Burladyan cc: Peter Eisentraut , pgsql-bugs@postgresql.org Subject: Re: BUG #6480: NLS text width problem In-reply-to: <87eht4rd8u.fsf@home.progtech.ru> References: <87obsq4sus.fsf@home.progtech.ru> <1330714739.11007.4.camel@vanquo.pezone.net> <87hay1iksj.fsf@home.progtech.ru> <23924.1331081368@sss.pgh.pa.us> <87eht4rd8u.fsf@home.progtech.ru> Comments: In-reply-to Sergey Burladyan message dated "Wed, 07 Mar 2012 13:06:57 +0400" Date: Wed, 07 Mar 2012 19:27:15 -0500 Message-ID: <24663.1331166435@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/63 X-Sequence-Number: 32624 Sergey Burladyan writes: > Tom Lane writes: >> I think it'd be better to avoid depending on %*s for the data string >> and instead use it (with appropriate adjustment of the calculation) >> for the space-separator part of the format. Since that's a constant >> empty string, there shouldn't be any possibility of libc doing something >> other than what we intend. > Sorry, I'm going on vacation for four days. Can't answer right now... Ah, nevermind --- I re-read the patch and realized that it was already doing exactly what I said. Committed, sorry for the noise. regards, tom lane