Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C94B119DE82F for ; Wed, 7 Mar 2012 05:07:15 -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 1S5Cq2-00065J-6Y for pgsql-bugs@postgresql.org; Wed, 07 Mar 2012 09:07:15 +0000 Received: by bkcik5 with SMTP id ik5so4976807bkc.19 for ; Wed, 07 Mar 2012 01:07:01 -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=hXRGSGzMlb69OZyqw/mhEBdY8Hlx9IxR5fzkXe1u4cw=; b=rFe3bhACqVcK72QZ5RKWHeL/uJsCc83sjmIyrQS2pesH5nhb51FZ0z8UnGfM0QW7V6 r8dtvD+2sxGOGsvEVz1BQnVgf9w7eLl/s11ngc0nM81hK9SaGifbIdh0pr5jvqh0X3I0 oMF4RQVNeLxp8vYvUh2ssAhQlnU4hK6sxzhm4x68p5YskwFRhmePlwVRYgdekXZXhE/Y s+uO5gt63jNpHSeVr+VaGSusecN48r/IJ/nJVgJL6ra5YE/fYUtCRYuLTcuHVYvPFvFl ezxshCYtInFxCk9hVTSs6iP8s/aCecOPxR+ZiIruI9pwrt7fyoaaw34kVqoHi5vETInu U+dg== Received: by 10.205.127.130 with SMTP id ha2mr560234bkc.28.1331111221210; Wed, 07 Mar 2012 01:07:01 -0800 (PST) Received: from home.progtech.ru (os.progtech.ru. [80.252.153.41]) by mx.google.com with ESMTPS id jd17sm37011954bkb.4.2012.03.07.01.06.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Mar 2012 01:06:59 -0800 (PST) From: Sergey Burladyan To: Tom Lane Cc: Peter Eisentraut , 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> <87hay1iksj.fsf@home.progtech.ru> <23924.1331081368@sss.pgh.pa.us> Date: Wed, 07 Mar 2012 13:06:57 +0400 In-Reply-To: <23924.1331081368@sss.pgh.pa.us> (Tom Lane's message of "Tue, 06 Mar 2012 19:49:28 -0500") Message-ID: <87eht4rd8u.fsf@home.progtech.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/49 X-Sequence-Number: 32610 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... -- Sergey Burladyan